Opened 6 years ago

Last modified 4 years ago

#3342 closed defect

FFmpeg will not encode 24.00 DNxHD — at Version 3

Reported by: rexbron Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: dnxhd
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by cehoyos)

FFMpeg's DNxHD encoder rejects the DNxHD 24.00 bitrate as invaild when it is supported in the spec. The spec can be found at: http://www.avid.com/static/resources/US/documents/dnxhd.pdf

Specifically:

Project Format Resolution Frame Size Color Space Bits FPS Mbps Min/GB
1080p/24 Avid DNxHD 350x 1920 x 1080  4:4:4 10 24 352 0.406
1080p/24 Avid DNxHD 175x 1920 x 1080  4:2:2 10 24 176 0.814
1080p/24 Avid DNxHD 175  1920 x 1080  4:2:2 8  24 176 0.814
1080p/24 Avid DNxHD 115  1920 x 1080  4:2:2 8  24 116 1.231
1080p/24 Avid DNxHD 80   1920 x 1080* 4:2:2 8  24 80 1.785
1080p/24 Avid DNxHD 36   1920 x 1080  4:2:2 8  24 36 3.98
* = Sub-sampled to 1440x1080 ^ = Sub-sampled to 960 x 720

The spec does not support 24.00 at 720.

PS D:\Projects\Film Leader\Export> ffmpeg -i '.\Leader 24_00 2-beep.mov' -vcodec dnxhd -b:v 176m -acodec copy '.\Leader
24_00 2-beep_DNxHD.mov'
ffmpeg version N-60106-ge6d1c66 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan 22 2014 22:08:52 with gcc 4.8.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth
--enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-lib
opencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 49.100 / 55. 49.100
  libavformat    55. 25.101 / 55. 25.101
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  1.100 /  4.  1.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '.\Leader 24_00 2-beep.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt ?
    creation_time   : 2014-01-23 17:20:47
  Duration: 00:00:08.08, start: 0.000000, bitrate: 813588 kb/s
    Stream #0:0(eng): Video: rawvideo (2vuy / 0x79757632), uyvy422, 1920x1080, 796262 kb/s, 24 fps, 24 tbr, 24 tbn, 24 t
bc (default)
    Metadata:
      creation_time   : 2014-01-23 17:20:47
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:00:00
    Stream #0:1(eng): Audio: pcm_s24be (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s (default)
    Metadata:
      creation_time   : 2014-01-23 17:20:47
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2014-01-23 17:20:47
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:00:00
File '.\Leader 24_00 2-beep_DNxHD.mov' already exists. Overwrite ? [y/N] y
[dnxhd @ 0000000000329820] video parameters incompatible with DNxHD. Valid DNxHD profiles:
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p10; framerate: 24000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p10; framerate: 50/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p10; framerate: 60000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 115Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 120Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 145Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 240Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 290Mbps; pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 220Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p10; framerate: 30000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080i; bitrate: 120Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080i; bitrate: 145Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10; framerate: 24000/1001
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p10; framerate: 50/1
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p10; framerate: 60000/1001
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 110Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 75Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 120Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000000329820] Frame size: 1280x720p; bitrate: 145Mbps; pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 45Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 75Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0000000000329820] Frame size: 1920x1080p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 60000/1001
Output #0, mov, to '.\Leader 24_00 2-beep_DNxHD.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt ?
    Stream #0:0(eng): Video: dnxhd, yuv422p, 1920x1080, q=2-1024, 90k tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2014-01-23 17:20:47
      handler_name    : Apple Alias Data Handler
      timecode        : 00:00:00:00
    Stream #0:1(eng): Audio: pcm_s24be (in24 / 0x34326E69), 48000 Hz, stereo, 2304 kb/s (default)
    Metadata:
      creation_time   : 2014-01-23 17:20:47
      handler_name    : Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> dnxhd)
  Stream #0:1 -> #0:1 (copy)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Change History (3)

comment:1 Changed 6 years ago by cehoyos

  • Keywords dnxhd added

Do you have samples?

comment:2 Changed 6 years ago by rexbron

Of 24.00 material or 24.00 DNxHD? My Davinci Resolve station is tied up right now but I can create one in there.

comment:3 Changed 6 years ago by cehoyos

  • Description modified (diff)
Note: See TracTickets for help on using tickets.