Avidemux Forum

Avidemux => Windows => Topic started by: pstein on October 10, 2018, 08:14:09 AM

Title: How to change rotation header field for MP4 video without re-encoding?
Post by: pstein on October 10, 2018, 08:14:09 AM
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
Title: Re: How to change rotation header field for MP4 video without re-encoding?
Post by: eumagga0x2a 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 (https://www.ffmpeg.org/ffmpeg-all.html#Main-options) option (https://stackoverflow.com/questions/15335073/can-i-set-rotation-field-for-a-video-stream-with-ffmpeg (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.