

Lower means better quality, so if your video ends up looking worse than the original, try a lower CRF value. Sane values are anywhere between 18 and 28, depending on your input quality. You can adjust the CRF ( Constant Rate Factor) to change the quality of the video. ffmpeg -i input.mp4 -c:v libx264 -crf 23 -filter:v "hflip,vflip" -c:a copy output.mp4 If you want to transcode the video, flipping it by 180°, you need to specify a video encoder (here, libx264) and the flipping filter. If you want to keep the actual video bitstream and remove the rotation flag, you only need to remove the metadata for the first video stream v:0, and copy the video and audio bitstreams ( -c copy): ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=0 output.mp4 Here are the actual commands you can use. The answer to that issue is to use VLC media player to rotate the image. The usual problem is that video players like Windows media player, quicktime or others play a video upside down. For more info read our blog article on ffmpeg. 7 I seem to have an issue that is exactly the opposite of that of many other users with upside down video's. Then open up a terminal window and navigate to said directory: cd ~/Downloads so that the ffmpeg executable file is in ~/Downloads. Download a static build for your operating system, and extract it to a directory, e.g. This will degrade the video quality a little though. Rotate and transcode the video so it has a proper orientation.

If you want to play it, choose a player that supports on-the-fly rotation. If you want to edit the video later, flip it in whatever program you use to do so. Keep it as-is and remove the rotation flag.The question is what you want to do with the video. VLC does support this flag since version 2.2.0. MP4 files can have a rotate flag, which tells the player to rotate the video during playback, without changing the way the actual video bitstream is encoded and oriented.
