Kethsar / ytarchive

Garbage Youtube livestream downloader
MIT License
1.01k stars 83 forks source link

Invalid data found when processing input #167

Closed dongswag closed 7 months ago

dongswag commented 7 months ago

I couple days ago I updated ffmpeg for reasons unrelated to ytarchive, as I was several months out of date, and since then ytarchive no longer works and consistently fails when muxing. Output looks something like this

2023/12/03 07:00:42 Download Finished
2023/12/03 07:00:42 Muxing final file...
Error opening input files: Invalid data found when processing input
2023/12/03 07:00:42 ERROR: Execute returned code 3199971767. Something must have gone wrong with ffmpeg.
2023/12/03 07:00:42 ERROR: The .ts files will not be deleted in case the final file is broken.
2023/12/03 07:00:42 ERROR: Finally, the ffmpeg command was either written to a file or output above.

Always with that 3199971767 error. When I try to input the command manually I get this (I renamed the files to make sure weird characters weren't the issue, same error happened with the original names)

[mov,mp4,m4a,3gp,3g2,mj2 @ 000001da6e2de680] error reading header
[in#0 @ 000001da6e29ac40] Error opening input: Invalid data found when processing input
Error opening input file 140.ts.
Error opening input files: Invalid data found when processing input

So far I've tried to archive 4 streams since updating and the same issue has occurred on every one. I have been using ytarchive on this same machine regularly for a year and a half at least, and have upgraded ffmpeg multiple times during that period, and only recently has this problem started. I'm trying to pinpoint if it's a problem with ffmpeg that I would need to perhaps downgrade to fix, an unrelated Youtube update that broke ytarchive coincidentally on that same day, or something wrong with my install specifically. But as I mentioned, I use ffmpeg with other programs and only have had problems with ytarchive so far.

Hakkin commented 7 months ago

This should already be fixed in the latest ytarchive dev branch, see https://github.com/Kethsar/ytarchive/pull/164

You can download builds for the latest release at https://github.com/Kethsar/ytarchive/releases/tag/latest

dongswag commented 7 months ago

Oh that would do it, I didn't even think to check for a new release. Thanks.