Author Topic: How to change rotation header field for MP4 video without re-encoding?  (Read 50 times)

pstein

  • Jr. Member
  • **
  • Posts: 75
As far as I know the  file header of an MP4 video contains some information about the auto-rotation of a video file when played in video player (e.g.VLC).

So I guess users can change this header field (e.g. to 90deg clockwise) without re-encoding the full video.

How does this work in Avidemux?

Peter

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 2201
Re: How to change rotation header field for MP4 video without re-encoding?
« Reply #1 on: October 10, 2018, 08:48:33 AM »
This is not possible in Avidemux, but you can set the field using ffmpeg with the -metadata option (https://stackoverflow.com/questions/15335073/can-i-set-rotation-field-for-a-video-stream-with-ffmpeg). First edit the video in Avidemux, then set the field with ffmpeg, otherwise it will be discarded.