Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Adult swim: Improved downloading with "-re" to ffmpeg #13317
Comments
|
GRR. Or not. It died (stopped downloading) on segment 113. Its working a whole lot better, but not perfect, and lacking a "Resume" just doesn't work. Video being tested: |
|
Just an additional bit of info:
After that, problem. I can watch videos in the browser just fine. Downloading is failing. |
|
So attempting to use the rate-limit option, -r, does not affect ffmpeg. Neither does --keep-fragments. --hls-prefer-native still uses ffmpeg. And just in case, I even tried --include-ads, to see if that was triggering the "this is a browser, let it happen" test. All fails.
And just in case you are curious, I tried some other videos. All the same. I have not had anything work since things stopped working on the 5th. |
|
Most likely network related issue.
Install pycrypto. |
|
Thank you. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.06.05. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
So attempting to download videos from adult swim normally results in ffmpeg doing a download as fast as possible, and then the video freezing/dying in the middle.
Manually fetching, with the "--dump-json" and creating an ffmpeg command line, and adding "-re" to force real-time downloading works.
I'm not going to call it perfect -- I got this:
(as I say this, the file is 110 segments and 18 minutes into the download).
Now, I cannot manage to get ffmpeg to resume an interrupted download no matter what I do (any error requires restarting from the beginning). My understanding of the native downloader inside youtube-dl is that it can resume. While getting most of the video is better than nothing, being able to retry would be even better.
NB: I have had horrible network performance tonight (fault on my router). It is entirely possible that that "unable to open" was entirely on my own end. So when I say I'd like to see a failure like that result in at least one retry/resume, I am serious.
===
The TL;DR: 1. Adding "-re" to ffmpeg options on adult swim turns a large number of failures into successes.
2. ffmpeg doesn't seem able to resume an interrupted download.
3. If the internal downloader can resume, then switching would permit restarting from network errors.