Opened 6 years ago

Closed 3 years ago

#7277 closed defect (fixed)

Unexpected mov aspect because of movie display matrix

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

Description (last modified by Carl Eugen Hoyos)

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 Carl Eugen Hoyos 6 years ago.

Change History (15)

comment:1 by Carl Eugen Hoyos, 6 years ago

Please provide a sample.

comment:2 by Ian Kennedy, 6 years ago

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

comment:3 by Carl Eugen Hoyos, 6 years ago

Resolution: needs_more_info
Status: newclosed

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

comment:4 by Carl Eugen Hoyos, 6 years ago

Description: modified (diff)

comment:5 by Ian Kennedy, 6 years ago

Resolution: needs_more_info
Status: closedreopened

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 by Carl Eugen Hoyos, 6 years ago

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

comment:7 by Ian Kennedy, 6 years ago

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 by Carl Eugen Hoyos, 6 years ago

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

by Carl Eugen Hoyos, 6 years ago

Attachment: strange_aspect_cut.mov added

comment:9 by Carl Eugen Hoyos, 6 years ago

Keywords: mov aspect regression added
Priority: normalimportant
Reproduced by developer: set
Status: reopenedopen
Version: unspecifiedgit-master

I was able to guess the size;-)

Looks like a regression since 7010ebdf1ff7514fa505ff166fb60ce762a46b8b

comment:10 by Carl Eugen Hoyos, 6 years ago

Summary: FFPROBE/MPEG reports incorrect aspect ratio from MOV filesUnexpected 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 by Ian Kennedy, 6 years ago

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.

in reply to:  11 comment:12 by Carl Eugen Hoyos, 6 years ago

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.

comment:13 by Balling, 4 years ago

Is this still not fixed?

comment:14 by projectsymphony, 3 years ago

Analyzed by developer: set
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.