-
Notifications
You must be signed in to change notification settings - Fork 33
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
Intermittent Issue with some VODs, Download Works, Problems at Combine #55
Comments
I am able to reproduce the behavior you described. Researching the problem it seems like its a problem with the key-frames in a chunck that get downloaded from twitch. Unfortunately I have no idea how to fix this. The problem seems to be present in all of the available quality options for the vod, making me assume its a problem with the vod. For this vod the problem seems to be only in the 2nd chunck, so to bypass the error you can -start="0 1 0" to start downloading after the erroneous chunck. I only tested up to 10 minutes but that seems to combine into a valid video. |
Thank you very much for the investigation, workaround, and quick response. Unless you need this left open as a note to look for a method to work in error checking (in a future version) and skip over a bad chunk (or copy last good chunk until valid chunks resume) vs stitching with error at a fraction of the size and dumping the source, this can be closed. (side note; is there a flag to have concat keep the source until the combine is verified by user? essentially, an ability to bypass the housekeeping feature on a per call basis from the command line?). Love the util! |
Just to tip in. I'd also love to have a flag to bypass the deletion of temp chunk files after the combine. Twice I lost 20gb+ downloads due to invalid chunks. Still, love this util! |
After aborting the combining I got to keep the chunks and tried to figure out why it kept failing (output was correct length, only the first chunk of video and then audio for the rest). Turns out that the first and last chunk twitch downloads have a '1000.00 frames/second' when you look at the file property media details. Reusing the generated ffprobe on the starting (and end) chunk results in:
and the 2nd (and 3rd, 4th, 5th) chunk report:
Note the stream number which is reported as incorrect in each ffprobe output! Manually fixing the first and last chunk with
Which reordered the streams in the file; using these fixed reordered streams in start and end chunk with ffmpeg to concat results in a successful VOD output. I have tried using the |
I have been using concat for years (great util!); however, just recently, our family started hitting internet data caps, so today I tried to switch from 720p60 as our default, to something lower, this is when I discovered an intermittent issue at combine. Most stream downloads work, others are quite stubborn and do not.
I tried to find one that always fails for easier reproduction of the error; usually everything is fine, or at most, a retry at a different setting will work, though this Minecraft vod I tried to grab for the kids fails consistently at all settings (493274494).
I used the -qualityinfo flag to get valid / available quality settings.
The download seems to work fine; ie, at 720p60 this 4hr stream will grab ~5GB of chunks, at 480p30 this 4hr stream will grab ~2GB of chunks, at 360p30 this 4hr stream will grab ~1GB of chunks, and at 160p30 this 4hr stream will grab ~512MB of chunks. If you look at the 'thumbnails' for each chunk, they are different and show progression through the entire 4hrs, and each piece can indeed be played directly in a media player.
However; when concat_win stitches, the output is approx 10% of that total download size, and while an mp4 file is produced, there is only a few seconds of video, and four hours of audio.
I tried downgrading to v26, then v25, same issue. I have not gone back further.
I tried with ffmpeg v421 and v401, same issue. I have not gone back further.
I tried manually combining the resulting ts files with ffmpeg (not sure if I am using correct syntax) and see errors relating to "non-monotonous DTS in output stream" and "non-existing PPS 0 referenced".
For the most part I have no issues and am happy to abandon this particular vod; already used ridiculous amounts of data in all this testing, but thought it worth reporting in case others encounter the problem and the issue is able to be accounted for / corrected.
I am also happy to test alternate manual combines if you have any suggestions at the ffmpeg syntax.
The text was updated successfully, but these errors were encountered: