[FFmpeg-user] DOWN CONVERSION ISSUE: From MXF (1080i AVC Intra) - MBAFF "interlacing" to DVCPRO

Iban Garcia ibantxo28 at gmail.com
Sun Mar 25 16:43:12 CEST 2012


Hi,

I have taken from git the last version of ffmpeg. And I have made next
test. The output.dv fields are not interlaced. The interlaced information
has been lost in the process.

# ffmpeg -y -threads 8 -i input.mxf -s 720x576 -pix_fmt yuv411p -aspect
16:9 -an -r 25 -vf "setfield=1, fieldorder=bff" output.dv
ffmpeg version N-39247-g6809818 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Mar 25 2012 17:35:24 with gcc 4.5.1 20101208 [gcc-4_5-branch
revision 167585]
  configuration: --shlibdir=/usr/lib64 --prefix=/usr/local
--mandir=/usr/share/man --libdir=/usr/lib64 --enable-pthreads
--enable-shared --enable-libvorbis --enable-gpl --enable-x11grab
--enable-libx264 --enable-libmp3lame --enable-postproc
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.102 /  2. 65.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
  libpostproc    52.  0.100 / 52.  0.100
[mxf @ 0x6284e0] could not resolve sub descriptor strong ref
[mxf @ 0x6284e0] source track 6: stream 4, no descriptor found
[mxf @ 0x6284e0] could not resolve sub descriptor strong ref
[mxf @ 0x6284e0] Unknown frame layout type: 1
Input #0, mxf, from 'input.mxf':
  Metadata:
    timecode        : 11:31:46:14
  Duration: 00:00:33.48, start: 0.000000, bitrate: 118911 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0:2: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0:3: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Stream #0:4: Data: none
    Stream #0:5: Video: h264 (High 4:2:2 Intra), yuv422p10le, 1920x1080
[SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
[buffer @ 0x719f80] w:1920 h:1080 pixfmt:yuv422p10le tb:1/1000000 sar:1/1
sws_param:
[fieldorder @ 0x646e80] output field order: bff
[scale @ 0x6283a0] w:1920 h:1080 fmt:yuv422p10le sar:1/1 -> w:720 h:576
fmt:yuv411p sar:64/45 flags:0x4
Output #0, dv, to 'output.dv':
  Metadata:
    timecode        : 11:31:46:14
    encoder         : Lavf54.3.100
    Stream #0:0: Video: dvvideo, yuv411p, 720x576 [SAR 64:45 DAR 16:9],
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:5 -> #0:0 (h264 -> dvvideo)
Press [q] to stop, [?] for help
frame=  837 fps= 89 q=0.0 Lsize=  117703kB time=00:00:33.48
bitrate=28800.0kbits/s
video:117703kB audio:0kB global headers:0kB muxing overhead 0.000000%



2012/3/25 Iban Garcia <ibantxo28 at gmail.com>

> First of all, many thanks for your help, Carl.
>
> My command is:  ffmpeg -y -threads 8 -i input.mxf -b:v 50000000 -s 720x576
> -pix_fmt yuv422p -aspect 16:9 -an -r 25 -vf setfield=1 output.dv
>
> OUTPUT:
> # ffmpeg -y -threads 8 -i input.mxf -b:v 50000000 -s 720x576 -pix_fmt
> yuv422p -aspect 16:9 -an -r 25 output.dv
> ffmpeg version 0.9.0.git-2169f97 Copyright (c) 2000-2012 the FFmpeg
> developers
>   built on Jan 10 2012 12:08:32 with gcc 4.5.1 20101208 [gcc-4_5-branch
> revision 167585]
>   configuration: --shlibdir=/usr/lib64 --prefix=/usr/local
> --mandir=/usr/share/man --libdir=/usr/lib64 --enable-pthreads
> --enable-shared --enable-libvorbis --enable-gpl --enable-x11grab
> --enable-libx264 --enable-libmp3lame --enable-nonfree --enable-postproc
>   libavutil      51. 34.100 / 51. 34.100
>   libavcodec     53. 54.100 / 53. 54.100
>   libavformat    53. 29.100 / 53. 29.100
>   libavdevice    53.  4.100 / 53.  4.100
>   libavfilter     2. 58.100 /  2. 58.100
>   libswscale      2.  1.100 /  2.  1.100
>   libswresample   0.  6.100 /  0.  6.100
>   libpostproc    51.  2.100 / 51.  2.100
> [mxf @ 0x6248e0] could not resolve sub descriptor strong ref
> [mxf @ 0x6248e0] source track 6: stream 4, no descriptor found
> [mxf @ 0x6248e0] could not resolve sub descriptor strong ref
> Input #0, mxf, from 'input.mxf':
>   Duration: 00:00:02.32, start: 0.000000, bitrate: 119235 kb/s
>     Stream #0:0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
>     Stream #0:1: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
>     Stream #0:2: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
>     Stream #0:3: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
>     Stream #0:4: Data: none
>     Stream #0:5: Video: h264 (High 4:2:2 Intra), yuv422p10le, 1920x1080
> [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
> [buffer @ 0x628180] w:1920 h:1080 pixfmt:yuv422p10le tb:1/1000000 sar:1/1
> sws_param:
> [scale @ 0x62c160] w:1920 h:1080 fmt:yuv422p10le -> w:720 h:576
> fmt:yuv422p flags:0x4
> Output #0, dv, to 'output.dv':
>   Metadata:
>     encoder         : Lavf53.29.100
>     Stream #0:0: Video: dvvideo, yuv422p, 720x576 [SAR 64:45 DAR 16:9],
> q=2-31, 50000 kb/s, 90k tbn, 25 tbc
> Stream mapping:
>   Stream #0:5 -> #0:0 (h264 -> dvvideo)
> Press [q] to stop, [?] for help
> frame=   58 fps=  0 q=0.0 Lsize=   16312kB time=00:00:02.32
> bitrate=57600.0kbits/s
> video:16312kB audio:0kB global headers:0kB muxing overhead 0.000000%
>
> Original MXF file is interlaced (MBAFF)
> The DV output has lost all interlacing information.
>
>
>
>
> 2012/3/24 Carl Eugen Hoyos <cehoyos at ag.or.at>
>
>> Iban Garcia <ibantxo28 <at> gmail.com> writes:
>>
>> > It has a MBAFF interlacing inside (Mediainfo tells it).
>> >
>> > With ffmpeg I can get a DV, but it is de-interlaced and
>> > I want to be interlaced as well as the original video is.
>>
>> Please provide the command line you used and the complete,
>> uncut console output and please point to a very short sample.
>>
>> FFmpeg does no de-interlacing at all if not explicitly told
>> to do so.
>> (Otoh, progressive material can be encoded using MBAFF - and
>> even PAFF - and since the H264 decoder can only output frames,
>> you will get the - original - progressive material if you
>> encode the frames coming from the decoder.)
>>
>> Carl Eugen
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
>


More information about the ffmpeg-user mailing list