Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
![]() |
#1 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,514
|
Lossless export from Davinci Resolve?
Hi there,
I basically gotta work on the encoding of a documentary. The whole project has been edited in AVID and it's now gonna be color-corrected in Davinci Resolve. After that, they're gonna send the file over and I'm gonna have to encode it to make the official Bluray version (I'm gonna use Avisynth and x264 of course), the Motion JPEG2000 version for the DCP for which I'm gonna use Avisynth and ffmpeg/OpenDCP and the MPEG-2 XDCAM version for air-time in our linear channels using Avisynth and ffmbc. Davinci Resolve is running on Windows 10 and they wanted to know how they have to export it. I don't have access to that computer, so I can't check which codecs it supports on export. I do know, however, that it cannot export in AppleProRes 'cause it's running on Windows. Anyway, since my encode it's gonna be a lossy one, I'd like to make them export the whole thing in lossless, so the question to you folks is: which lossless codecs does Davinci Resolve support on Windows? And, if it doesn't support any lossless codec, which is the "less lossy" codec and settings I can ask them to export the file as? The final project is gonna be a BT709 SDR 100 nit FULL HD 8bit yv12, even though it has been shot in UHD 10bit 4:4:4 planar in log with a number of nits that were actually enough to make an HLG HDR content. I know you may think that it's "madness" to go for a FULL HD SDR 8bit in 2019 (almost 2020), but the documentary is full of old archive footages coming from very old 35mm and it took a lot of time to remaster it, upscale it to FULL HD with NNEDI and Spline64 with 16bit precision and convert it to BT709, so bringing it to UHD and BT2020 HLG would be madness and it would also potentially make it look not only worse but also different from how the author wanted it to look like, so... Anyway, in a nutshell, does Davinci Resolve support lossless codecs? And if it doesn't which is the less lossy one I can ask them to export? Thank you in advance as always, Frank. |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,749
|
Never used davinci resolve, but here is a list of supported decoder/encoder on each plattform https://documents.blackmagicdesign.c...Codec_List.pdf
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository |
![]() |
![]() |
![]() |
#3 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,166
|
Uncompressed (MOV, AVI) and image sequences ( EXR , TIFF, DPX) are the only "true" lossless export formats . It does not support 3rd party codecs
If Prores 4444XQ is "good enough" for some situation, DNxHR 12bit 4444 should be "good enough" too , so if you don't need mathematically lossless, that' s what people use on Win version of Resolve for those situation However, beware that FFMpeg/Libav (and thus avisynth) can have some issues with decoding DNxHR 4444, because of the ACT (adaptive color transform) used in official codec implementations (such as Resolve, Adobe, Avid) , so if subsampled 422 is ok, that 's the variant I'd use if using avisynth or ffmpeg https://trac.ffmpeg.org/ticket/8157 Last edited by poisondeathray; 16th October 2019 at 15:48. |
![]() |
![]() |
![]() |
#4 | Link | |||
Broadcast Encoder
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,514
|
Whoa, that's gonna make a huge file. It's gonna be impossible to send it over, even using Aspera.
Quote:
Quote:
Anyway, they are on Windows, so they cannot export on ProRes, therefore I'm actually gonna go with DNxHR 4444 12bit. I mean, it still uses the Wavelet transform (which is a good transform by the way), it has 12bit and 4:4:4 so it's definitely gonna be fine. Quote:
Well, the thing is that 4:2:2 is definitely gonna be fine for the H.264 yv12 8bit bluray encode and for the MPEG-2 XDCAM yv16 8bit encode, however I would really like not to upscale the chroma for the DCP encode which is gonna be MJPEG2000 4:4:4 12bit. If it's really gonna be an issue when I try to index it with, let's say, FFMpegSource2 or LWLibavVideoSource in Avisynth because of the fact that some blocks were encoded in YUV and some others in RGB, then perhaps I'll ask them to send over a 4:2:2 version and then I'm sadly gonna upscale the chroma for the DCP version. I gotta say that I wasn't aware of the "hybrid" RGB/YUV approach used by the adaptive color transform. It's a shame that it's not decoded properly, though. Last edited by FranceBB; 16th October 2019 at 17:07. |
|||
![]() |
![]() |
![]() |
#5 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,830
|
Quote:
Last edited by kolak; 17th October 2019 at 16:11. |
|
![]() |
![]() |
![]() |
#8 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,514
|
In the end, I asked them to export an DNxHR 4:2:2 planar 12bit and I'm gonna upscale the chroma to 4:4:4 for the MJPEG2000 Cinema encode (Avisynth + ffmpeg and OpenDCP), while I'm gonna downscale the chroma to 4:2:0 planar and then dither everything down to 8bit with the Floyd-Steinber error diffusion for the Bluray release in H.264 (Avisynth + x264 + ffmpeg + Scenarist).
Thanks. |
![]() |
![]() |
![]() |
#10 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,514
|
Quote:
Ideally, I'd like to avoid getting banding artifacts while retaining as many details as possible. Since it's a documentary, though, there are many old archive footages that are very grainy (we had a discussion about them when I encoded them to make our internal mezzanine files and the director was against de-graining them as he wanted to keep the original with the original grain). Some other footages, instead, are the ones we shot in studio or travelling across the country but with accurately handled light in log with 17 stops which have then been graded to BT709 100 nits in post-production which is a waste considering that 17 stops are more than enough to get 1000 nits, but we decided to have our entire workflow as SDR for historical reasons. (i.e it didn't make much sense to have 4K HLG interviews perfect in every detail and a crappy 35mm digitalized and upscaled on the next scene). The rest of the contents which are not interviews or archive footages are just relatively slow pan. It has been entirely shot at 25fps progressive. Last edited by FranceBB; 18th October 2019 at 14:41. |
|
![]() |
![]() |
![]() |
#11 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,830
|
Quote:
I've not found anything else as efficient and 'transparent'. x264's Sierra-2-4A is also ok. Last edited by kolak; 18th October 2019 at 16:11. |
|
![]() |
![]() |
![]() |
#12 | Link | |
Cary Knoop
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 397
|
Quote:
Here is an example of a Floyd–Steinberg dithered clip. Look at the black patches, they are a bit too restless, using a lower quality dithering seems better for H.264/VP9. https://www.youtube.com/watch?v=MDtQPJJ20Q8 Last edited by Cary Knoop; 18th October 2019 at 16:23. |
|
![]() |
![]() |
![]() |
#13 | Link |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,830
|
For typical low bitrate web encodes probably it's. For BD with good encodes at relatively high bitrate not necessarily. I was using Cinemacraft h264 encoder- maybe it behaves differently than x264.
Youtube is no near BBD quality, so it's rather very different scenario. |
![]() |
![]() |
![]() |
#14 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,166
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,830
|
Quote:
Last edited by kolak; 18th October 2019 at 19:14. |
|
![]() |
![]() |
![]() |
#16 | Link | |||||
Broadcast Encoder
Join Date: Nov 2013
Location: Metropolitan City of Milan, Italy
Posts: 2,514
|
Quote:
Quote:
Quote:
I say it also 'cause it has been proven to be better than closed-source encodes in terms of SSIM/PSNR/VMAF with tests I've made internally in the company I work for. Quote:
Quote:
|
|||||
![]() |
![]() |
![]() |
#17 | Link | |
Registered User
Join Date: Nov 2004
Location: Poland
Posts: 2,830
|
Quote:
![]() For interlaced content my choice was actually Sony's Blu-Code encoder, which wasn't that popular. As for today BD authoring business brings no money (well you can make money if you get good contracts, but it's a lot of work), so I moved away from it ![]() Cineform is also good as it's wavelet based, so re-encoding to JPEG2000 will cause less quality loss due to same nature of the encoding technique. Last edited by kolak; 18th October 2019 at 19:22. |
|
![]() |
![]() |
![]() |
#18 | Link | |||
Registered User
Join Date: Sep 2007
Posts: 5,166
|
Quote:
Yes, x264 can have problems when using default settings. The AQ redistribution tends to generate a "halo" like effect of reduced grain around edges. When combined with higher psy-rd and psy-trellis, there can be artifacts not obscured by the grain. Also, there can be noticable I/B/P fluctuations. That's why the --tune grain preset has adjusted settings for --aq-strength and IP/PB ratios. You can adjust them farther if it's still a problem . Quote:
Quote:
Last edited by poisondeathray; 18th October 2019 at 20:07. |
|||
![]() |
![]() |
![]() |
#20 | Link |
Registered User
Join Date: Oct 2017
Posts: 324
|
Voukoder is available, check if this plugin supports x264/265 lossless modes: (Also FFV1 and one other lossless codec)
https://www.voukoder.org/forum/threa...-instructions/ App Version Voukoder 10.2 Connector Version DaVinci Resolve Studio 17+ 0.7.0 (beta) |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|