Interrupting processing of a damaged file
Posted: Mon Aug 11, 2025 1:22 pm
Hi, cool user of FFAStrans!
I have encountered cases where damaged files (mp4, mxf) were successfully processed by the FFmpeg processor. This is understandable.
And I see that when processing with the FFmpeg processor, the file being processed is first checked by mediainfo. Mediainfo can detect integrity violations in mp4 and mxf files by marking them with the “IsTruncated” attribute: I am wondering if it is possible to use this “standard” check to interrupt processing and terminate with an error?
Of course, I made a small CMD utility in Python that checks the file using Mediainfo and returns codes 0 or 1 upon completion, which can then be used by other processors in FFAStrans. But still, I wonder if there is a simpler solution?
I have encountered cases where damaged files (mp4, mxf) were successfully processed by the FFmpeg processor. This is understandable.
And I see that when processing with the FFmpeg processor, the file being processed is first checked by mediainfo. Mediainfo can detect integrity violations in mp4 and mxf files by marking them with the “IsTruncated” attribute: I am wondering if it is possible to use this “standard” check to interrupt processing and terminate with an error?
Of course, I made a small CMD utility in Python that checks the file using Mediainfo and returns codes 0 or 1 upon completion, which can then be used by other processors in FFAStrans. But still, I wonder if there is a simpler solution?