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

Baptiste Coudurier baptiste.coudurier
Thu Nov 1 13:30:47 CET 2007


Ramiro Polla wrote:
> 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.

Fixed in r10891 by Michael, he changed fprintf to print_error.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-devel mailing list