youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Video plays but no audio

Open atljoseph opened this issue 2 years ago • 4 comments

On Mac. Installed with brew.

atljoseph avatar Oct 29 '23 01:10 atljoseph

Can you please provide more details about how you download video ?

yangxuhui avatar Nov 03 '23 06:11 yangxuhui

For me if I set -q '' to get best quality I have no audio, if I don't then I get audio.

When I pass -q '' codecs I get this info:

quality=hd1080 mimeType="video/mp4; codecs="avc1.64002a"

When I don't I get this info, so seems it's not getting the audio stream when hd1080

quality=medium mimeType="video/mp4; codecs="avc1.42001E, mp4a.40.2"

DEfusion avatar Nov 22 '23 16:11 DEfusion

Related to https://github.com/kkdai/youtube/issues/273

For now I'm downloading 2 videos and combining the audio with ffmpeg as a hack, I only have a few to download so that's fine for me.

DEfusion avatar Nov 22 '23 16:11 DEfusion

I encountered same issued but solved by running command with the tag that has both audio and video.

For example, url of video you want to download is https://www.youtube.com/watch?v=5JberwYl-Zo

  1. Run, youtubedr info https://www.youtube.com/watch?v=5JberwYl-Zo you can see ITAG 22 has both video and audio
  2. Run youtubedr download -q 22 https://www.youtube.com/watch?v=5JberwYl-Zo -o happydog.mp4 pass ITAG 22 to -q flag so you can download video and audio
  3. open happydog.mp4 file

Eric-lab-star avatar Jan 13 '24 10:01 Eric-lab-star