Cannot record with DNxHD Codec (error) / DNxHR (no option) in OBS

videoeditor

New Member
Hello

I want to record DNxHD / DNxHR with OBS for the sake of editing and exporting performance. My pc hardware is fine and will handle recording with these codecs.

However, I face two problems. When I chose the MOV Container and DNxHD Codec I receive the following error in OBS:
1609628852377.png

Settings are
1609628984526.png


For DNxHR I do not even have any options in the Drop Down Menu. Any ideas? Do I have to setup everything via command line?
 

Babblingo

Member
I would really like to learn how to export to these DNxHD and / or DNxHR codecs as well. Please share any success stories you may find or create.

It’s not clear to me if it is possible now within OBS, despite the “dnxhd” pulldown you showed, above. Learning whether it is or not would also be great to hear.

Good alternative: I had searched the OBS forum and found it was possible to export a similar-quality HD Prores file, though. It worked well in my non-mac NLE.
 

rockbottom

Active Member
Try increasing your Keyframe Interval to 2 seconds (double your frame rate), right now you have it set for every (2) frames.
 

Babblingo

Member
I had success for a 1920x1080
project, when I changed bit rate to
145000 or 220000 in the Settings>Output>Recording Tab.

Keyframe Interval was set to 60. I later changed it back to 2 and I was still successful.

I think HD DNxHD is outputting fine. I am hoping we can get DNxHR as well...

If you don’t mind, can I add to this DNxHD and DNxHR question another Output question?

Is it possible to Output to File an XDCam 50Mbits file? All I can get
so far is 35Mbits, while using the following:

Container firmat = mxf
Video Bitrate = 50000 Kbps
Keyframe Interval = 60
Video Encoder = mpeg2video (Default Encoder)

Audio bitrate = 160 kbps
Audio Tracks ticked ON = 1,2,3,4

Audio Encoder = pcm_st24le ((Default Encoder)

Any ideas for getting 50Mbits? Those settings show as 35Mbits with audio tracks 1 thru 8 in my software. Thanks
 

videoeditor

New Member
I had success for a 1920x1080
project, when I changed bit rate to
145000 or 220000 in the Settings>Output>Recording Tab.

Keyframe Interval was set to 60. I later changed it back to 2 and I was still successful.

I think HD DNxHD is outputting fine. I am hoping we can get DNxHR as well...

If you don’t mind, can I add to this DNxHD and DNxHR question another Output question?

Is it possible to Output to File an XDCam 50Mbits file? All I can get
so far is 35Mbits, while using the following:

Container firmat = mxf
Video Bitrate = 50000 Kbps
Keyframe Interval = 60
Video Encoder = mpeg2video (Default Encoder)

Audio bitrate = 160 kbps
Audio Tracks ticked ON = 1,2,3,4

Audio Encoder = pcm_st24le ((Default Encoder)

Any ideas for getting 50Mbits? Those settings show as 35Mbits with audio tracks 1 thru 8 in my software. Thanks

Could you please provide a screenshot of your settings for DNxHD? Thank you in advance.
 

Babblingo

Member
Sorry thats mot working for you.
I am using v26.0.2 on a X64 Win10. Can’t send screenshots...

I suggest refreshing your output folder destination. Thats what I did just now when I got that same error, but with my known valid Settings after power-up.

Make sure your cancas is 1920x1080 29.97fps.

Your screenshot if it were mine woulld = Container Format. = mov
* Not mov (video) as seen in your screenshot;

The Video Encoder = mpeg2video (Default Encoder)
* not dnxhd as seen in your screenshot

My settings for audio Encoder are also different from your screen shot. Mine are set as described about .= pcm_s24le

Important:

Video Bitrate = 145000
then try 220000
both worked for me.

Thanks and good luck.
 

videoeditor

New Member
Sorry thats mot working for you.
I am using v26.0.2 on a X64 Win10. Can’t send screenshots...

I suggest refreshing your output folder destination. Thats what I did just now when I got that same error, but with my known valid Settings after power-up.

Make sure your cancas is 1920x1080 29.97fps.

Your screenshot if it were mine woulld = Container Format. = mov
* Not mov (video) as seen in your screenshot;

The Video Encoder = mpeg2video (Default Encoder)
* not dnxhd as seen in your screenshot

My settings for audio Encoder are also different from your screen shot. Mine are set as described about .= pcm_s24le

Important:

Video Bitrate = 145000
then try 220000
both worked for me.

Thanks and good luck.

Are you sure your videos are encoded in dnxhd and NOT simply MPEG2? Open the file in VLC and check the codec plz.
 

Babblingo

Member
Hi videoeditor,
I see that the latest Settings I described yesterday were wrong (MPEG2) and I apologize for the misinformation, but there's more to this: I went back to double-check my initial successful OBS DNxHD output and below is a copy/paste what MediaInfo reports;
I did not save those OBS Settings and I cannot as I write this replicate that output, but I will try to later. I do have a variety of edit and conversion software installed on my PC and maybe that matters. I don't know. Good luck with your system.

General
Complete name : K:\obs dnxhd test\2021-01-03_15-36-55.mov
Format : MPEG-4
Commercial name : DNxHD 145
Format profile : QuickTime
Codec ID : qt 0000.02 (qt )
File size : 290 MiB
Duration : 16 s 217 ms
Overall bit rate mode : Constant
Overall bit rate : 150 Mb/s
Writing application : Lavf58.29.100

Video
ID : 1
Format : VC-3
Commercial name : DNxHD 145
Format version : Version 1
Format profile : HD@SQ
Codec ID : AVdn
Codec ID/Info : Avid DNxHD
Duration : 16 s 217 ms
Bit rate mode : Constant
Bit rate : 145 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 2.339
Stream size : 282 MiB (97%)

Audio #1
ID : 2
Format : PCM
Format settings : Little / Signed
Codec ID : in24
Duration : 16 s 22 ms
Bit rate mode : Constant
Bit rate : 2 304 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 4.40 MiB (2%)
Default : Yes
Alternate group : 1

Audio #2
ID : 3
Format : PCM
Format settings : Little / Signed
Codec ID : in24
Duration : 16 s 22 ms
Bit rate mode : Constant
Bit rate : 2 304 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 4.40 MiB (2%)
Default : No
Alternate group : 1
 

Babblingo

Member
I changed Settings> Advanced> Video > Color Format to both NV12 and I420 ... both worked and showed the same as above, including 4:2:2. (As shown using MediaInfo).

Nk idea why NV12 info did not report 4:2:0... maybe it is controlled by the Video encoder dnxhd preset?

Output> Recording> Container Format = mov
Video Bitrate = 145000
Keyframe interval (frames) = 60

Show all codecs (even if....) =ON
Video Encoder = dnxhd

Audio Bitrate = 160 kbps
Audio Encoder = pcm_s24le

I believe the deal-breaker was either of the other two Advanced
Color formats, for some reason.

Bitrate that also worked are 220000 and 36000 and 45000.
There may be other rates, but this value needs to be exact, apparently.

i do not believe the keyframe value matters. A keyframe of 1 still worked for me.
 
Top