Closed joelcnz closed 9 months ago
Youtube serves certain formats that only include video and not audio. Here's how you can tell :
$ youtube-d -F https://www.youtube.com/watch\?v\=f6D1AEO5zpw
Verbose mode : false
Handling https://www.youtube.com/watch?v=f6D1AEO5zpw
Cache hit, skipping HTML download...
base.js cache hit, skipping download...
Available formats for https://www.youtube.com/watch?v=f6D1AEO5zpw
[18] (360p) 9.19968 MB video/mp4; codecs="avc1.42001E, mp4a.40.2"
[22] (720p) unknown length MB video/mp4; codecs="avc1.64001F, mp4a.40.2"
[137] (1080p) 53.3665 MB video/mp4; codecs="avc1.640028"
[136] (720p) 26.5684 MB video/mp4; codecs="avc1.64001f"
[134] (360p) 6.61029 MB video/mp4; codecs="avc1.4d401e"
[160] (144p) 1.57507 MB video/mp4; codecs="avc1.4d400c"
[140] (tiny) 3.46873 MB audio/mp4; codecs="mp4a.40.2"
[251] (tiny) 2.28874 MB audio/webm; codecs="opus"
Notice that only formats 18 (360p) and 22 (720p) have both a video and an audio codec, while the others only have audio or video but not both. Try targetting the 22 format with the -f flag like this : youtube-d -d -f 22 https://www.youtube.com/watch?v=f6D1AEO5zpw
. With that being said, I should probably change the output of -F to make the distinction clearer.
Oh, ok, thanks for the info.
I just downloaded one of my videos: https://www.youtube.com/watch?v=f6D1AEO5zpw
Video's fine, but no sound! I tried a bigger file to download, still no sound.