Opened 3 weeks ago

Last modified 4 days ago

#7277 open defect

Unexpected mov aspect because of movie display matrix

Reported by: ianken Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mov aspect regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by cehoyos)

The media in question pixel aspect is 1:1 and DAR is 16:9. It is super vanilla.
VLC and MediaInfo? detect the aspect ratio correctly.

Report log:
Command line:

ffprobe.exe BogusAspect.mov -report
ffprobe version 4.0 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[NULL @ 0000025f49eceac0] Opening 'BogusAspect.mov' for reading
[file @ 0000025f49ecf380] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] ISO: File Type Major Brand: qt  
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] sample aspect ratio already set to 13039:15595, ignoring 'pasp' atom (1:1)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] sample aspect ratio already set to 13039:15595, ignoring 'pasp' atom (1:1)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] sample aspect ratio already set to 13039:15595, ignoring 'pasp' atom (1:1)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 0, edit list 0 - media time: 0, duration: 61758000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 1, edit list 0 - media time: 0, duration: 123639516
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 2, edit list 0 - media time: 0, duration: 123639516
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 3, edit list 0 - media time: 0, duration: 123639516
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 4, edit list 0 - media time: 0, duration: 123639516
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 5, edit list 0 - media time: 0, duration: 123639516
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 6, edit list 0 - media time: 0, duration: 123639516
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 7, edit list 0 - media time: 0, duration: 123639516
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 8, edit list 0 - media time: 0, duration: 123639516
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Processing st: 9, edit list 0 - media time: 0, duration: 61758000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] Before avformat_find_stream_info() pos: 59671826860 bytes read:878841 seeks:7 nb_streams:10
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025f49eceac0] After avformat_find_stream_info() pos: 1177232 bytes read:2058489 seeks:8 frames:377
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'BogusAspect.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2018-06-20T22:34:19.000000Z
    com.apple.finalcutstudio.media.uuid: 9670529C-3E93-41DC-A758-14DC19F2B770
    com.apple.quicktime.player.movie.audio.gain: 1.000000
    com.apple.quicktime.player.movie.audio.treble: 0.000000
    com.apple.quicktime.player.movie.audio.bass: 0.000000
    com.apple.quicktime.player.movie.audio.balance: 0.000000
    com.apple.quicktime.player.movie.audio.pitchshift: 0.000000
    com.apple.quicktime.player.movie.audio.mute: 
    com.apple.quicktime.player.movie.visual.brightness: 0.000000
    com.apple.quicktime.player.movie.visual.color: 1.000000
    com.apple.quicktime.player.movie.visual.tint: 0.000000
    com.apple.quicktime.player.movie.visual.contrast: 1.000000
    com.apple.quicktime.player.version: 7.6.6 (7.6.6)
    com.apple.quicktime.version: 7.7.3 (2890.9) 0x7738000 (Mac OS X, 10.10.5, 14F1605)
  Duration: 00:42:55.83, start: 0.000000, bitrate: 185328 kb/s
    Stream #0:0(eng), 1, 1/23976: Video: prores (apch / 0x68637061), yuv422p10le(bt709, progressive), 1920x1080, 176063 kb/s, SAR 13039:15595 DAR 208624:140355, 23.98 fps, 23.98 tbr, 23976 tbn, 23976 tbc (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:34:19.000000Z
      handler_name    : Apple Alias Data Handler
      encoder         : Apple ProRes 422 HQ
      timecode        : 00:59:59:00
    Side data:
      displaymatrix: rotation of -0.00 degrees
    Stream #0:1(eng), 47, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FL), s32 (24 bit), 1152 kb/s (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:34:19.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng), 47, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (FR), s32 (24 bit), 1152 kb/s (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:34:19.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:3(eng), 47, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32 (24 bit), 1152 kb/s (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:34:19.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:4(eng), 47, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (LFE), s32 (24 bit), 1152 kb/s (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:34:19.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:5(eng), 47, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BL), s32 (24 bit), 1152 kb/s (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:34:19.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:6(eng), 47, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (BR), s32 (24 bit), 1152 kb/s (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:34:19.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:7(eng), 47, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (DL), s32 (24 bit), 1152 kb/s (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:34:19.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:8(eng), 47, 1/48000: Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels (DR), s32 (24 bit), 1152 kb/s (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:34:19.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:9(eng), 0, 1/23976: Data: none (tmcd / 0x64636D74), SAR 13039:15595 DAR 0:0 (default)
    Metadata:
      rotate          : 0
      creation_time   : 2018-06-20T22:56:32.000000Z
      handler_name    : Apple Alias Data Handler
      timecode        : 00:59:59:00
Unsupported codec with id 0 for input stream 9
[AVIOContext @ 0000025f49ed7e40] Statistics: 2058489 bytes read, 8 seeks

Attachments (1)

strange_aspect_cut.mov (2.4 MB) - added by cehoyos 5 days ago.

Change History (13)

comment:1 Changed 3 weeks ago by cehoyos

Please provide a sample.

comment:2 Changed 3 weeks ago by ianken

I'll see if I can get a solid repro with content I can share.

comment:3 Changed 6 days ago by cehoyos

  • Resolution set to needs_more_info
  • Status changed from new to closed

This ticket looks important (could be a regression) but a fix seems impossible without a sample.

comment:4 Changed 6 days ago by cehoyos

  • Description modified (diff)

comment:5 Changed 5 days ago by ianken

  • Resolution needs_more_info deleted
  • Status changed from closed to reopened

https://www.dropbox.com/s/mhml5ycoe1ukj3d/WeirdAspect.zip?dl=0

Here is the first and last 500MB of the file in question. If that is not enough, I will provide the entire thing. Sorry for the delay.

comment:6 Changed 5 days ago by cehoyos

Won’t the exact file size be necessary for me to reproduce?

comment:7 Changed 5 days ago by ianken

Ok, I will upload. I was hoping the first and last bit would be enough to dig out the atoms for analysis.

I'm pushing it to my dropbox. It will take a while.

comment:8 Changed 5 days ago by cehoyos

Why don’t you tell us the exact file size?
Note that this would save both of us a lot of time.

Changed 5 days ago by cehoyos

comment:9 Changed 5 days ago by cehoyos

  • Keywords mov aspect regression added
  • Priority changed from normal to important
  • Reproduced by developer set
  • Status changed from reopened to open
  • Version changed from unspecified to git-master

I was able to guess the size;-)

Looks like a regression since 7010ebdf1ff7514fa505ff166fb60ce762a46b8b

comment:10 Changed 5 days ago by cehoyos

  • Summary changed from FFPROBE/MPEG reports incorrect aspect ratio from MOV files to Unexpected mov aspect because of movie display matrix

For future tickets: Please always test current FFmpeg git head and do not report issues against ffprobe (or ffplay) if they are reproducible with ffmpeg.

comment:11 follow-up: Changed 4 days ago by ianken

Sorry about the size misunderstanding. FWIW (I see you guessed it) it's: 59,671,826,876 bytes

Let me know if you need the full file.

comment:12 in reply to: ↑ 11 Changed 4 days ago by cehoyos

Replying to ianken:

Sorry about the size misunderstanding. FWIW (I see you guessed it) it's: 59,671,826,876 bytes

Let me know if you need the full file.

Thank you for not uploading the full file;-)

It was a very good idea to provide the beginning and the end of the file, while the file-names of the parts allowed to guess the size, it is still a good idea to confirm it.

Note: See TracTickets for help on using tickets.