I want to convert from .flv to .h264 format.
Problem: I did a conversion from FLV to H264 format but my converted video (.h264) is running so fast (just like we’d click on a fast forward button).
I used the following command:
ffmpeg -i example.flv -sameq -vcodec libx264 -vpre default -ar 22050 output.h264
The solution is that you need a container format. Raw h.264 does not have any timing information for a video which is why your player is playing it very fast.
Also your command is all messed up. Do you want audio in your output or not? If yes then you need to specify a container format which will have both audio and video.
Either change your output to a mp4
or some other container. If you want a video only stream remove the audio options and add
-an.If you want to use AAC audio instead of whatever the FLV file has:
If your ffmpeg does not have the
-cor-profileoptions, update to a more recent version.