Just to make sure the filter gets the correct value, you should explicitly set the fps value: filter="fps=fps=50,scale=480:-1:flags=lanczos" I'm not experienced in making GIF files with FFmpeg, but as far as I know, the fps filter has an idividual "fps" parameter for the actual framerate value, so I think it may not work correctly if you omit that. I have also noticed that the use of a higher fps eg filter="fps=90,scale=480:-1:flags=lanczos" has the effect of slowing down the gif,like a slow motion effect, the output fps is still lower around 15fps, How do I ensure that the output fps is always whats set by the user?Īny resource on this is highly appreciated. Input #1, png_pipe, from '/tmp/pallete.png': I am using ffmpeg to convert high quality videos to gif, most of the videos are 60fps and over 720p, but when I use the code below, to convert the video to gif, I get very low fps for the gif output, #!/usr/bin/envįilter="fps=50,scale=480:-1:flags=lanczos"įfmpeg -y -i test.mov -vf $filter,palettegen=stats_mode=diff $paletteįfmpeg -y -i test.mov -i $palette -lavfi "$filter paletteuse" test.gifĪnother issue I have noted is - as the width increases e.g 720 instead of 480 I get even lower fps.
0 Comments
Leave a Reply. |