Skip to content

demux: mkv: handle rotation

Romain Vimont requested to merge rom1v/vlc:mkv_rotation into master

If a display rotation is set to a MKV file, it must be taken into account.


To reproduce the issue:

ffmpeg -display_rotation 90 -i big_buck_bunny.mp4 -c copy output.mp4
ffmpeg -display_rotation 90 -i big_buck_bunny.mp4 -c copy output.mkv

ffplay output.mp4    # ok
ffplay output.mkv    # ok

vlc output.mp4       # ok
vlc output.mkv       # ko (no rotation applied)

ffmpeg -i output.mkv -c copy remux.mp4
vlc remux.mp4        # ok
Edited by Romain Vimont

Merge request reports