![]() ![]() In fact, what you see here is just a remnant of the MP4 metadata copied to the Matroska file, not a tag that has any specific meaning in the Matroska file format. That’s because the rotation metadata only seems to be intact. However, opening b.mkv in several different viewers like VLC 3.0.16 or Totem 3.38.2 shows a tilted video! We can also use a specialized tool to investigate Matroska metadata, mkvinfo (part of the MKVToolNix suite): $ mkvinfo b.mkv ![]() The rotation metadata seems to be intact (although ExifTool needs an additional flag to show it): $ ffprobe b.mkv Now let’s convert this MP4 to Matroska without transcoding, i.e., changing only the container format while copying the video and audio streams (because reasons): $ ffmpeg -i a.mp4 -c copy b.mkv Both ExifTool and ffprobe show its rotation metadata (and most video players apply it): $ ffprobe a.mp4 Let’s see if we can rotate a Matroska (mkv) video using metadata! (spoiler: not really, but maybe in the future) Setting the sceneĬonsider a usual MP4 video file created by a mobile phone. Playback software that respects these tags applies the correct rotation when rendering a video while software that doesn’t only displays the tilted, un-rotated (original) video. Videos created by mobile phones are often rotated by means of embedded metadata tags.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |