I’ve created a DNxHR HQ export preset for anyone seeking an alternative to ProRes for high-quality intermediate multi-generation encoding. The advantages compared to ProRes are:
File size is only 64% of an equivalent ProRes file
Encoding takes 44% less time than ProRes
Picture quality is visually lossless, equal to ProRes HQ. The time and space reductions happen because DNxHR HQ is 8-bit whereas ProRes is 10-bit. However, Shotcut is currently 8-bit, so time and space are wasted by ProRes as it stores 10-bit numbers whose true versatility won’t even be used. DNxHR is a perfect complement to Shotcut’s output, and is already used by the “better”-quality setting of the “Convert to Edit-Friendly” feature. (EDIT: I said “max-quality” earlier by mistake… I was typing while looking at something else.)
To use the export preset, copy the file below into this folder (on a Windows system) and rename it to remove the .txt extension: C:\Program Files\Shotcut\share\mlt\presets\consumer\avformat\intermediate
Then find the preset in the Export panel under intermediate > DNxHR HQ
I just gave it try…under Linux. But it should be the “same”. The folders are identical.
Howsoever, I have now an entry “DNxHR-HQ” under “Intermediate”…
But the result is a white screen with only music/sound.
BTW: The exported file size is 9,9 MiB…
That’s odd. Unfortunately, I don’t have a Linux box around to test it. I’ve got some hardware I could build up into a Mint box and give it a try several days from now, but I guess Convert to Edit-Friendly is the workaround in the meantime.
The Windows path I referenced is the Shotcut “system” area. Export presets can also be stored in a user’s profile in their home directory. What happens if you put the DNxHR preset in there instead of the system area? This post might help locate where the user preset area is on your distro. If you find the “presets” folder under your home directory, there should be another directory under it called “encode” where custom export settings can go.
You did it right. I’m not sure what to tell you until I get a Linux box back up. Have you tried the AppImage version of Shotcut and then put the export preset in the user encode folder that @sauron described?
@sauron, thank you very much for the test results. Helps a lot.
@shotcut Thanks for the inclusion! @sauron’s file would need to be used instead (stripped carriage returns). I defer to your preferences as far as PCM vs ALAC. I get the impression you want to support the potential of 32-bit audio source files, and ALAC would be necessary for that. I chose PCM for decoding speed and to guarantee there was no conversion alteration from 24-bit DAW output to 32-bit ALAC. But I have no strong burden either way.
@Paul2 Yes, switch to progressive=0. Then add top_field_first=1 for TFF or top_field_first=0 for BFF. I didn’t make the preset interlaced because it would be a 50/50 chance of guessing which field order the user needed.
Yes, it works!
I copied Timeline to Source, selected 17 sec. to test and gave it a Go.
Export Time: 53 sec. (Intel I3-6100, 2 Cores / 4 Threads, 3,7 GHz)
Size: 913 MiB
BTW: When I removed the file type ending (.txt) then it was, of course, ‘DNxHR-HQ Linux’, but it was shown in the export panel as ‘DNxHR-HQ’. I then renamed ‘DNxHR-HQ Linux’ to ‘DNxHR-HQ’ and all is fine.