yixia / Vitamio-iOS

Vitamio for iOS
http://www.vitamio.org/en/
451 stars 176 forks source link

Orientation incorrect for videos filmed on device #12

Open wsidell opened 10 years ago

wsidell commented 10 years ago

I have been doing some testing for playing back videos that were filmed on mobile devices (iOS devices, Android, etc.). Anyway, the way these videos are filmed, they are all filmed in landscape and have a metadata tag called rotate which specifies how the video should be rotated. The tag is not getting looked at and the video player is playing the videos in the incorrect orientation.

This metadata is specified for a particular stream's data in FFMpeg. formatCtx->streams[x]->metadata

I have attached an image so you can see the problem.

This video was filmed on an android device and should be vertical.

Here is a screenshot from the sample app: photo-4

Here is a screenshot from quicktime. screenshot 2014-01-22 15 26 50

prabakarank commented 10 years ago

i have also same issue when i take portrait and landscape video from my ipod device.but other videos work correctly.

anhdiepmmk commented 8 years ago

i have also same issue too