[FFmpeg-devel] [PATCH] check error on write_frame

Ramiro Polla ramiro
Sat Oct 13 03:46:56 CEST 2007


Michael Niedermayer wrote:
> Hi
> 
> On Tue, Sep 25, 2007 at 02:55:26PM +0200, Baptiste Coudurier wrote:
>> Hi guys,
>>
>> $subject.
>>
>> Is it ok to exit this way ?
>> Failure on avcodec_encode_video is treated acted this way.
> 
> hmm probably ok

$ ./ffmpeg_g -i input.avi nowhere/%02d.jpg
FFmpeg version SVN-r10720, Copyright (c) 2000-2007 Fabrice Bellard, et al.
   configuration: --prefix=/usr
   libavutil version: 49.5.0
   libavcodec version: 51.45.0
   libavformat version: 51.14.0
   built on Oct 12 2007 22:41:28, gcc: 4.1.2
Input #0, avi, from 'input.avi':
   Duration: 00:00:05.0, start: 0.000000, bitrate: 748 kb/s
   Stream #0.0: Video: mpeg4, yuv420p, 352x288, 25.00 fps(r)
   Stream #0.1: Audio: mp2, 44100 Hz, stereo, 64 kb/s
Output #0, image2, to 'images/%02d.jpg':
   Stream #0.0: Video: mjpeg, yuvj420p, 352x288, q=2-31, 200 kb/s, 25.00 
fps(c)
Stream mapping:
   Stream #0.0 -> #0.0
Press [q] to stop encoding
Error writing frame: -5
                      ^^

This seems rather non-descriptive. A strerror() might help.




More information about the ffmpeg-devel mailing list