AndroidFFmpeg icon indicating copy to clipboard operation
AndroidFFmpeg copied to clipboard

Player play video wrong orientation.

Open Sinhbk opened this issue 11 years ago • 2 comments

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.

Sinhbk avatar Oct 01 '13 07:10 Sinhbk

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 avatar Dec 21 '13 02:12 MisterRager

@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.

Sinhbk avatar Dec 23 '13 04:12 Sinhbk