How to keep source frame rate with mencoder/ffmpeg?

Posted by Sandra on Super User See other posts from Super User or by Sandra
Published on 2013-10-30T15:20:55Z Indexed on 2013/10/30 15:57 UTC
Read the original article Hit count: 210

Filed under:
|
|
|
|

I would like to crop and rotate a video, and then encode it to mp4 or mkv.

mencoder video.mp4 -vf rotate=1,crop=720:1280:0:0 -oac pcm -ovc x264 -x264encopts preset=veryslow:tune=film:crf=15:frameref=15:fast_pskip=0:threads=auto -lavfopts format=matroska -o test.mkv

But when I do the above encoding, the frame rate is way too fast. The encoding options were something I found, so I don't know if that is the problem.

Question

All I want is to crop and rotate the video, and keep the audio/video quality as good as possible.

Have anyone tried this?

© Super User or respective owner

Related posts about linux

Related posts about video