AndroidFFmpeg
AndroidFFmpeg copied to clipboard
Player play video wrong orientation.
Hello, When I play video using ffmpeg Player. It was playing video in landscape (screen in portrait mode). When playing video using default player, it play video in portrait mode.
ffmpeg Player was playing incorrectly. Anyone knows how rotate or configure ffmpeg to play video correctly.
Thanks.
You need to read the metadata - there is a field "rotate" on the video stream's metadata that tells you how many degrees to rotate. Edit in player_decode_video() in player.c near line 921 and add a call to libyuv's rotation methods based on the rotation metadata.
I'm working on a patch, currently.
@MisterRager Many thanks for your help. I am trying with your solution. I have another issue. https://github.com/appunite/AndroidFFmpeg/issues/58. Maybe you know it. Please help me if you find anything.
Thanks.