This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] how to rotate video without loss?
#1
rotate 90°, and keep quality without encoding.
Reply
#2
Rotating a video without reencoding isn't supported in Hybrid.
If your output is mp4 or mov:
ffmpeg -i "path to input" -map_metadata 0 -metadata:s:v rotate="90" -codec copy "Path to output .mp4/.mpv"
allows to rotate a video by setting some meta data for the player, so that the player will rotate on playback.

Something similar can be done for mkv using mkvmerge and the projecttion options:
--projection-type TID:method     
Sets the video projection method used. Valid values are 0 (rectangular projection), 1 (equirectangular projection), 2 (cubemap projection) and 3 (mesh projection).

--projection-private TID:data     
Sets private data that only applies to a specific projection. Data must be given as hex numbers with or without the "0x" prefix, with or without spaces.

--projection-pose-yaw TID:float     
Specifies a yaw rotation to the projection.

--projection-pose-pitch TID:float     
Specifies a pitch rotation to the projection.

--projection-pose-roll TID:float
Specifies a roll rotation to the projection.
see: https://mkvtoolnix.download/doc/mkvmerge.html


Cu Selur
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)