News:

--

Main Menu

MP4 Flip

Started by dbrillha, September 17, 2024, 02:54:45 PM

Previous topic - Next topic

dbrillha

Brand new here. Sorry if this is a common question. I just need a tool that can take a folder of MP4 video clips (from my GoPro) that are upside-down, and batch convert them. Turns out they need to be flipped both vertically and horizontally. And retain the original properties and meta data like telemetry, GPS.

I'm hoping this powerful tool can do it. If not do you know of a tool that can. Windows Movie Maker can, but I need to manually perform that one by one for each video clip.

Thanks!!

eumagga0x2a

Both re-encoding in a batch with a video filter inserted to actually rotate the image and batch-remuxing (preserving original compressed frames, a very fast, almost instant procedure, no quality loss) as MP4 with rotation metadata added is easily possible.

However, retaining telemetry, GPS and, in general, any metadata is not possible with Avidemux.

Elstar`

You can try something like ffmpeg -i input.mp4 -c copy -metadata:s:v rotate=90 output.mp4

It will adjust rotate flag in container without reencoding. I wonder, if it will keep other metadata, though...

cletchlazaret

Quote from: dbrillha on September 17, 2024, 02:54:45 PMBrand new here. Sorry if this is a common question. I just need a tool that can take a folder of MP4 video clips (from my GoPro) that are upside-down, and batch convert them. Turns out they need to be flipped both vertically and horizontally. And retain the original properties and meta data like telemetry, GPS.

I'm hoping this powerful tool can do it. If not do you know of a tool that can. Windows Movie Maker can, but I need to manually perform that one by one for each video clip.
Thanks!!
Use FFmpeg to batch flip MP4 videos. Here's the command for a folder of videos:
Install FFmpeg from ffmpeg.org.
Run this command in the folder with your videos:
for %f in (*.mp4) do ffmpeg -i "%f" -vf "vflip,hflip" -map_metadata 0 -c:v libx264 -crf 18 -c:a copy "flipped_%~nf.mp4"
This flips the videos, keeps metadata (GPS, telemetry), and preserves quality.