[FFmpeg-user] Convert gif to mp4 using ffmpeg
aris
arissirajawali at gmail.com
Thu Mar 10 11:01:31 CET 2016
Hi barsnick,
Thanks for advice, I've tried running the following command, but I get an
error as follows:
./ffmpeg -framerate 25 -pattern_type glob -i
/root/video-source/gif/yeay.gif /root/video-source/gif/outgif/outyeay.mp4
ffmpeg version 2.6.git Copyright (c) 2000-2015
the FFmpeg developers
built with gcc 4.7 (Debian 4.7.2-5)
configuration: --prefix=/root/ffmpeg_build
--extra-cflags=-I/root/ffmpeg_build/include
--extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl
--enable-libass --enable-libfdk-aac --enable-libfreetype
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
libavutil 54. 26.101 / 54. 26.101
libavcodec 56. 41.101 / 56. 41.101
libavformat 56. 34.100 / 56. 34.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Option framerate not found.
please help and input
On Thu, Mar 10, 2016 at 4:34 PM, Moritz Barsnick <barsnick at gmx.net> wrote:
> On Thu, Mar 10, 2016 at 16:20:23 +0700, aris wrote:
> > I need to know how to convert gif to mp4 using ffmpeg best quality
> results ?
>
> Using the image2 demuxer:
> https://www.ffmpeg.org/ffmpeg-formats.html#image2-1
>
> Something like
> $ ffmpeg -framerate 25 -pattern_type glob -i "*.gif" out.mp4
>
> You may need to play with the quality settings, e.g. "-crf" if your
> ffmpeg supports libx264, or "-q:v" for the mpeg4 codec.
>
> (Did you mean mp4 container with such a file extension, or the mpeg4
> codec?)
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list