Control: tag -1 moreinfo Hi Michal,
On 12.03.2015 13:22, Michal Suchanek wrote:
I noticed that a video is broken (truncated). I tried to detect the breakage with ffmpeg in order to be able to detect possible breakage of other video files but while ffmpeg prints a frame error it returns success on finishing encode: $ ffmpeg -v warning -i /scratch/dwhelper/Mill_CPU_for_Humans_-_Part_2.mp4 -f null /dev/null ; echo $? [null @ 0x1554880] Encoder did not produce proper pts, making some up. [h264 @ 0x1645bc0] AVC: nal size 5421 Last message repeated 1 times [h264 @ 0x1645bc0] no frame! 0 Can the error reporting be fixed for programmatic error detection?
I think ffmpeg tries to continue on errors, because the rest of the file still might contain usable data.
If you want to use ffmpeg for programmatic error detection, you probably want to use the '-xerror' command line option, which causes ffmpeg to quit with an error exit code, if any error occurred.
So I don't see a bug here. If you still do, please elaborate. Best regards, Andreas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org