[FFmpeg-trac] #6577(undetermined:new): mkv vs encoding interlacement mismatch

FFmpeg trac at avcodec.org
Thu Aug 10 01:48:54 EEST 2017


#6577: mkv vs encoding interlacement mismatch
-------------------------------------+-------------------------------------
             Reporter:  dericed      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  matroska     |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by kieranjol):

 I think this affects more than just matroska, it seems to affect MOV too?
 Here's your command line which is switched from MKV to MOV. I launched it
 twice and piped the output to mediatrace and grep. Seems that TFF produces
 a value of 9 in the fiel atom, bff produces 14 in the fiel atom.
 The quicktime spec says:  9 – B is displayed earliest, T is stored first
 in the file. 14 – T is displayed earliest, B is stored first in the file.

 {{{
 ffmpeg -f lavfi -i mandelbrot -vf setfield=tff -vframes 1 -c:v ffv1 -y
 test.mov && mediainfo --Details=1 test.mov | grep fiel -A 1
 ffmpeg version N-45635-g369a3e1 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with gcc 5.3.0 (Homebrew gcc 5.3.0)
   configuration: --prefix=/home/kieranjol/.linuxbrew/Cellar/ffmpeg/HEAD-
 369a3e1 --enable-shared --enable-pthreads --enable-gpl --enable-version3
 --enable-hardcoded-tables --enable-avresample --cc=gcc-5 --host-cflags=
 --host-ldflags= --enable-ffplay --enable-libass --enable-libfreetype
 --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libxvid
 --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-
 cflags=-I/home/kieranjol/.linuxbrew/Cellar/openjpeg/2.1.2_1/include/openjpeg-2.1
 --disable-vda
   libavutil      55. 67.100 / 55. 67.100
   libavcodec     57.100.103 / 57.100.103
   libavformat    57. 75.100 / 57. 75.100
   libavdevice    57.  7.100 / 57.  7.100
   libavfilter     6. 94.100 /  6. 94.100
   libavresample   3.  6.  0 /  3.  6.  0
   libswscale      4.  7.101 /  4.  7.101
   libswresample   2.  8.100 /  2.  8.100
   libpostproc    54.  6.100 / 54.  6.100
 Input #0, lavfi, from 'mandelbrot':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (RGB[0] / 0x424752), rgb0, 640x480 [SAR
 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
 Press [q] to stop, [?] for help
 [mov @ 0xb79c40] Using MS style video codec tag, the file may be
 unplayable!
 Output #0, mov, to 'test.mov':
   Metadata:
     encoder         : Lavf57.75.100
     Stream #0:0: Video: ffv1, bgr0, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200
 kb/s, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.100.103 ffv1
 frame=    1 fps=0.0 q=-0.0 Lsize=     212kB time=00:00:00.00
 bitrate=22301128.2kbits/s speed=0.00121x
 video:212kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.342418%
 350C9          Name:                          fiel
 350CD         fields:                         2 (0x02)
 350CE         detail:                         9 (0x09)


 $ ffmpeg -f lavfi -i mandelbrot -vf setfield=bff -vframes 1 -c:v ffv1 -y
 test.mov && mediainfo --Details=1 test.mov | grep fiel -A 1
 ffmpeg version N-45635-g369a3e1 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with gcc 5.3.0 (Homebrew gcc 5.3.0)
   configuration: --prefix=/home/kieranjol/.linuxbrew/Cellar/ffmpeg/HEAD-
 369a3e1 --enable-shared --enable-pthreads --enable-gpl --enable-version3
 --enable-hardcoded-tables --enable-avresample --cc=gcc-5 --host-cflags=
 --host-ldflags= --enable-ffplay --enable-libass --enable-libfreetype
 --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libxvid
 --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-
 cflags=-I/home/kieranjol/.linuxbrew/Cellar/openjpeg/2.1.2_1/include/openjpeg-2.1
 --disable-vda
   libavutil      55. 67.100 / 55. 67.100
   libavcodec     57.100.103 / 57.100.103
   libavformat    57. 75.100 / 57. 75.100
   libavdevice    57.  7.100 / 57.  7.100
   libavfilter     6. 94.100 /  6. 94.100
   libavresample   3.  6.  0 /  3.  6.  0
   libswscale      4.  7.101 /  4.  7.101
   libswresample   2.  8.100 /  2.  8.100
   libpostproc    54.  6.100 / 54.  6.100
 Input #0, lavfi, from 'mandelbrot':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: rawvideo (RGB[0] / 0x424752), rgb0, 640x480 [SAR
 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
 Press [q] to stop, [?] for help
 [mov @ 0x10a3c40] Using MS style video codec tag, the file may be
 unplayable!
 Output #0, mov, to 'test.mov':
   Metadata:
     encoder         : Lavf57.75.100
     Stream #0:0: Video: ffv1, bgr0, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200
 kb/s, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.100.103 ffv1
 frame=    1 fps=0.0 q=-0.0 Lsize=     212kB time=00:00:00.00
 bitrate=22301128.2kbits/s speed=0.00234x
 video:212kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.342418%
 350C9          Name:                          fiel
 350CD         fields:                         2 (0x02)
 350CE         detail:                         14 (0x0E)
 }}}

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


More information about the FFmpeg-trac mailing list