Ubuntu – Youtube-dl unable to download audio how to resolve that issue

youtubeyoutube-dl

./youtube-dl https://www.youtube.com/playlist?list=PLVqBLRhC9UzGX1BRbF53zsJE8Jw_eiLRK

It produce following output with warning

[youtube:playlist] PLVqBLRhC9UzGX1BRbF53zsJE8Jw_eiLRK: Downloading webpage
[download] Downloading playlist: Fear Files
[youtube:playlist] PLVqBLRhC9UzGX1BRbF53zsJE8Jw_eiLRK: Downloading page #1
[youtube:playlist] PLVqBLRhC9UzGX1BRbF53zsJE8Jw_eiLRK: Downloading page #2
[youtube:playlist] playlist Fear Files: Downloading 223 videos
[download] Downloading video 1 of 223
[youtube] R8lNWOGJ5cg: Downloading webpage
[youtube] R8lNWOGJ5cg: Downloading video info webpage
[youtube] R8lNWOGJ5cg: Extracting video information
[youtube] R8lNWOGJ5cg: Downloading MPD manifest

WARNING: Requested formats are incompatible for merge and will be merged into mkv.

[download] Resuming download at byte 206757946
[download] Destination: Fear Files - Episode 44 - September 28, 2014-R8lNWOGJ5cg.f137.mp4

Because of waring youtube-dl download video without audio. How to solve that issue. I also try command
youtube-dl -f 22 URL_link but still not work.

Best Answer

You are seeing the default behavior of youtube-dl where since April 2015 and version 2015.04.26 unless told otherwise youtube-dl will download the best quality video stream and the best quality audio stream.

Two cases arise then:

  1. If you have either ffmpeg or avconv installed the two best quality streams will be downloaded and then muxed together. If the codecs are incompatible together in either flv or mp4 they will be joined in mkv. This is happening in your case.
  2. If you don't have either ffmpeg or avconv installed the best quality will be downloaded that is available as a single file.

So, you are seeing normal behavior...

References: