Hello,

Excerpts from Andreas Cadhalpun's message of Thu Mar 12 14:54:38 +0100 2015:
> 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.

I think that by default errors should lead to non-zero return value even
if output can be produced. Such output can also contain errors and
cannot be considered valid unless checked by the user. However, if this
is weird upstream design decision Debian is not the place to change that.

Unfortunately, the option to report errors does not seem to be
documented. After some grepping of the man page I get no relevant
results.

Also it does not change the fact that encoding broken source may result
in success.

> 
> So I don't see a bug here. If you still do, please elaborate.

Thanks

Michal

$ ffmpeg -xerror -v warning -i 
/scratch/dwhelper/Mill_CPU_for_Humans_-_Part_2.mp4 -f null /dev/null ; echo $?
[null @ 0x264f8c0] Encoder did not produce proper pts, making some up.
[h264 @ 0x26096e0] AVC: nal size 5421
    Last message repeated 1 times
[h264 @ 0x26096e0] no frame!
0


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to