Here is a (untested) batch file: set SOURCE=input.mp4 It is probably not convenient to manually edit and paste those commands every time one need to do the conversion. I don't have Windows at hand and can't check if everything is right. Set F=fps= 15,scale= 400x240:sws_dither=ed:sws_flags=lanczosįfmpeg.exe -i input.mp4 -vf %F%,palettegen -y palette.pngįfmpeg.exe -i input.mp4 -i palette.png -lavfi %F%" paletteuse=dither=none" -y output.gif I haven't tried, but something like this should work: You can also use FFmpeg from command line in Windows. Trying to fit in 2 MiB to attach here as a picture Reduce FPS to 15 and drop dithering filters=fps=15,scale=425x240:sws_dither=ed:sws_flags=lanczosįfmpeg -v warning -i sample.mkv -vf $filters,palettegen -y sample.m.pngįfmpeg -v warning -i sample.mkv -i sample.m.png -lavfi $filters' paletteuse=dither=none' -y sample.m.gif The result has half resolution, looks better, but still 12M. filters=scale=854x480:sws_dither=ed:sws_flags=lanczosįfmpeg -v warning -i sample.mkv -vf $filters,palettegen -y sample.d.pngįfmpeg -v warning -i sample.mkv -i sample.d.png -lavfi $filters' paletteuse' -y sample.d.gif Result 12M (Note: it won't be hosted foverer here):Īccording to this article. Plain conversion ffmpeg -i sample.mkv -y sample.gif ![]() You haven't posted your mp4 sample, so I am using my own. ![]() You can apply some effects or resize the video to balance between quality and file size.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |