Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

address ios17 rotation schema change for .mov files #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

troyxmccall
Copy link

newer iPhone (14 Pro+) running iOS 17+ introduce a regression of #55 due to a different rotation schema

see ffprobe for MOV shot this week

{
  "streams": [
    {
      "index": 0,
      "codec_name": "h264",
      "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
      "profile": "High",
      "codec_type": "video",
      "codec_tag_string": "avc1",
      "codec_tag": "0x31637661",
      "width": 3840,
      "height": 2160,
      "coded_width": 3840,
      "coded_height": 2160,
      "closed_captions": 0,
      "film_grain": 0,
      "has_b_frames": 0,
      "pix_fmt": "yuv420p",
      "level": 51,
      "color_range": "tv",
      "color_space": "bt709",
      "color_transfer": "bt709",
      "color_primaries": "bt709",
      "chroma_location": "left",
      "field_order": "progressive",
      "refs": 1,
      "is_avc": "true",
      "nal_length_size": "4",
      "id": "0x1",
      "r_frame_rate": "30/1",
      "avg_frame_rate": "62000/2067",
      "time_base": "1/600",
      "start_pts": 0,
      "start_time": "0.000000",
      "duration_ts": 6200,
      "duration": "10.333333",
      "bit_rate": "44792460",
      "bits_per_raw_sample": "8",
      "nb_frames": "310",
      "extradata_size": 158,
      "disposition": {
        "default": 1,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0,
        "timed_thumbnails": 0,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      },
      "tags": {
        "creation_time": "2023-11-28T20:49:48.000000Z",
        "language": "und",
        "handler_name": "Core Media Video",
        "vendor_id": "[0][0][0][0]",
        "encoder": "H.264"
      },
      "side_data_list": [
        {
          "side_data_type": "Display Matrix",
          "displaymatrix": "\n00000000:            0       65536           0\n00000001:       -65536           0           0\n00000002:    141557760           0  1073741824\n",
          "rotation": -90
        }
      ]
    },
    {
      "index": 1,
      "codec_name": "aac",
      "codec_long_name": "AAC (Advanced Audio Coding)",
      "profile": "LC",
      "codec_type": "audio",
      "codec_tag_string": "mp4a",
      "codec_tag": "0x6134706d",
      "sample_fmt": "fltp",
      "sample_rate": "44100",
      "channels": 2,
      "channel_layout": "stereo",
      "bits_per_sample": 0,
      "initial_padding": 0,
      "id": "0x2",
      "r_frame_rate": "0/0",
      "avg_frame_rate": "0/0",
      "time_base": "1/44100",
      "start_pts": 0,
      "start_time": "0.000000",
      "duration_ts": 455627,
      "duration": "10.331678",
      "bit_rate": "159281",
      "nb_frames": "448",
      "extradata_size": 2,
      "disposition": {
        "default": 1,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0,
        "timed_thumbnails": 0,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      },
      "tags": {
        "creation_time": "2023-11-28T20:49:48.000000Z",
        "language": "und",
        "handler_name": "Core Media Audio",
        "vendor_id": "[0][0][0][0]"
      }
    },
    {
      "index": 2,
      "codec_type": "data",
      "codec_tag_string": "mebx",
      "codec_tag": "0x7862656d",
      "id": "0x3",
      "r_frame_rate": "0/0",
      "avg_frame_rate": "0/0",
      "time_base": "1/600",
      "start_pts": 0,
      "start_time": "0.000000",
      "duration_ts": 6200,
      "duration": "10.333333",
      "bit_rate": "7",
      "nb_frames": "1",
      "disposition": {
        "default": 1,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0,
        "timed_thumbnails": 0,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      },
      "tags": {
        "creation_time": "2023-11-28T20:49:48.000000Z",
        "language": "und",
        "handler_name": "Core Media Metadata"
      }
    },
    {
      "index": 3,
      "codec_type": "data",
      "codec_tag_string": "mebx",
      "codec_tag": "0x7862656d",
      "id": "0x4",
      "r_frame_rate": "0/0",
      "avg_frame_rate": "0/0",
      "time_base": "1/600",
      "start_pts": 0,
      "start_time": "0.000000",
      "duration_ts": 6200,
      "duration": "10.333333",
      "bit_rate": "6",
      "nb_frames": "1",
      "disposition": {
        "default": 1,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0,
        "timed_thumbnails": 0,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      },
      "tags": {
        "creation_time": "2023-11-28T20:49:48.000000Z",
        "language": "und",
        "handler_name": "Core Media Metadata"
      }
    },
    {
      "index": 4,
      "codec_type": "data",
      "codec_tag_string": "mebx",
      "codec_tag": "0x7862656d",
      "id": "0x5",
      "r_frame_rate": "0/0",
      "avg_frame_rate": "0/0",
      "time_base": "1/600",
      "start_pts": 0,
      "start_time": "0.000000",
      "duration_ts": 6200,
      "duration": "10.333333",
      "bit_rate": "34554",
      "nb_frames": "310",
      "disposition": {
        "default": 1,
        "dub": 0,
        "original": 0,
        "comment": 0,
        "lyrics": 0,
        "karaoke": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "visual_impaired": 0,
        "clean_effects": 0,
        "attached_pic": 0,
        "timed_thumbnails": 0,
        "captions": 0,
        "descriptions": 0,
        "metadata": 0,
        "dependent": 0,
        "still_image": 0
      },
      "tags": {
        "creation_time": "2023-11-28T20:49:48.000000Z",
        "language": "und",
        "handler_name": "Core Media Metadata"
      }
    }
  ],
  "format": {
    "filename": "IMG_7128.MOV",
    "nb_streams": 5,
    "nb_programs": 0,
    "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
    "format_long_name": "QuickTime / MOV",
    "start_time": "0.000000",
    "duration": "10.333333",
    "size": "58130078",
    "bit_rate": "45003932",
    "probe_score": 100,
    "tags": {
      "major_brand": "qt  ",
      "minor_version": "0",
      "compatible_brands": "qt  ",
      "creation_time": "2023-11-28T20:49:48.000000Z",
      "com.apple.quicktime.location.accuracy.horizontal": "4.722423",
      "com.apple.quicktime.location.ISO6709": "+35.2003-080.8027+214.254/",
      "com.apple.quicktime.make": "Apple",
      "com.apple.quicktime.model": "iPhone 14 Pro",
      "com.apple.quicktime.software": "17.1.1",
      "com.apple.quicktime.creationdate": "2023-11-28T15:49:48-0500"
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant