Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aria2 doesn't work for specific playlist/urls #26460

Closed
Anon-Exploiter opened this issue Aug 28, 2020 · 3 comments
Closed

Aria2 doesn't work for specific playlist/urls #26460

Anon-Exploiter opened this issue Aug 28, 2020 · 3 comments
Labels

Comments

@Anon-Exploiter
Copy link

@Anon-Exploiter Anon-Exploiter commented Aug 28, 2020

Checklist

  • I've verified that I'm running youtube-dl version 2020.07.28
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped

Verbose log

~$ youtube-dl --external-downloader aria2c "https://www.youtube.com/playlist?list=PLrrgFyE6PtlaCixUxJPM0Y9Peye6iCewH" -v
[debug] System config: []
[debug] User config: ['-o', '[%(upload_date)s][%(id)s] %(title)s (by %(uploader)s).%(ext)s', '--external-downloader', 'aria2c', '--external-downloader-args', '-c -j 3 -x 3 -s 3 -k 1M']
[debug] Custom config: []
[debug] Command-line args: ['--external-downloader', 'aria2c', 'https://www.youtube.com/playlist?list=PLrrgFyE6PtlaCixUxJPM0Y9Peye6iCewH', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.6.9 (CPython) - Linux-5.3.0-7648-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8
[debug] Proxy map: {}
[youtube:playlist] PLrrgFyE6PtlaCixUxJPM0Y9Peye6iCewH: Downloading webpage
[download] Downloading playlist: CEH (Practical)
[youtube:playlist] playlist CEH (Practical): Downloading 14 videos
[download] Downloading video 1 of 14
[youtube] ycZFk-GT5-I: Downloading webpage
[youtube] ycZFk-GT5-I: Downloading MPD manifest
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://manifest.googlevideo.com/api/manifest/dash/expire/1598639776/ei/QPpIX7-PL9zVxN8PprmV8Ak/ip/110.36.185.236/id/c9c64593e193e7e2/source/youtube/requiressl/yes/playback_host/r4---sn-f5uxxo23-aixe.googlevideo.com/mh/5U/mm/31%2C29/mn/sn-f5uxxo23-aixe%2Csn-2uja-3ipd/ms/au%2Crdu/mv/m/mvi/4/pl/22/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/138750/vprv/1/mt/1598618080/fvip/5/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRQIgY61kS8Jnu-v1delZ8OIJ9lbPKiD0h9Vunn42nbIxWw8CIQDI1Jqb0VHyvOEfdpeV5phjrqCq3RsVuBD7XKpkc3Axzw%3D%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRAIgNYvhOqrpKtOStIn-kHaplPF02HLqfZvXovTKU0oYSwYCIG16gQeIfe1sXVvOaHV50rketC6gQL1zjg_HRm73iZbL'
[dashsegments] Total fragments: 571
[download] Destination: [20200710][ycZFk-GT5-I] CEH v10 #Footprinting_&_Reconasiance #iLabs #1.0 (by Offensive Hacks).f247.webm
[download]   4.7% of ~62.73MiB at 86.91KiB/s ETA 02:59^C
ERROR: Interrupted by user

image

Description

While downloading videos from youtube, some of the playlists/URLs don't work with aria2c (i.e. external downloader). I removed all the arguments from --external-downloader-args and other arguments too, still the playlist isn't being downloaded with aria2.

Whenever any other video or some other playlist URL is passed, it downloads that completely fine.

POC:

image

If more information is required, do let me know. This problem is really irritating, previously when I used to remove -f bestvideo+bestaudio, it used to work, but removing that doesn't fix this either.

@pukkandan
Copy link

@pukkandan pukkandan commented Aug 30, 2020

External downloaders don't work for DASH formats. You can use (bestvideo[protocol!=http_dash_segments]/bestvideo)+bestaudio to prioritize non-DASH videos.

@dstftw dstftw closed this Aug 31, 2020
@dstftw dstftw added the duplicate label Aug 31, 2020
@Anon-Exploiter
Copy link
Author

@Anon-Exploiter Anon-Exploiter commented Aug 31, 2020

@pukkandan Could you please pass the complete one-liner to make this work? Thanks.

image

@pukkandan
Copy link

@pukkandan pukkandan commented Sep 15, 2020

@Anon-Exploiter Sorry for the late reply.

All the formats available for the video you are trying to download seem to be DASH, except for the combined (audio and video in same file) formats.

youtube-dl.exe -F https://www.youtube.com/watch?v=ycZFk-GT5-I
[youtube] ycZFk-GT5-I: Downloading webpage
[youtube] ycZFk-GT5-I: Downloading MPD manifest
[info] Available formats for ycZFk-GT5-I:
format code  extension  resolution note
251          webm       audio only DASH audio    7k , webm_dash container, opus @160k (48000Hz)
139          m4a        audio only DASH audio   52k , m4a_dash container, mp4a.40.5@ 48k (22050Hz)
140          m4a        audio only DASH audio  132k , m4a_dash container, mp4a.40.2@128k (44100Hz)
278          webm       256x136    DASH video   95k , webm_dash container, vp9, 30fps, video only
160          mp4        256x136    DASH video  108k , mp4_dash container, avc1.4d400b, 30fps, video only
242          webm       426x228    DASH video  220k , webm_dash container, vp9, 30fps, video only
133          mp4        426x228    DASH video  242k , mp4_dash container, avc1.4d400c, 30fps, video only
134          mp4        640x342    DASH video  292k , mp4_dash container, avc1.4d401e, 30fps, video only
243          webm       640x342    DASH video  405k , webm_dash container, vp9, 30fps, video only
244          webm       854x456    DASH video  752k , webm_dash container, vp9, 30fps, video only
136          mp4        1280x684   DASH video 1133k , mp4_dash container, avc1.64001f, 30fps, video only
135          mp4        854x456    DASH video 1155k , mp4_dash container, avc1.4d400a, 30fps, video only
247          webm       1280x684   DASH video 1505k , webm_dash container, vp9, 30fps, video only
18           mp4        640x342    360p  199k , avc1.42001E, 30fps, mp4a.40.2@ 96k (44100Hz), 72.22MiB
22           mp4        1280x684   720p  366k , avc1.64001F, 30fps, mp4a.40.2@192k (44100Hz) (best)

If you prefer them over the DASH formats, you can use (bestvideo[protocol!=http_dash_segments]+bestaudio)/best/(bestvideo+bestaudio)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.