Closed Columbo199X closed 3 years ago
I have a similar problem with vrv, but for me it's always Connection to tcp://fy.v.vrv.co:443 failed: Connection timed out
. But for some reason, it only happens when specifying a format. If I don't specify a format, it downloads it like this, presumably without ffmpeg:
[download] Downloading video 11 of 24
[vrv] GRMEPP9ZY: Downloading resource path JSON metadata
[vrv] GRMEPP9ZY: Downloading object JSON metadata
[vrv] GRMEPP9ZY: Downloading video JSON metadata
[vrv] GRMEPP9ZY: Downloading streams JSON metadata
[vrv] GRMEPP9ZY: Downloading dash-audio-ja-JP information
[vrv] GRMEPP9ZY: Downloading hls-audio-ja-JP information
[dashsegments] Total fragments: 712
[download] Destination: XYZ.fdash-audio-ja-JP-f3-v1-x3.mp4
[download] 100% of 1.32GiB in 31:56
[dashsegments] Total fragments: 712
[download] Destination: XYZ.fdash-audio-ja-JP-f1-a1-x3.m4a
[download] 100% of 22.32MiB in 22:19
[ffmpeg] Merging formats into "XYZ.mp4"
But I sometimes have to specify a format, otherwise ydl marks a hardsub source as "best" and downloads that instead.
EDIT
Solved by using --hls-prefer-native
, maybe a solution to the original problem too.
I know I'm late to this thread but I was able to fix it by calling to the youtube-dl servers.
youtube-dl https://www.crunchyroll.com/rent-a-girlfriend/episode-1-rent-a-girlfriend-796247 --all-subs --call-home
It takes a little long to download but it downloads it perfectly.
Sorry if this isn't what you're looking for.
@AntsyBoi I tried it with --call-home but I still got a 502. My guess is that crunchyroll puts the episodes on different servers because newer/popular episodes download without errors while episodes that were released ~ 1 year ago tend to error. You can see this when batch-downloading episodes. Usually the first 3 episodes download from the same server but when you get to the later episodes the server switches and the errors start happening.
Have you tried doing it under a proxy? That might resolve it
I've done another attampt this time with a proxy and --user-agent + --cookies. This fixed the error 403 at the start and it got further than before but one episode later and yet another 502 popped up. I'm out of ideas. I probably have to download each episode on it's own. If you want to test it yourself these two episodes tend to error the most. https://www.crunchyroll.com/a-centaurs-life/-742029 https://www.crunchyroll.com/a-centaurs-life/-742031
I couldn't get your error to replicate on my end. If you want, put all of them in a .txt file and use youtube-dl -a [insert file name].txt. Hope this helps!
Checklist
Verbose log
Description
When downloading a video on Crunchyroll I randomly get an 502 Error (HTTP error 502 Bad Gateway) which fails to open a segment. This results in a jump/skip when playing the video at the timestamp the segment is missing. In the verbose log this happened at segement 96. Since this is a 502 Error I assume it's on Crunchyrolls end.