[FFmpeg-user] Interlace flag setting in ffmpeg

Tim Nicholson nichot20 at yahoo.com
Fri Jul 6 12:51:35 CEST 2012


I have been trying to convert some material to Prores.mov using ffmpeg,
and have compared it to the output from ffmbc using similar settings.

Whilst both versions files seem perfectly proper, the ffmbc version
plays happily on a Telestream Pipeline, but the ffmpeg version doesn't.

looking at both files using ffprobe shows now discernible difference,
*but* using the ffmbc version of ffprobe shows the ffmbc version
reported as interlaced, but the ffmpeg version reported as progressive.

Both versions contain interlaced material and the files can be stepped
through field by field so it would appear only to be the flagging that
is incorrect, of course this may or may not be the cause of the
Telestream issue.

Anybody got any ideas on what is going on here?

=========================================================================

ffmpeg -i AVCiHD.mov -timecode 09:59:30:00 -vf "setfield=tff,
scale=iw:ih:interl=1, format=yuv422p10le" -c:v prores -profile:v 3 -top
1 -flags +ildct+ilme -r 25 -c:a copy -map 0:v -map 0:a -y -f mov
./AVCiHD-ff.mov
ffmpeg version N-41976-g734aeeb-by_Tim Copyright (c) 2000-2012 the
FFmpeg developers
  built on Jun 27 2012 08:52:54 with gcc 4.6.2
  configuration: --extra-version=by_Tim --enable-static --disable-shared
--enable-gpl --enable-nonfree --enable-version3
--prefix=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local
--libdir=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64
--samples=../fate-suite/ --enable-runtime-cpudetect
--extra-cflags='-static
-I/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/include'
--extra-ldflags='-static
-L/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64'
--progs-suffix=_Jun-27 --enable-libfaac --enable-libx264
--enable-libfreetype --disable-ffplay --disable-ffserver
  libavutil      51. 63.100 / 51. 63.100
  libavcodec     54. 29.101 / 54. 29.101
  libavformat    54. 11.100 / 54. 11.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     3.  0.100 /  3.  0.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Guessed Channel Layout for  Input Stream #0.1 : mono
Guessed Channel Layout for  Input Stream #0.2 : mono


Guessed Channel Layout for  Input Stream #0.3 : mono


Guessed Channel Layout for  Input Stream #0.4 : mono


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AVCiHD.mov':


  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf54.3.100
  Duration: 00:00:03.00, start: 0.000000, bitrate: 116769 kb/s
    Stream #0:0(eng): Video: h264 (High 4:2:2 Intra) (avc1 /
0x31637661), yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], 113664 kb/s, 25
fps, 25 tbr, 25 tbn, 50 tbc
    Metadata:
      handler_name    : DataHandler
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
mono, s16, 768 kb/s
    Metadata:
      handler_name    : DataHandler
    Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
mono, s16, 768 kb/s
    Metadata:
      handler_name    : DataHandler
    Stream #0:3(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
mono, s16, 768 kb/s
    Metadata:
      handler_name    : DataHandler
    Stream #0:4(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
mono, s16, 768 kb/s
    Metadata:
      handler_name    : DataHandler
[graph 0 input from stream 0:0 @ 0x183ba60] w:1920 h:1080
pixfmt:yuv422p10le tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[output stream 0:0 @ 0x1824b60] No opaque field provided
[Parsed_scale_1 @ 0x1839be0] w:1920 h:1080 fmt:yuv422p10le sar:1/1 ->
w:1920 h:1080 fmt:yuv422p10le sar:1/1 flags:0x4

Output #0, mov, to './AVCiHD-ff.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    timecode        : 09:59:30:00
    encoder         : Lavf54.11.100
    Stream #0:0(eng): Video: prores (apch) (apch / 0x68637061),
yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Metadata:
      handler_name    : DataHandler
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
mono, 768 kb/s
    Metadata:
      handler_name    : DataHandler
    Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
mono, 768 kb/s
    Metadata:
      handler_name    : DataHandler
    Stream #0:3(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
mono, 768 kb/s
    Metadata:
      handler_name    : DataHandler
    Stream #0:4(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
mono, 768 kb/s
    Metadata:
      handler_name    : DataHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> prores)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)

===========================================================================
ffmbc -i AVCiHD.mov -timecode 09:59:30:00 -vf "scale=iw:ih:interl=1,
format=yuv422p10le" -vcodec prores -profile hq -tff -r 25 -an -y -f mov
./AVCiHD-mbc.mov -acodec copy -newaudio -acodec copy -newaudio -acodec
copy -newaudio -acodec copy -newaudio \
FFmbc version 0.7-rc7
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AVCiHD.mov':
  Metadata:
    major_brand: qt
    minor_version: 512
    compatible_brands: qt
    encoder: Lavf54.3.100
  Duration: 00:00:03.00, start: 0.000000, bitrate: 116769 kb/s
    Stream #0.0(eng): Video: h264 (High 4:2:2 Intra), yuv422p10le,
1920x1080i bff [PAR 1:1 DAR 16:9], 113664 kb/s, 25.00 fps
    Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.2(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.3(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0.4(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
[scale @ 0x166b7e0] w:1920 h:1080 fmt:yuv422p10le -> w:1920 h:1080
fmt:yuv422p10le flags:0x4
Output #0, mov, to './AVCiHD-mbc.mov':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und): Video: prores, yuv422p10le, 1920x1080i tff [PAR
1:1 DAR 16:9], 183500 kb/s, 25.00 fps
    Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16,
stream copy
    Stream #0.2(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16,
stream copy
    Stream #0.3(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16,
stream copy
    Stream #0.4(und): Audio: pcm_s16le, 48000 Hz, 1 channels, s16,
stream copy
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
  Stream #0.2 -> #0.2
  Stream #0.3 -> #0.3
  Stream #0.4 -> #0.4
Press [q] to stop, [?] for help


-- 
Tim



More information about the ffmpeg-user mailing list