Closed ghost closed 2 years ago
Can't reproduce with -v -f 22 --test
in yt-dlp and yt-dl (ie, using the internal downloader).
Also, with yt-dlp and -v -f 22 --test --downloader aria2c --downloader 'dash,m3u8:native --downloader-args 'aria2c:--no-conf'
, the download succeeds.
So consider your complex default configuration and especially your proxy.
With aria2c, yt-dl runs this command that fails (Py2 and Py3):
aria2c -c --no-conf --out 'Easily UNCRUMPLE Scanned Documents in Photoshop!-lJzfcMqpWUY.mp4.part' --header 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7' --header 'Accept-Language: en-us,en;q=0.5' --header 'Accept-Encoding: gzip, deflate' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.121 Safari/537.36' --check-certificate=true --remote-time=true -- 'https://rr1---sn-cu-aigsl.googlevideo.com/videoplayback?sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&fexp=24001373%2C24007246&ei=_cRrYrHYIYWTWoDLhugL&ip=46.208.6.112&spc=4ocVCyE4N9k0_4a85k72VLZ8GcRn&id=o-AO94yCnYMERoXx0Nf1USPi6ip25qQYVy51JRcsP_eWRF&txp=4432434&cnr=14&requiressl=yes&ratebypass=yes&source=youtube&sig=AOq0QJ8wRAIgTztrgk512XTXS-TVUULqwR4tmdJYUwHMn6XqQaPjCbICIFiJV8vCCOF4yKJoZGdFZtlPEI3HeiGAQE3PevhoXe0C&dur=463.075&ns=sDlh3DE6iyB5tkaPC8363MwG&initcwndbps=1191250&vprv=1&lsig=AG3C_xAwRQIhALAT2ZJxE-DUyAXBq0_D8sG_6nxZrkpZjIUASD7-D_gQAiB2HGsSIRD7f_O6q_skKi_cVLkItBzoGNF2nLX15T2xIw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lmt=1651154098179161&c=WEB&expire=1651251549&mime=video%2Fmp4&fvip=10&itag=22&mm=31%2C29&mn=sn-cu-aigsl%2Csn-cu-c9ie&mh=gA&n=pdMPTibmInvHQQ&mt=1651229838&mv=m&pl=25&ms=au%2Crdu&mvi=1'
04/29 11:59:13 [NOTICE] Downloading 1 item(s)
[#c6da5c 160KiB/25MiB(0%) CN:1 DL:99KiB ETA:4m16s]
04/29 11:59:15 [ERROR] CUID#7 - Download aborted. ...
Exception: [SocketCore.cc:886] errorCode=1 Failed to receive data, cause: The TLS connection was non-properly terminated.
@dirkf Thanks for the quick reply!
Well that's very odd, since I downloaded a few other videos with the exact configuration!
I added the --no-conf
parameter because I had .conf
file for aria2c
to configure my browser's download manager extension and I didn't want it to conflict with yt-dlp, but since you mentioned it I tried without this parameter or even removing .conf
file, but it still I get the same error.
Also tried without the proxy, but to no avail! Even the --test command you provided gives me the same error! I also noticed you're getting errorCode=1
while I get errorCode=3
.
Here's my yt-dlp conf file if it helps:
# Use this proxy
--proxy 127.0.0.1:3128
# Select best available video and audio and highest resolution/quality
-f 'bestvideo+bestaudio/best'
-f "bv*[height<=1080]+ba/b[height>=1080]"
# Prefer AVC/MPEG4 codecs and higher framerate among them
-S 'codec:avc:m4a,fps'
# Bypass geographic restriction via faking X-Forwarded-For HTTP header
--geo-bypass
# Name or path of the external downloader to use (optionally) prefixed by the protocols (http, ftp, m3u8, dash, rstp, rtmp, mms) to use it for. Currently supports native, aria2c, avconv, axel, curl, ffmpeg, httpie, wget (Recommended: aria2c). You can use this option multiple times to set different downloaders for different protocols.
# For example, --downloader aria2c --downloader "dash,m3u8:native" will use aria2c for http/ftp downloads, and the native downloader for dash/m3u8 downloads (Alias: --external-downloader)
--downloader aria2c
--downloader "dash,m3u8:native"
# --downloader-args "aria2c:--no-conf"
# Minimum download rate in bytes per second below which throttling is assumed and the video data is re-extracted (e.g. 100K)
--throttled-rate 100K
# Number of fragments of a dash/hlsnative video that should be download concurrently (default is 1)
--concurrent-fragments 8
# Embed metadata to the video file. Also adds chapters to file unless --no-add-chapters is used (Alias: --add-metadata)
--embed-metadata
# Embed thumbnail in the video as cover art
--embed-thumbnail
# Embed subtitles in the video (only for mp4, webm and mkv videos)
--embed-subs
# Only download English CC subtitles (does not include auto-generated subtitles)
--sub-langs "en.*"
# Subtitle format, accepts formats preference
--sub-format "srt/best"
# Convert the subtitles to another format (currently supported: srt|vtt|ass|lrc) (Alias: --convert-subtitles)
--convert-subs srt
# Do not write auto-generated subtitles
--no-write-auto-subs
# Convert the thumbnails to another format (currently supported: jpg|png)
--convert-thumbnails jpg
# If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required
--merge-output-format mp4
# Force filenames to be windows compatible
--windows-filenames
# Display progress in console titlebar
--console-title
# Download only the video, if the URL refers to a video and a playlist
--no-playlist
# Name output files from their title
--output '%(title)s.%(ext)s'
# Save all videos under YouTube directory in your home directory
--paths '~/Downloads/YouTube/'
Same issue as https://github.com/yt-dlp/yt-dlp/issues/3372. The error message is different because you are using aria2c. @dirkf could not reproduce because the error happens only after --test
's download range is over.
I haven't checked if the f22 of this specific video is damaged, but considering the other similar cases, that is most likely the reason. The only solution is to select another format manually. Even --check-formats
don't work since the error does not occur on initial blocks
Either disable the external downloader, or debug the logged aria2c command-line by changing the parameters until it works.
Never mind, it wasn't the external downloader after all!
It was the -f "bv*[height<=1080]+ba/b[height>=1080]"
line in my configuration file that triggered this! I don't know if this line is correct but I was trying to make it force download videos with at least the 1080p quality but it was trying to download the number 22
format which was 1280x720 and maybe this was conflicting with something along the way!
Checklist
Description
I'm getting this error
HttpSkipResponseCommand.cc:218] errorCode=3 Resource not found
for this particular URL while other videos download normally! Not sure if this is the right place or should I report it onaria2c
.Terminal output and
aria2c
logs are attached.aria2.log
Verbose log