Open jobevers opened 5 years ago
Mh I wonder in which part of the pipeline this "displaymatrix rotation" is handled. Could you upload a short sample that has such side data?
Here, I think: https://github.com/mpv-player/mpv/blob/d5cad856255cb0e74461f9d6613f561c6f347a0f/demux/demux_lavf.c#L643
The OpenCamera app adds the metadata based on the phone orientation. I'll add a sample shortly.
Ok, I think it might just be a matter of summing the video-rotate
property with video-out-params/rotate
. Rotations due to libav's filters should handled automatically.
from ffprobe:
notice the
displaymatrix: rotation of -90.00 degrees
.MPV will automatically rotates the video -90 degrees. Unfortunately the
video-rotate
property returns back 0, which is expected based on the docs:Then, the cropping is all funny.