In ffmpeg
4.0, there are several h264 encoders. If you use ./configure --list-encoders | grep "h264"
, you can see them.
I do not know what's the difference between. And I want convert local gif to mp4 using ffmpeg, so which encoder works for me?
Each encoder use a different API to access video hardware :
With proper hardware, each encoder will succeed to encode your decoded gif to mp4.
You can custom this command to convert gif to mp4 :
$ ffmpeg -i local-gif.gif -c:v libx264 output.mp4
libx264 is the default encoder which does not use any specific hardware this can be changed to the desired encoder.