so I have a bunch of phone videos which were taken in portrait mode. iv re-encoded them to smaller size but noticed now that they don't playback properly since they are not auto rotating.
I can fix the issue with ffmpeg by adding in the rotation metadata flag as:
ffmpeg -i input.mp4 -map_metadata 0 -metadata:s:v rotate="270" -codec copy output.mp4
is there a way I can do a batch conversion so it applies this to all 170 vids in the folder without having to do it manually one by one?
I can fix the issue with ffmpeg by adding in the rotation metadata flag as:
ffmpeg -i input.mp4 -map_metadata 0 -metadata:s:v rotate="270" -codec copy output.mp4
is there a way I can do a batch conversion so it applies this to all 170 vids in the folder without having to do it manually one by one?