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

Using aria2c with yt-dlp returns Unrecognized URI #2173

Open
aidinzolghadr opened this issue Feb 6, 2024 · 4 comments
Open

Using aria2c with yt-dlp returns Unrecognized URI #2173

aidinzolghadr opened this issue Feb 6, 2024 · 4 comments

Comments

@aidinzolghadr
Copy link

Hi,

I used to run this command:

yt-dlp.exe -f 'bestvideo[height<=720]+bestaudio/best[height<=720]/best[ext=mp4]/best' --mark-watched --sub-lang en --convert-subs srt --write-sub --external-downloader aria2c --external-downloader-args '-c -j 16 -x 8 -s 16 -k 1M -l' https://www.youtube.com/watch?v=CwFRJ7SkYvI

but since yesterday it retuns this:

Exception: [download_helper.cc:451] errorCode=1 Unrecognized URI or unsupported protocol: .\Can an Umbrella Made of Water Stop the Rain? [CwFRJ7SkYvI].f302.webm.part




ERROR: aria2c exited with code 1

[download] Destination: Can an Umbrella Made of Water Stop the Rain? [CwFRJ7SkYvI].f251.webm
Exception caught
Exception: [download_helper.cc:451] errorCode=1 Unrecognized URI or unsupported protocol: .\Can an Umbrella Made of Water Stop the Rain? [CwFRJ7SkYvI].f251.webm.part




ERROR: aria2c exited with code 1

If I run it without aria2c it runs fine.

Thanks

@thisisgk
Copy link

thisisgk commented Feb 7, 2024

--external-downloader-args '-c -j 16 -x 8 -s 16 -k 1M -l'

-l needs the name of the log file. From aria2c help:

 -l, --log=LOG                The file name of the log file. If '-' is
                              specified, log is written to stdout.

                              Possible Values: /path/to/file, -

@aidinzolghadr
Copy link
Author

Thanks! Thats solved some of it. I get another error when I executed this:

Command:

yt-dlp.exe -f 'bestaudio[ext=m4a]/best[ext=mp3]/best[ext=mp4]/best' --external-downloader aria2c --external-downloader-args '-c -j 16 -x 8 -s 16 -k 1M' --cookies youtube_cookies.txt --embed-thumbnail "https://www.youtube.com/watch?v=zKq_bpuI-vY&list=PLH3lfNtPhUxiSk7CtI2Fnd5vM3tLOEQ68"

Error:

[download] Downloading item 2 of 14
[youtube] Extracting URL: https://www.youtube.com/watch?v=jaIVBSMBjDY
[youtube] jaIVBSMBjDY: Downloading webpage
[youtube] jaIVBSMBjDY: Downloading ios player API JSON
[youtube] jaIVBSMBjDY: Downloading android player API JSON
[youtube] jaIVBSMBjDY: Downloading m3u8 information
WARNING: [youtube] Failed to download m3u8 information: HTTP Error 429: Too Many Requests
[info] jaIVBSMBjDY: Downloading 1 format(s): 328
Deleting existing file Justice - DVNO (LA Riot Remix) [Official Audio] [jaIVBSMBjDY].webp
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: Justice - DVNO (LA Riot Remix) [Official Audio] [jaIVBSMBjDY].webp
[download] Destination: Justice - DVNO (LA Riot Remix) [Official Audio] [jaIVBSMBjDY].m4a

02/07 21:20:10 [ERROR] CUID#7 - Download aborted. URI=https://rr4---sn-p5qlsnrr.googlevideo.com/videoplayback?expire=1707349810&ei=0sLDZaDoDJ28_9EPjKev8AQ&ip=89.187.177.249&id=o-AK18JTVBd5miak5mEX7wPtCX5o3TE8Ix0b5YhbOIxmKv&itag=328&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=0k&mm=31%2C26&mn=sn-p5qlsnrr%2Csn-ab5sznzk&ms=au%2Conr&mv=m&mvi=4&pl=24&pcm2=no&initcwndbps=1393750&vprv=1&svpuc=1&mime=audio%2Fmp4&gir=yes&clen=15608808&dur=325.088&lmt=1700725277380758&mt=1707327923&fvip=3&keepalive=yes&fexp=24007246&c=ANDROID&txp=1308224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cpcm2%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRgIhAK0xxUeB-6rl1bmq9vzKTom5iFpok8t1TWffUYHpY86hAiEA6CuD-aK243OY8LfBuxj5o_hGZturla2F4uhrBsAUT5I%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AAO5W4owRQIgX1y2Be4LJAZMURyb5kTilVJnlcgIy8qmI3jalfnpCsACIQCrvkW-NBq3uTy0GEiQRld7lRTW1-Ji2OKzRghq87AlJQ%3D%3D
Exception: [AbstractCommand.cc:312] errorCode=1 Network problem has occurred. cause:The requested address is not valid in its context.

[#0187ba 0B/0B CN:0 DL:0B]
aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.

ERROR: aria2c exited with code 1

`

@thisisgk
Copy link

thisisgk commented Feb 7, 2024

WARNING: [youtube] Failed to download m3u8 information: HTTP Error 429: Too Many Requests

This (in the yt-dlp report) is related to the aria2c error, I think.

@aidinzolghadr
Copy link
Author

If I remove aria2c and external--download, it downloads fine.

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

No branches or pull requests

2 participants