Flipping and rotating of the video frame are common visual operations, that can be used to create various interesting effects like mirrored versions of the input
To test the horizontal flip on a testsrc video source, we can use the command
ffplay -f lavfi -i testsrc -vf hflip
FFmpeg command for Vertical flip
ffplay -f lavfi -i rgbtestsrc -vf vflip
FFmpeg Rotating Command
Rotation by 90 degrees counterclockwise and flip vertically
ffmpeg -i CMYK.avi -vf transpose=0 CMYK_transposed.avi
Rotation by 90 degrees clockwise
ffmpeg -i CMYK.avi -vf transpose=1 CMYK_transposed.avi
Rotation by 90 degrees counterclockwise
ffmpeg -i CMYK.avi -vf transpose=2 CMYK_transposed.avi
Rotation by 90 degrees clockwise and flip vertically
ffmpeg -i CMYK.avi -vf transpose=3 CMYK_transposed.avi