Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7440145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:48:26+00:00 2026-05-29T10:48:26+00:00

My app uses the UIImagePickerController to record a video, and I’m then uploading it

  • 0

My app uses the UIImagePickerController to record a video, and I’m then uploading it to our Amazon server using ASIS3Request.

Whilst the video always plays in the correct orientation on the device, the orientation is wrong when viewed in some browsers.

Is there a way for me to manually set the orientation of the phone onto the image file when it’s being taken? Or is the problem exclusively with the browsers (and if so, how can I fix that)?

Thank you. S.O. for president!

Duncan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:48:27+00:00Added an answer on May 29, 2026 at 10:48 am

    the iPhone sets the orientation in the exif data of the video. It will play back just fine in quicktime, but everywhere else has it rotated wrong.

    There are two ways to solve it, rotate it on device, or up in the cloud. You can ask the video for it’s preferred transform on the device and that will let you know what you need to rotate it.

       AVURLAsset * footageVideo = [AVURLAsset URLAssetWithURL:assetURL options:nil];
       AVAssetTrack * footageVideoTrack = [footageVideo compatibleTrackForCompositionTrack:videoTrack];
    
       CGAffineTransform t = footageVideoTrack.preferredTransform;
    

    Once you have the transform you can use an AVExportSession to rotate the video, although this can take quite some time on device.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our app uses a component that requires a license file in the directory with
Our app uses a string to house character-values used to indicate enum values. for
The app uses a UISplitView and it always opens in portrait mode. If the
My Pylons app uses local MySQL server via SQLAlchemy and python-MySQLdb. When the server
I'm working on an iphone app that uses Abbyy OCR. Using the wrapper class
Our app uses the remoteIO (audio-unit) to get audio input from mic, and DSP
Our app uses the PHP- aswell as the JS-SDK of Facebook. We are able
My app uses the Android XML-RPC project to communicate with a server. After the
My app uses an http connection to a server. On the 9550 BlackBerry simulator,
Our app uses the send method to call functions on our objects. Unfortunately, some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.