wseemann / FFmpegMediaMetadataRetriever

FFmpegMediaMetadataRetriever provides a unified interface for retrieving frame and meta data from an input media file.
1.72k stars 387 forks source link

FFmpegMediaMetadataRetriever does not respect video rotation in getFrameAtTime #273

Closed daio closed 1 year ago

daio commented 1 year ago

Unlike the framework MediaMetadataRetriever, FFmpegMediaMetadataRetriever does not rotate the frame according to video rotation in container's metadata(can be retrieved using METADATA_KEY_VIDEO_ROTATION).

You can create a sample file with rotation in metadata for testing purposes using ffmpeg: ffmpeg -i input.mp4 -metadata:s:v rotate=90 -vcodec copy -acodec copy output.mp4

wseemann commented 1 year ago

Thank you for reporting this issue @daio. This has been fixed and will be available in v1.0.20.