ffmpeginteropx / FFmpegInteropX

FFmpeg decoding library for Windows 10 UWP and WinUI 3 Apps
Apache License 2.0
205 stars 52 forks source link

Fix video rotation #329

Closed lukasf closed 1 year ago

lukasf commented 1 year ago

I just noticed that video rotation is no applied anymore for portrait videos. Looks like there was a change in ffmpeg (maybe v5? worked in 4.x versions). Previously, ffmpeg would seta "rotate" metadata tag. Now, the rotation is set in a display matrix side data element and I do not get "rotate" anymore.

I still left the metadata tag check, but added support for displaymatrix.