Question / Help Record directly in DNxHD

Ade

New Member
I want to record some videos of my gaming using DNxHD for editing in Hitfilm 3 express. The reason is that dnxhd is the most is recommended codec for editing in that program. I need to record directly in dnxhd using ffmpeg. I prefer avi container format instead mov, but the problem is that dnxhd it's not available in dropdown menus. However, there is "an unspecified error occurred while recording". Any help would be appreciated.
 

Harold

Active Member
In order to get that format support, you'd need to recompile ffmpeg and replace the components in the OBS folders with the new ones you just compiled.
 

c3r1c3

Member
I tried recording in DNxHD (Avid editor, so natural fit, right?), and it takes a TON of CPU to do it correctly (i.e. anything above 1280x720@60p), and even 720@60p can take quite a bit. Looking at Task Manager it seems that the encoder is single threaded in the version of ffmpeg that OBS MP is currently compiled against (which I don't think has been fixed in ffmpeg HEAD either at this time), so it can easily max out a single core, and doesn't take advantage for multiple cores for higher resolutions/frame rates.

To answer your question, DNxHD only works with certain combos. You can use dnxhd (SMPTE VC-3), MOV or MXF as your wrapper, but AVI won't work at all. Below are some setting combos that work for me:

  1. http://imgur.com/Te3NNkP
  2. http://imgur.com/58quWZF (These settings seem to work the best/most reliable).
  3. http://imgur.com/OXEsWFk
I don't have Hitfilm 3, so I can't say which (if any) of these formats Hitfilm can work with. If you have any other questions about DNxHD let us know.
 
Last edited:

Ade

New Member
I have a question. If I record using settings, that you suggested container format is dnxhd. Do I need always to change it with just changing file extension to .avi or .mov? I noticed that changing to .avi worked and file played normally in vlc. But there is maybe combination, that just doesn't work and I need to convert recorded material. But in Hitfilm media file could not imported. I can ask about it their own forums. But I've already asked another question there.
 

c3r1c3

Member
VLC doesn't just read the file extension, it also reads the index/header/atom/structure to properly parse and play the file. I don't know what Hitfilm does, but even if it ignores the extension and tries to parse the file directly, if it doesn't support a DNxHD/SMPTE-VC3 formatted file, then it doesn't matter what extension you put on the file, Hitfilm won't be able to read it.

If Hitfilm supports .mov files, why not use that container?

Remember: Changing or slapping a different extension on a file doesn't magically reformat the file into the new extensions' formatting/structure. It doesn't change the contents or layout of the file.
 
Last edited:

Ade

New Member
OK, I'll use mov. I'll ask about format support in their own forums. Thanks, that helped a lot.
 
Top