UFOxyz
18th December 2024, 04:44
how can i rotate an image file to 270 degrees or 90 degrees in clockwise?
none of these below worked.
ffmpeg -y -rotate=90 -i "%1" "m:\aaa.bmp"
ffmpeg -y -rotate=90 -i "%~1" "m:\aaa.bmp"
ffmpeg -y -display_rotation 90 -i b.bmp "m:\aaa.bmp"
ffmpeg -y -display_rotation 90 -codec copy -i b.bmp "m:\aaa.bmp"
are these in below the same?
-c copy
-codec copy
-c codec copy
*************************
PS
now i kind of got it after a long floundering
-codec copy must not be included
ffmpeg -y -display_rotation 270 -i "%1" output2.bmp
if there is a way to improve or refine the command line, please do add
none of these below worked.
ffmpeg -y -rotate=90 -i "%1" "m:\aaa.bmp"
ffmpeg -y -rotate=90 -i "%~1" "m:\aaa.bmp"
ffmpeg -y -display_rotation 90 -i b.bmp "m:\aaa.bmp"
ffmpeg -y -display_rotation 90 -codec copy -i b.bmp "m:\aaa.bmp"
are these in below the same?
-c copy
-codec copy
-c codec copy
*************************
PS
now i kind of got it after a long floundering
-codec copy must not be included
ffmpeg -y -display_rotation 270 -i "%1" output2.bmp
if there is a way to improve or refine the command line, please do add