youtube-dl replaces aria2 with ffmpeg as external downloader. Inform user? #17589

Closed
opened 2026-02-21 08:17:23 -05:00 by deekerman · 6 comments
Owner

Originally created by @0x41mmarVM on GitHub (Aug 1, 2019).

Duplicate of #10784

Checklist

  • [ X ] I'm asking a question
  • [ X ] I've looked through the README and FAQ for similar questions
  • [ X ] I've searched the bugtracker for similar questions including closed ones

Question

When calling youtube-dl on a segmented HLS/DASH and specifying an external downloader (aria2c), it silently switches to ffmpeg, and passes it the --external-downloader-args intended for aria2. This has been referred to in this issue, which was closed as duplicate, but I couldn't find what it was a duplicate of, nor did the author.
After searching issues for a while I now understand that aria2 does not support HLS or Segmented DASH, but shouldn't ytdl inform somehow before silently switching to ffmpeg?

Verbose Log:
`

youtube-dl -v --external-downloader aria2c --external-downloader-args "-hide_banner -x 10" https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--external-downloader', 'aria2c', '--external-downloader-args', '-hide_banner -x 10', 'https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2019.07.30
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763
[debug] exe versions: avconv 9.18, avprobe 9.18, ffmpeg 4.1.1, ffprobe N-93894-gecc096513c, phantomjs 2.1.1
[debug] Proxy map: {}
[generic] bipbop_16x9_variant: Requesting header
[generic] bipbop_16x9_variant: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8'
[download] Destination: bipbop_16x9_variant-bipbop_16x9_variant.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -hide_banner -x 10 -headers "Accept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.114 Safari/537.36
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,
/*;q=0.8
" -i "https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8" -c copy -f mp4 "file:bipbop_16x9_variant-bipbop_16x9_variant.mp4.part"
Unrecognized option 'x'.
Error splitting the argument list: Option not found

ERROR: ffmpeg exited with code 1

`

Originally created by @0x41mmarVM on GitHub (Aug 1, 2019). **Duplicate of #10784** <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions - Search the bugtracker for similar questions: http://yt-dl.org/search-issues - Finally, put x into all relevant boxes (like this [x]) --> - [ X ] I'm asking a question - [ X ] I've looked through the README and FAQ for similar questions - [ X ] I've searched the bugtracker for similar questions including closed ones ## Question <!-- Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. --> When calling youtube-dl on a segmented HLS/DASH and specifying an external downloader (aria2c), it silently switches to ffmpeg, and passes it the --external-downloader-args intended for aria2. This has been referred to in [this issue](https://github.com/ytdl-org/youtube-dl/issues/21642), which was closed as duplicate, but I couldn't find what it was a duplicate of, nor did the author. After searching issues for a while I now understand that aria2 does not support HLS or Segmented DASH, but shouldn't ytdl inform somehow before silently switching to ffmpeg? Verbose Log: ` >youtube-dl -v --external-downloader aria2c --external-downloader-args "-hide_banner -x 10" https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8 [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-v', '--external-downloader', 'aria2c', '--external-downloader-args', '-hide_banner -x 10', 'https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8'] [debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252 [debug] youtube-dl version 2019.07.30 [debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17763 [debug] exe versions: avconv 9.18, avprobe 9.18, ffmpeg 4.1.1, ffprobe N-93894-gecc096513c, phantomjs 2.1.1 [debug] Proxy map: {} [generic] bipbop_16x9_variant: Requesting header [generic] bipbop_16x9_variant: Downloading m3u8 information [debug] Default format spec: bestvideo+bestaudio/best [debug] Invoking downloader on 'https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8' [download] Destination: bipbop_16x9_variant-bipbop_16x9_variant.mp4 [debug] ffmpeg command line: ffmpeg -y -loglevel verbose -hide_banner -x 10 -headers "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.114 Safari/537.36 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip, deflate Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 " -i "https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/gear5/prog_index.m3u8" -c copy -f mp4 "file:bipbop_16x9_variant-bipbop_16x9_variant.mp4.part" Unrecognized option 'x'. Error splitting the argument list: Option not found ERROR: ffmpeg exited with code 1 `
deekerman 2026-02-21 08:17:23 -05:00
Author
Owner

@0x41mmarVM commented on GitHub (Aug 1, 2019):

The question is simply: If this is intended behaviour, should there not be some message?
If there is more nuance to it, I've really really tried to find the issue this is a duplicate of.

@0x41mmarVM commented on GitHub (Aug 1, 2019): The question is simply: If this is intended behaviour, should there not be some message? If there is more nuance to it, I've really really tried to find the issue this is a duplicate of.
Author
Owner

@shadowzoom commented on GitHub (Aug 12, 2019):

@ 0x41mmarVM do you find a way to download multithreads this hls m3u8 file?

@shadowzoom commented on GitHub (Aug 12, 2019): @ 0x41mmarVM do you find a way to download multithreads this hls m3u8 file?
Author
Owner

@cgorlla commented on GitHub (May 29, 2020):

So, is anything planned for this? I'm still experiencing this issue. Aria2 will hand something off to ffmpeg then ffmpeg tries to parse the -ext-dl-args meant for Aria.

@cgorlla commented on GitHub (May 29, 2020): So, is anything planned for this? I'm still experiencing this issue. Aria2 will hand something off to ffmpeg then ffmpeg tries to parse the -ext-dl-args meant for Aria.
Author
Owner

@0x41mmarVM commented on GitHub (Jun 19, 2020):

@shadowzoom No, no solution found. That said, I wasn’t looking for a solution, I just wanted a message in the log telling me that ffmpeg was subbed in, so that I don’t spend an hour messing with command switches and trying to understand why aria2c doesn’t understand my request. The silent switching was a bit mean.

@0x41mmarVM commented on GitHub (Jun 19, 2020): @shadowzoom No, no solution found. That said, I wasn’t looking for a solution, I just wanted a message in the log telling me that ffmpeg was subbed in, so that I don’t spend an hour messing with command switches and trying to understand why aria2c doesn’t understand my request. The silent switching was a bit mean.
Author
Owner

@maxnordlund commented on GitHub (Jul 24, 2020):

I think I found the duplicate, #10784, but only @dstftw can confirm that one is it?

@maxnordlund commented on GitHub (Jul 24, 2020): I think I found the duplicate, #10784, but only @dstftw can confirm that one is it?
Author
Owner

@0x41mmarVM commented on GitHub (Jul 24, 2020):

I think I found the duplicate, #10784, but only @dstftw can confirm that one is it?

Oh hey, that looks right. Sad it’s still open.
I’ve added it in the description so people find it easier.

@0x41mmarVM commented on GitHub (Jul 24, 2020): > I think I found the duplicate, #10784, but only @dstftw can confirm that one is it? Oh hey, that looks right. Sad it’s still open. I’ve added it in the description so people find it easier.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#17589
No description provided.