Mencoder input.mp4 -nosound -o characters-resize-turn.avi -vf rotate=0 -ovc lavc -lavcopts vcodec=mpeg4 -ofps 30 To counter that I use: -vf "transpose=0,hflip=0", and it resolves the problem. Update : Actually just using -vf transpose=0 will flip the video horizontally as well, which is undesirable in some cases. So set it up explicitly.įfmpeg -vf transpose=0 -i input.mp4 -r 30 output.avi If you leave it as-is the (default) mpeg compression makes a lot of I and P frames, and too few B frames. It turns out the problem is with the frame rate. If you get the “Unrecognized option ‘vf'” error, you need to configure & build ffmpeg with -enable-filters (or at least without -disable-filters), and check with ffmpeg -filters that you get them to show up.Īlso, I always get very lousy video quality when using the plain vanilla settings. Just using -vf transpose=0 to rotate 90 deg clockwise. ffmpeg -vf transpose=0 -i input.mp4 output.avi But the files are always saved in landscape mode, which makes them rotated when you watch.Īlthough there are plenty of GUI software to do it, using the command line is faster and can also be batched! Single handedly it’s easiest to do it when the phone is upright and not in landscape mode. I’m always frustrated with taking videos with my phone. I’d like to share a quick tip on rotating video files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |