Rotating iPhone videos

Discussion in 'iOS Programming' started by youPhone, Jul 9, 2009.

  1. youPhone macrumors member

    Sep 8, 2008
    In a nutshell, I want to upload a video to my server and then rotate it.

    Using UIImagePickerController and UIImagePickerControllerDelegate I can grab the local NSURL of the selected image and then I can upload it to my server.

    All videos appear to be 480x360 regardless if they were taken holding the phone portrait or landscape (this is according the ffmpeg). If you view the video with quicktime, then it will display the video with the appropriate rotation.

    So there must be some metadata in the video that tells whether it should be 480x360 or rotated to 360x480.

    Can anyone help me to determine if the video needs to be rotated or not?
  2. youPhone thread starter macrumors member

    Sep 8, 2008
    Has anyone worked with videos from the iPhone 3GS? Can you give me some of your experience?

Share This Page