-
Notifications
You must be signed in to change notification settings - Fork 271
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
Corrupt video file makes server 2.4 crash #1508
Comments
i have confirmed that too |
We keep having this problem with some XDCam files, when they reach the end the server crashes. Also some ProRes 422 files that have been incorrectly downloaded or are corrupt in some other way. Do we know if this is something related to the ffmpeg version or could this be fixed on the CasparCG side? This is becoming more of an issue recently. Thanks. |
It is a CasparCG bug introduced when the ffmpeg producer has been rewritten to use multiple threads b657428. Previously any error from ffmpeg would be catched, so the playback would stop, but the server would keep running, now this would crash the server. I currently use a fix like this in production (got the code from #1469, but not the latest iteration). You might get audio sync issues after playing broken part of a file, but that's obviously better than the whole server crashing. |
Yeah that'd be much more desireable! If you think the code is compatible with the current master you could make a pull request with the fix and I can test the next build when it gets approved? Thanks. |
I already tried creating PR all the way in 2022, but current repo maintainer Julusian is hesitant to merge because he lacks deep understanding of ffmpeg part of Caspar (per his words) and is not feeling comfortable about potential impact for other formats. If you are running Linux, I can give you my build, however I am unable to build for Windows, but you can of course build it yourself. |
I have a corrupt video file encoded in UHD ProRes 4444. The download from Dropbox probably failed and the last seconds of the file are corrupted.
On 2.3.2 with a UHD channel ffmpeg complains, throws an error but server stays alive.
On the 2.4 builds that I tested the error makes Caspar crash and it closes.
I tried both UHD and a custom video mode in the 2.4 build and the result is the same.
I cannot share the video file publicly at the moment, but I can send it to @Julusian via the forum if needed. Here are the details:
Environment
The text was updated successfully, but these errors were encountered: