[FFmpeg-user] recent mpeg12enc changes affect aspect ratio in some decoders?

Dave P lists.davep at gmail.com
Fri Jun 27 15:27:01 CEST 2014


Hello FFmpeg users,

What happened:  For years my 1920x1080 MPEG-2 files have been interpreted
as 16:9 by various players and MediaInfo.  Currently they are being
interpreted as 16:9 by several players, but 2:40:1 by MediaInfo and 2.37:1
by Windows Media Player.
What I did: See below.
What I expected to happen: Such files to be universally interpreted as 16:9.

-----------------------------------------------
Version N-63946-g10012fa is fine:

c:\ffmpeg\0614\bin>ffmpeg -i fvp241.mov -an -f mpegts -vf scale=1920:1080
-t 2 -
y fvp241.ts
ffmpeg version N-63946-g10012fa Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jun 13 2014 22:09:26 with gcc 4.8.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libope
njpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsox
r --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab -
-enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-
libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      52. 89.100 / 52. 89.100
  libavcodec     55. 66.100 / 55. 66.100
  libavformat    55. 43.100 / 55. 43.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  8.100 /  4.  8.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fvp241.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2014-03-22 01:06:53
  Duration: 02:17:46.43, start: 0.000000, bitrate: 26554 kb/s
    Stream #0:0(eng): Video: mpeg2video (Main) (hdv2 / 0x32766468),
yuv420p(tv,
bt709), 1440x1080 [SAR 4:3 DAR 16:9], 25006 kb/s, 29.97 fps, 29.97 tbr,
2997 tbn
, 59.94 tbc (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      encoder         : HDV 1080i60
      timecode        : 01:00:00;00
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2
channels
, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2014-03-22 01:40:22
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
Output #0, mpegts, to 'fvp241.ts':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    encoder         : Lavf55.43.100
    Stream #0:0(eng): Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR
16:9],
q=2-31, 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
      encoder         : Lavc55.66.100 mpeg2video
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
frame=   47 fps=0.0 q=31.0 size=    1424kB time=00:00:01.50
bitrate=7768.9kbits/
frame=   60 fps=0.0 q=31.0 Lsize=    1534kB time=00:00:01.96
bitrate=6381.5kbits
/s
video:1414kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing
overhead: 8.438720%

-----------------------------------------------
// A snippet of MediaInfo's output
// for the above output file

Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
-----------------------------------------------

version N-63968-g73d820e has the same output, but MediaInfo thinks the
aspect ratio is different:

c:\ffmpeg\0615\bin>ffmpeg -i fvp241.mov -an -f mpegts -vf scale=1920:1080
-t 2 -
y fvp241.ts
ffmpeg version N-63968-g73d820e Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jun 15 2014 00:52:21 with gcc 4.8.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libope
njpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsox
r --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab -
-enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-
libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      52. 89.100 / 52. 89.100
  libavcodec     55. 66.101 / 55. 66.101
  libavformat    55. 43.100 / 55. 43.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  8.100 /  4.  8.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fvp241.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2014-03-22 01:06:53
  Duration: 02:17:46.43, start: 0.000000, bitrate: 26554 kb/s
    Stream #0:0(eng): Video: mpeg2video (Main) (hdv2 / 0x32766468),
yuv420p(tv,
bt709), 1440x1080 [SAR 4:3 DAR 16:9], 25006 kb/s, 29.97 fps, 29.97 tbr,
2997 tbn
, 59.94 tbc (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      encoder         : HDV 1080i60
      timecode        : 01:00:00;00
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2
channels
, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2014-03-22 01:40:22
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
Output #0, mpegts, to 'fvp241.ts':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    encoder         : Lavf55.43.100
    Stream #0:0(eng): Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR
16:9],
q=2-31, 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
      encoder         : Lavc55.66.101 mpeg2video
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
frame=   48 fps=0.0 q=31.0 size=    1431kB time=00:00:01.53
bitrate=7635.3kbits/
frame=   60 fps=0.0 q=31.0 Lsize=    1534kB time=00:00:01.96
bitrate=6383.8kbits
/s
video:1415kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing
overhead: 8.452503%

-----------------------------------------------
// A snippet of MediaInfo's output
// for the above output file:

Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 2.40:1
-----------------------------------------------

If I do not use the scale filter and leave it as 1440x1080, everything is
fine:

c:\ffmpeg\0615\bin>ffmpeg -i fvp241.mov -an -f mpegts -t 2 -y fvp241.ts
ffmpeg version N-63968-g73d820e Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jun 15 2014 00:52:21 with gcc 4.8.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libope
njpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsox
r --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab -
-enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-
libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      52. 89.100 / 52. 89.100
  libavcodec     55. 66.101 / 55. 66.101
  libavformat    55. 43.100 / 55. 43.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  8.100 /  4.  8.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fvp241.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2014-03-22 01:06:53
  Duration: 02:17:46.43, start: 0.000000, bitrate: 26554 kb/s
    Stream #0:0(eng): Video: mpeg2video (Main) (hdv2 / 0x32766468),
yuv420p(tv,
bt709), 1440x1080 [SAR 4:3 DAR 16:9], 25006 kb/s, 29.97 fps, 29.97 tbr,
2997 tbn
, 59.94 tbc (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      encoder         : HDV 1080i60
      timecode        : 01:00:00;00
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2
channels
, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2014-03-22 01:40:22
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
Output #0, mpegts, to 'fvp241.ts':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    encoder         : Lavf55.43.100
    Stream #0:0(eng): Video: mpeg2video, yuv420p, 1440x1080 [SAR 4:3 DAR
16:9],
q=2-31, 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
      encoder         : Lavc55.66.101 mpeg2video
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
frame=   60 fps=0.0 q=31.0 Lsize=    1197kB time=00:00:01.96
bitrate=4979.6kbits
/s
video:1102kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing
overhead: 8.592900%

-----------------------------------------------
// A snippet of MediaInfo's output
// for the above output file

Width : 1 440 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
-----------------------------------------------


If I use scale and add setdar=16/9, there is no effect (with MediaInfo):

c:\ffmpeg\0615\bin>ffmpeg -i fvp241.mov -an -f mpegts -vf
scale=1920:1080,setdar
=16/9 -t 2 -y fvp241.ts
ffmpeg version N-63968-g73d820e Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jun 15 2014 00:52:21 with gcc 4.8.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libope
njpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsox
r --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab -
-enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-
libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      52. 89.100 / 52. 89.100
  libavcodec     55. 66.101 / 55. 66.101
  libavformat    55. 43.100 / 55. 43.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  8.100 /  4.  8.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fvp241.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2014-03-22 01:06:53
  Duration: 02:17:46.43, start: 0.000000, bitrate: 26554 kb/s
    Stream #0:0(eng): Video: mpeg2video (Main) (hdv2 / 0x32766468),
yuv420p(tv,
bt709), 1440x1080 [SAR 4:3 DAR 16:9], 25006 kb/s, 29.97 fps, 29.97 tbr,
2997 tbn
, 59.94 tbc (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      encoder         : HDV 1080i60
      timecode        : 01:00:00;00
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2
channels
, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2014-03-22 01:40:22
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
Output #0, mpegts, to 'fvp241.ts':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    encoder         : Lavf55.43.100
    Stream #0:0(eng): Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR
16:9],
q=2-31, 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
      encoder         : Lavc55.66.101 mpeg2video
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Press [q] to stop, [?] for help
frame=   46 fps=0.0 q=24.8 size=    1419kB time=00:00:01.46
bitrate=7919.9kbits/
frame=   60 fps=0.0 q=31.0 Lsize=    1534kB time=00:00:01.96
bitrate=6383.8kbits
/s
video:1415kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing
overhead: 8.452503%

-----------------------------------------------
// A snippet of MediaInfo's output
// for the above output file:

Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 2.40:1
-----------------------------------------------

It appears to be fine when using libx264:

c:\ffmpeg\0615\bin>ffmpeg -i fvp241.mov -an -vf scale=1920:1080 -t 2 -y
fvp241.m
p4
ffmpeg version N-63968-g73d820e Copyright (c) 2000-2014 the FFmpeg
developers
  built on Jun 15 2014 00:52:21 with gcc 4.8.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca
--enable-libfreetyp
e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-
libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libope
njpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsox
r --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab -
-enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-
libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      52. 89.100 / 52. 89.100
  libavcodec     55. 66.101 / 55. 66.101
  libavformat    55. 43.100 / 55. 43.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  8.100 /  4.  8.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fvp241.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2014-03-22 01:06:53
  Duration: 02:17:46.43, start: 0.000000, bitrate: 26554 kb/s
    Stream #0:0(eng): Video: mpeg2video (Main) (hdv2 / 0x32766468),
