LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mplayer - custom fps (https://www.linuxquestions.org/questions/linux-software-2/mplayer-custom-fps-4175502912/)

FedorSymkin 04-25-2014 12:07 AM

mplayer - custom fps
 
Hello. I need to set custom output fps in mplayer but I can't use -fps option because it just changes video duration time. I need to change fps with keeping video duration time (i.e skip or add some frames). Is there such option in mplayer?

teckk 04-25-2014 02:34 PM

Not with mplayer
You'll need to reencode the video with mencoder or ffmpeg
https://ffmpeg.org/ffmpeg.html
http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html

Example: Output a 15 fps video.
Code:

ffmpeg -i input.avi -c:a copy -c:v libx264 -b:v 1000k -f 15 output.avi
If you change frame rates of the video, you will probably have audio-video sync issues.

Tell a little more about what you are doing.

DJ Shaji 04-26-2014 12:59 PM

Quote:

Originally Posted by FedorSymkin (Post 5158801)
Hello. I need to set custom output fps in mplayer but I can't use -fps option because it just changes video duration time. I need to change fps with keeping video duration time (i.e skip or add some frames). Is there such option in mplayer?

You can skip frames:
Quote:

framestep=I|[i]step
Renders only every nth frame or every intra frame (keyframe).
But I don't think you can add frames, because, well, the player wouldn't know where to add them from. Mplayer can generate test images (-vf test), but I don't think that's what you mean. What are you trying to do?


All times are GMT -5. The time now is 10:55 AM.