Questions regarding how rotated videos are stored in recent iOS versions

Hello,


I'm trying to clarify how recent iOS version handle the storage of rotated videos.


Previously, as I understand, smartphones typically stored videos with a fixed orientation (e.g., landscape mode) and included rotation information in the video's metadata. Playback platforms could then use this rotation metadata to correctly orient the video.


However, it seems that newer OS versions might be encoding videos by physically rotating the video data itself during the encoding process, while setting the rotation metadata to 0. This approach ensures correct playback orientation regardless of whether the playback platform (such as web browsers) supports rotation metadata or not.


Could you confirm whether this understanding is correct? If so, could you also specify from exactly which OS version this behavior was introduced or changed?


Thank you!

Posted on May 2, 2025 1:14 AM

Reply
Question marked as Top-ranking reply

Posted on May 2, 2025 3:33 AM

ChatGPT & Gemini says:


🎥 What iOS 5 Introduced:

  • AVFoundation's AVCaptureVideoDataOutput in iOS 5 allowed apps to rotate video buffers during capture (i.e., physical rotation of raw video data).
  • But this applied only to developer-controlled camera capture sessions, not to videos recorded using the native Camera app.


So technically, yes — physical rotation became possible in iOS 5, but only if a developer explicitly implemented it in a custom camera app.


📱 What Changed Around iOS 13+:

Starting in iOS 13, there is growing evidence (based on video behavior, file metadata, and developer observations) that:

  • The built-in Camera app began physically rotating the video frames before encoding (or as part of it), rather than relying solely on rotation metadata.
  • This was likely done to improve playback consistency across platforms (especially web browsers, many of which ignore rotation metadata).


In short:

iOS Version Rotation Handling in Videos

  • iOS ≤12Fixed orientation + metadata (typical "landscape but rotate with tag")
  • iOS 13+Native Camera app started rotating video content before encoding (metadata = 0°)


✅ Summary:

You're likely seeing the effects of a shift in default behavior for the built-in Camera app starting with iOS 13, even though developer-level support for physical rotation has existed since iOS 5.



Best Practice: Use physical rotation during capture when necessary, but be mindful of performance implications. Alternatively, apply transforms post-capture to achieve the desired orientation.​

Similar questions

1 reply
Question marked as Top-ranking reply

May 2, 2025 3:33 AM in response to Suhyuk

ChatGPT & Gemini says:


🎥 What iOS 5 Introduced:

  • AVFoundation's AVCaptureVideoDataOutput in iOS 5 allowed apps to rotate video buffers during capture (i.e., physical rotation of raw video data).
  • But this applied only to developer-controlled camera capture sessions, not to videos recorded using the native Camera app.


So technically, yes — physical rotation became possible in iOS 5, but only if a developer explicitly implemented it in a custom camera app.


📱 What Changed Around iOS 13+:

Starting in iOS 13, there is growing evidence (based on video behavior, file metadata, and developer observations) that:

  • The built-in Camera app began physically rotating the video frames before encoding (or as part of it), rather than relying solely on rotation metadata.
  • This was likely done to improve playback consistency across platforms (especially web browsers, many of which ignore rotation metadata).


In short:

iOS Version Rotation Handling in Videos

  • iOS ≤12Fixed orientation + metadata (typical "landscape but rotate with tag")
  • iOS 13+Native Camera app started rotating video content before encoding (metadata = 0°)


✅ Summary:

You're likely seeing the effects of a shift in default behavior for the built-in Camera app starting with iOS 13, even though developer-level support for physical rotation has existed since iOS 5.



Best Practice: Use physical rotation during capture when necessary, but be mindful of performance implications. Alternatively, apply transforms post-capture to achieve the desired orientation.​

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Questions regarding how rotated videos are stored in recent iOS versions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.