[FFmpeg-user] create an animated GIF from set of images

Clément Bœsch ubitux at gmail.com
Thu May 16 23:15:14 CEST 2013


On Thu, May 16, 2013 at 05:10:22PM -0400, Eugene Dzhurinsky wrote:
> On Thu, May 16, 2013 at 11:57:50PM +0300, Andrey Utkin wrote:
> > In both cases i get same error
> > pipe:: Input/output error
> > But in both cases i get 2 frames written to output and output files valid.
> > If you have other results, check your ffmpeg to be of recent version.
> 
> I believe that I/O error comes from the fact that stream was closed.
> 
> In my case for GIF I can see:
> 
> ===================================================================================
> 
> ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
>   built on May 10 2013 16:31:05 with gcc 4.8.0 (GCC) 20130502 (prerelease)
>   configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-vdpau --enable-version3 --enable-x11grab
>   libavutil      52. 18.100 / 52. 18.100
>   libavcodec     54. 92.100 / 54. 92.100
>   libavformat    54. 63.104 / 54. 63.104
>   libavdevice    54.  3.103 / 54.  3.103
>   libavfilter     3. 42.103 /  3. 42.103
>   libswscale      2.  2.100 /  2.  2.100
>   libswresample   0. 17.102 /  0. 17.102
>   libpostproc    52.  2.100 / 52.  2.100
> [image2pipe @ 0xfb2140] Estimating duration from bitrate, this may be inaccurate
> Input #0, image2pipe, from 'pipe:':
>   Duration: N/A, bitrate: N/A
>     Stream #0:0: Video: png, pal8, 558x466, 10 fps, 10 tbr, 10 tbn, 10 tbc
> [gif @ 0xfbbbc0] ERROR: gif only handles the rgb24 pixel format. Use -pix_fmt rgb24.
> Output #0, gif, to 'test.gif':
>   Metadata:
>     encoder         : Lavf54.63.104
>     Stream #0:0: Video: rawvideo, pal8, 558x466, q=2-31, 200 kb/s, 90k tbn, 10 tbc
> Stream mapping:
>   Stream #0:0 -> #0:0 (png -> rawvideo)
> Could not write header for output file #0 (incorrect codec parameters ?): Input/output error
> 
> ===================================================================================
> 
> and resulting GIF is 0-sized.
> 
> ffmpeg version 1.2.1
> 

Please try FFmpeg git/master, various changes and improvements got in for
GIF encoding.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20130516/b3fd0f8b/attachment.asc>


More information about the ffmpeg-user mailing list