[FFmpeg-trac] #7277(avformat:closed): FFPROBE/MPEG reports incorrect aspect ratio from MOV files

FFmpeg trac at avcodec.org
Tue Jul 10 11:33:23 EEST 2018


#7277: FFPROBE/MPEG reports incorrect aspect ratio from MOV files
-------------------------------------+-------------------------------------
             Reporter:  ianken       |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:               |  needs_more_info
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
Description changed by cehoyos:

Old description:

> 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

New description:

 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
 }}}

--

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7277#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list