ffmpeg transpose=clock rotates 180 degrees instead 90 I have 2 similar videos created on the same mobile. The first one can be downloaded here.
If I'm using the following command the result is correctly rotated by 90 degrees:

ffmpeg -i 20180114_193135.mp4 -vf "transpose=clock" -r 30 -acodec copy 20180114_193135_2.mp4


But if I'm using the same command for the second video it is rotated by 180 degrees instead 90:

ffmpeg -i 20180115_111730.mp4 -vf "transpose=clock" -r 30 -acodec copy 20180115_111730_2.mp4


Can somebody explain, why? I can not rotate the second video with ffmpeg.
FFmpeg, by default, autorotates videos if a rotation tag is detected. The output video will be oriented upright and have no rotation tag. During processing, this step happens before any filtering is done.

So, in this case, you can simply run

ffmpeg -i 20180115_111730.mp4 -r 30 -acodec copy 20180115_111730_2.mp4


Alternatively, to perform manual rotation, you can suppress auto-rotation

ffmpeg -noautorotate -i 20180115_111730.mp4 -vf "transpose=clock" -r 30 -acodec copy 20180115_111730_2.mp4