Opened 6 years ago

Closed 6 years ago

#6836 closed defect (fixed)

Incompatible DNxHD video parameters although listed in valid profiles

Reported by: Patrick Bogdan Owned by:
Priority: minor Component: avcodec
Version: git-master Keywords: dnxhd
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:
Some of the DNxHD parameters are not valid even though they are listed as such.

How to reproduce:

% ffmpeg -i input -vf scale=hd1080 -r 50 -b:v 730M -c:v dnxhd -pix_fmt yuv422p10 out.mov
ffmpeg version git-2017-11-03-0b93c61 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --enable-shared --disable-static --disable-doc --disable-devices --enable-indev=lavfi --prefix=/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/ffmpeg --install-name-dir='@rpath' --extra-cflags=-I/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libmp3lame/include/ --extra-ldflags=-L/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libmp3lame/lib/ --extra-cflags=-I/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libogg/include/ --extra-ldflags=-L/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libogg/lib/ --extra-cflags=-I/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libvorbis/include/ --extra-ldflags=-L/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libvorbis/lib/ --extra-ldflags='-Wl,-rpath,@loader_path/../lib' --enable-libvorbis --enable-libvpx --enable-libmp3lame --enable-libopenh264 --enable-libfreetype
  libavutil      56.  0.100 / 56.  0.100
  libavcodec     58.  1.100 / 58.  1.100
  libavformat    58.  0.102 / 58.  0.102
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7.  0.101 /  7.  0.101
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101

[dnxhd @ 0x7fd6c3004a00] video parameters incompatible with DNxHD. Valid DNxHD profiles:
...
[dnxhd @ 0x7f824b0cfe00] Frame size: 1920x1080p; bitrate: 730Mbps; pixel format: yuv422p10; framerate: 50/1
...
[dnxhd @ 0x7fd6c480cc00] ff_frame_thread_encoder_init failed
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x7fd6c4811800] Qavg: 11229.511
[aac @ 0x7fd6c4811800] 2 frames left in the queue on closing

Here a list of the possible false (in)valid parameters:

[dnxhd @ 0x7f824b0cfe00] Frame size: 1920x1080p; bitrate: 350Mbps; pixel format: yuv422p10; framerate: 24000/1001
[dnxhd @ 0x7f824b0cfe00] Frame size: 1920x1080p; bitrate: 390Mbps; pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0x7f824b0cfe00] Frame size: 1920x1080p; bitrate: 730Mbps; pixel format: yuv422p10; framerate: 50/1
[dnxhd @ 0x7f824b0cfe00] Frame size: 1920x1080p; bitrate: 880Mbps; pixel format: yuv422p10; framerate: 60000/1001

Thank you in advance,
pb

Change History (2)

comment:1 by Carl Eugen Hoyos, 6 years ago

Priority: normalminor
Reproduced by developer: set
Status: newopen

Patch sent, the required pix_fmts are yuv444p10 or gbrp10.

comment:2 by Carl Eugen Hoyos, 6 years ago

Resolution: fixed
Status: openclosed

Should be fixed in f3af34f9ebd2e3f38fcf8fac099052668bd55224, thank you for the report!

Note: See TracTickets for help on using tickets.