[FFmpeg-user] Mov : how to set interlaced value of mov muxer

Martin Vignali martin.vignali at gmail.com
Sun Oct 23 20:46:33 EEST 2016


Hello

I would like to encode some progressive video to interlace quicktime

I try to use -top 1 and +ildct,
The frames seems to be compressed as interleaved, but the mov muxer, still
think it's a progressive frame. The codec name for xdcam is not the right
one, and the fiel value is not correct for prores or mov xdcam.

Output with prores encoding :
./ffmpeg -i ./TEST_TRAME_MOV.mov -t 0.2 -vcodec prores_ks -flags +ildct
-top 1 -acodec copy -f mov ./resProresInterl.mov
ffmpeg version N-82089-gb8d7150 Copyright (c) 2000-2016 the FFmpeg
developers
  built with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
  configuration: --prefix=../build --disable-yasm
  libavutil      55. 33.100 / 55. 33.100
  libavcodec     57. 63.103 / 57. 63.103
  libavformat    57. 53.100 / 57. 53.100
  libavdevice    57.  0.103 / 57.  0.103
  libavfilter     6. 64.100 /  6. 64.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './TEST_TRAME_MOV.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2015-03-26T14:35:02.000000Z
  Duration: 00:00:15.00, start: 0.000000, bitrate: 189651 kb/s
    Stream #0:0(eng): Video: prores (apch / 0x68637061),
yuv422p10le(bt709), 1920x1080, 188074 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25
tbr, 25 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
      encoder         : Apple ProRes 422 (HQ)
      timecode        : 00:00:00:00
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono,
s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
    Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono,
s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
    Stream #0:3(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:03.000000Z
      handler_name    : Gestionnaire d?alias Apple
      timecode        : 00:00:00:00
[prores_ks @ 0x7f81aa011200] Autoselected HQ profile to keep best quality.
It can be overridden through -profile option.
Output #0, mov, to './resProresInterl.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    encoder         : Lavf57.53.100
    Stream #0:0(eng): Video: prores (prores_ks) (apch / 0x68637061),
yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 0.04 fps,
12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
      timecode        : 00:00:00:00
      encoder         : Lavc57.63.103 prores_ks
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono,
768 kb/s (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
Stream mapping:
  Stream #0:0 -> #0:0 (prores (native) -> prores (prores_ks))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    5 fps=1.8 q=-0.0 Lsize=    4773kB time=00:00:00.19
bitrate=203633.0kbits/s speed=0.0698x
video:4751kB audio:20kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.038749%





-----------
XDcam output

./ffmpeg -i ./TEST_TRAME_MOV.mov -pix_fmt yuv422p -vcodec mpeg2video
-seq_disp_ext 1 -flags +ildct+ilme -top 1 -dc 10 -qmin 1 -lmin
"1*QP2LAMBDA" -vtag xd5c -rc_max_vbv_use 1 -rc_min_vbv_use 1 -b:v 50000k
-minrate 50000k -maxrate 50000k -bufsize 36408333 -bf 2 -aspect 16:9
-acodec pcm_s24be -f mov ./resXDcam.mov
ffmpeg version N-82089-gb8d7150 Copyright (c) 2000-2016 the FFmpeg
developers
  built with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
  configuration: --prefix=../build --disable-yasm
  libavutil      55. 33.100 / 55. 33.100
  libavcodec     57. 63.103 / 57. 63.103
  libavformat    57. 53.100 / 57. 53.100
  libavdevice    57.  0.103 / 57.  0.103
  libavfilter     6. 64.100 /  6. 64.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './TEST_TRAME_MOV.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2015-03-26T14:35:02.000000Z
  Duration: 00:00:15.00, start: 0.000000, bitrate: 189651 kb/s
    Stream #0:0(eng): Video: prores (apch / 0x68637061),
yuv422p10le(bt709), 1920x1080, 188074 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25
tbr, 25 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
      encoder         : Apple ProRes 422 (HQ)
      timecode        : 00:00:00:00
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono,
s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
    Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono,
s16, 768 kb/s (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
    Stream #0:3(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:03.000000Z
      handler_name    : Gestionnaire d?alias Apple
      timecode        : 00:00:00:00
Output #0, mov, to './resXDcam.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    encoder         : Lavf57.53.100
    Stream #0:0(eng): Video: mpeg2video (4:2:2) (xd5c / 0x63356478),
yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=1-31, 50000 kb/s, 0.04 fps, 12800
tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
      timecode        : 00:00:00:00
      encoder         : Lavc57.63.103 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 50000000/50000000/50000000 buffer size:
36408333 vbv_delay: -1
    Stream #0:1(eng): Audio: pcm_s24be (in24 / 0x34326E69), 48000 Hz, mono,
s32, 1152 kb/s (default)
    Metadata:
      creation_time   : 2015-03-26T14:35:02.000000Z
      handler_name    : Gestionnaire d?alias Apple
      encoder         : Lavc57.63.103 pcm_s24be
Stream mapping:
  Stream #0:0 -> #0:0 (prores (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> pcm_s24be (native))
Press [q] to stop, [?] for help
frame=  375 fps=8.1 q=2.6 Lsize=   93594kB time=00:00:15.00
bitrate=51114.7kbits/s speed=0.326x
video:91475kB audio:2109kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.010259%
------------------

Instead of writing xd5c data format, ffmpeg write xd5e.


Thanks by advance

Martin


More information about the ffmpeg-user mailing list