[FFmpeg-user] How to set interlaced encoding for interlcaed DNxHD formats (220x/185x/220/145/120)?

Christoph Gerstbauer christophgerstbauer at gmx.at
Fri Jun 19 11:32:18 CEST 2015


Hello,

I have the problem that I cannot set interlaced as encoding format for 
DNxHD 220x/185x/220/145/120
I think I use the wrong syntax for setting the field order:

-vf "setfield=1"
or
-top 1

both are not working.
Is there anything else I can do for forcing interlaced encoding?
Is "-top" deprecated?

Best Regards
Christoph


C:\Users\gersti>ffmpegnew -i I:\DNXHD\00000_ffvhuff.avi -an -vcodec 
dnxhd -r 30000/1001 -pix_fmt yuv422p10le -top 1 -b:v 220M I:\DNXHD\220x.mov
ffmpeg version N-72734-g5cf84e5 Copyright (c) 2000-2015 the FFmpeg 
developers
   built with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enable-iconv -
-enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm 
--enable-libilbc --enable-libm
odplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus 
--enable-librtmp --enable-libschroe
dinger --enable-libsoxr --enable-libspeex --enable-libtheora 
--enable-libtwolame --enable-libvidstab --enable-libvo-aacenc 
--enable-libvo-amrwbenc --enable-libvorbis --en
able-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma 
--enable-decklink --enable-zlib
   libavutil      54. 27.100 / 54. 27.100
   libavcodec     56. 41.100 / 56. 41.100
   libavformat    56. 35.101 / 56. 35.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 16.101 /  5. 16.101
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.100 /  1.  2.100
   libpostproc    53.  3.100 / 53.  3.100
Input #0, avi, from 'I:\DNXHD\00000_ffvhuff.avi':
   Metadata:
     encoder         : Lavf55.48.101
   Duration: 00:00:10.00, start: 0.000000, bitrate: 874120 kb/s
     Stream #0:0: Video: ffvhuff (FFVH / 0x48564646), yuv422p10le, 
1920x1080, 877619 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
File 'I:\DNXHD\220x.mov' already exists. Overwrite ? [y/N] y
[dnxhd @ 0000000004d05500] video parameters incompatible with DNxHD. 
Valid DNxHD profiles:
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 175Mbps; 
pixel format: yuv422p10; framerate: 24000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 185Mbps; 
pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 365Mbps; 
pixel format: yuv422p10; framerate: 50/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 440Mbps; 
pixel format: yuv422p10; framerate: 60000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 115Mbps; 
pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 120Mbps; 
pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 145Mbps; 
pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 240Mbps; 
pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 290Mbps; 
pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 175Mbps; 
pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 185Mbps; 
pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 220Mbps; 
pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 365Mbps; 
pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 440Mbps; 
pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080i; bitrate: 185Mbps; 
pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080i; bitrate: 220Mbps; 
pixel format: yuv422p10; framerate: 30000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080i; bitrate: 120Mbps; 
pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080i; bitrate: 145Mbps; 
pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080i; bitrate: 185Mbps; 
pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080i; bitrate: 220Mbps; 
pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 90Mbps; pixel 
format: yuv422p10; framerate: 24000/1001
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 90Mbps; pixel 
format: yuv422p10; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 180Mbps; 
pixel format: yuv422p10; framerate: 50/1
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 220Mbps; 
pixel format: yuv422p10; framerate: 60000/1001
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 90Mbps; pixel 
format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 90Mbps; pixel 
format: yuv422p; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 110Mbps; 
pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 180Mbps; 
pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 220Mbps; 
pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 60Mbps; pixel 
format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 60Mbps; pixel 
format: yuv422p; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 75Mbps; pixel 
format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 120Mbps; 
pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000004d05500] Frame size: 1280x720p; bitrate: 145Mbps; 
pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 36Mbps; 
pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 36Mbps; 
pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 45Mbps; 
pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 75Mbps; 
pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 90Mbps; 
pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 350Mbps; 
pixel format: yuv422p10; framerate: 24000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 390Mbps; 
pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 440Mbps; 
pixel format: yuv422p10; framerate: 30000/1001
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 730Mbps; 
pixel format: yuv422p10; framerate: 50/1
[dnxhd @ 0000000004d05500] Frame size: 1920x1080p; bitrate: 880Mbps; 
pixel format: yuv422p10; framerate: 60000/1001
[dnxhd @ 0000000004d05500] Frame size: 960x720p; bitrate: 42Mbps; pixel 
format: yuv422p; framerate: 0/0
[dnxhd @ 0000000004d05500] Frame size: 960x720p; bitrate: 60Mbps; pixel 
format: yuv422p; framerate: 0/0
[dnxhd @ 0000000004d05500] Frame size: 960x720p; bitrate: 75Mbps; pixel 
format: yuv422p; framerate: 0/0
[dnxhd @ 0000000004d05500] Frame size: 960x720p; bitrate: 115Mbps; pixel 
format: yuv422p; framerate: 0/0
Output #0, mov, to 'I:\DNXHD\220x.mov':
   Metadata:
     encoder         : Lavf55.48.101
     Stream #0:0: Video: dnxhd, none, q=2-31, 128 kb/s, 29.97 fps
     Metadata:
       encoder         : Lavc56.41.100 dnxhd
Stream mapping:
   Stream #0:0 -> #0:0 (ffvhuff (native) -> dnxhd (native))
Error while opening encoder for output stream #0:0 - maybe incorrect 
parameters such as bit_rate, rate, width or height



More information about the ffmpeg-user mailing list