radek-k / FFMediaToolkit

FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
352 stars 56 forks source link

Phone created portrait video frames shows rotated #95

Closed artkh24 closed 2 years ago

artkh24 commented 2 years ago

Hi when trying to get the frames from video created by phone using portrait mode all frames showing rotated by 90 degree

ggolda commented 2 years ago

Same problem. This issue is due to how vendors pack portrait videos in landscape format + add metadata with rotation parameter in it.

Currently FFMediaToolkit doesn't provide this metadata parameter for rotation with a video stream metadata dictionary and I had to use ffprobe to get it.