Iam trying to convert image from GIF to JPG using FFMPEG ,the following commands which i tried
D:\FFMpeg\FFMpeg_Latest>ffmpeg -i "C:\Documents and Settings\Admin\Desktop\Natur
e.gif" -y -s 174x96 -pix_fmt rgb24 "C:\Documents and Settings\Admin\Desktop\Natu
But i got C:\Documents and Settings\Admin\Desktop\Nature.gif: could not find codec paramet
Can anybody send me the command line for converting GIF to JPG......
Thanks in Advance!
+ Reply to Thread
Results 1 to 9 of 9
Thread: How to convert GIF image t0 JPG
This works for me:
ffmpeg -i INPUT.GIF -y -s 174x96 -pix_fmt yuvj420p OUTPUT.JPG
Wouldn't it be more simple to open the gif with paint and save as jpg?I think,therefore i am a hamster.
There's other programs that can do batch gif to jpg as well such as irfanview.I think,therefore i am a hamster.
Here's a batch file that will convert all gif files in the folder the bat file is in, and all sub folders down from there, to jpg files with the same base name. The original gif files are left untouched. Animated gifs will result in a jpg file with a single frame.
dir/b/s *.gif >giflist.txt for /F "delims=;" %%F in (giflist.txt) do "c:\program files\ffmpeg\bin\ffmpeg.exe" -i "%%F" -y -s 174x96 -pix_fmt yuvj420p "%%~dF%%~pF%%~nF.jpg" del giflist.txt
Last edited by jagabo; 7th Jan 2014 at 20:19.
AviDemux can save as a sequence of images.