yuv420p(tv,
bt709), 1440x1080 [SAR 4:3 DAR 16:9], 25006 kb/s, 29.97 fps, 29.97 tbr,
2997 tbn
, 59.94 tbc (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      encoder         : HDV 1080i60
      timecode        : 01:00:00;00
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2
channels
, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2014-03-22 01:40:22
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
[libx264 @ 00000000003fa880] using SAR=1/1
[libx264 @ 00000000003fa880] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
[libx264 @ 00000000003fa880] profile High, level 4.0
[libx264 @ 00000000003fa880] 264 - core 142 r2431 ac76440 - H.264/MPEG-4
AVC cod
ec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
cabac=1 r
ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed
_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pski
p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0
nr=0 dec
imate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3
b_pyramid=2 b
_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=
25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
qcomp=0.
60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'fvp241.mp4':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    encoder         : Lavf55.43.100
    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 1
920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 11988 tbn, 29.97 tbc
(default)
    Metadata:
      creation_time   : 2014-03-22 01:06:53
      handler_name    : Apple Alias Data Handler
      timecode        : 01:00:00;00
      encoder         : Lavc55.66.101 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=   60 fps= 46 q=29.0 size=      26kB time=00:00:00.06
bitrate=3230.2kbits/
frame=   60 fps= 15 q=-1.0 Lsize=     980kB time=00:00:01.93
bitrate=4147.1kbits
/s
video:979kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing o
verhead: 0.114264%
[libx264 @ 00000000003fa880] frame I:5     Avg QP:19.43  size: 20754
[libx264 @ 00000000003fa880] frame P:52    Avg QP:22.13  size: 16988
[libx264 @ 00000000003fa880] frame B:3     Avg QP:21.11  size:  4737
[libx264 @ 00000000003fa880] consecutive B-frames: 90.0% 10.0%  0.0%  0.0%
[libx264 @ 00000000003fa880] mb I  I16..4: 38.6% 59.7%  1.7%
[libx264 @ 00000000003fa880] mb P  I16..4: 23.8% 30.2%  0.3%  P16..4:
23.3%  1.5
%  1.2%  0.0%  0.0%    skip:19.6%
[libx264 @ 00000000003fa880] mb B  I16..4:  0.3%  0.1%  0.0%  B16..8:
17.0%  0.6
%  0.1%  direct: 8.1%  skip:73.7%  L0:37.6% L1:59.2% BI: 3.3%
[libx264 @ 00000000003fa880] 8x8 transform intra:56.3% inter:94.6%
[libx264 @ 00000000003fa880] coded y,uvDC,uvAC intra: 20.0% 39.7% 5.0%
inter: 8.
7% 35.6% 0.4%
[libx264 @ 00000000003fa880] i16 v,h,dc,p: 26% 51%  8% 15%
[libx264 @ 00000000003fa880] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 15% 47%
3%  2%
 1%  1%  1%  2%
[libx264 @ 00000000003fa880] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 34% 25%
7%  6%
 2%  4%  2%  2%
[libx264 @ 00000000003fa880] i8c dc,h,v,p: 64% 22% 12%  3%
[libx264 @ 00000000003fa880] Weighted P-Frames: Y:63.5% UV:38.5%
[libx264 @ 00000000003fa880] ref P L0: 58.0%  5.7% 23.8%  8.7%  3.9%
[libx264 @ 00000000003fa880] ref B L0: 81.4% 18.6%
[libx264 @ 00000000003fa880] kb/s:4001.49

-----------------------------------------------
// A snippet of MediaInfo's output
// for the above output file

Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
-----------------------------------------------

I should note that FFplay, MPlayer, and VLC all play these files as 16:9,
regardless of MediaInfo's readings.  MediaInfo and Windows Media Player are
the only things that show something other than 16:9, but I used the same
version for all of these tests, and something happened with FFmpeg between
N-63946-g10012fa and N-63968-g73d820e to bring this up.  I can confirm that
the issue still exists as of version N-64226-g7e8fdf0.

Could it be that one or more recent changes to mpeg12enc may have a hidden
effect?

https://lists.ffmpeg.org/pipermail/ffmpeg-cvslog/2014-June/078114.html
https://lists.ffmpeg.org/pipermail/ffmpeg-cvslog/2014-June/078310.html
https://lists.ffmpeg.org/pipermail/ffmpeg-cvslog/2014-June/078311.html

A few days ago I brought issue to the attention of MediaInfo's
developer(s).  Please take a look at the response:

https://sourceforge.net/p/mediainfo/discussion/297609/thread/15a3f6f7/

You can download my wonky .ts file here:
http://www.datafilehost.com/d/1093dc09

Can anyone reproduce this issue?  Is it an FFmpeg issue or MediaInfo?  If
it is MediaInfo, what do I tell them?

Thank you,

davep


More information about the ffmpeg-user mailing list