Davinci encoded output is distorted and blurred

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

GoMati

  • Posts: 7
  • Joined: Thu Jan 28, 2021 10:20 am
  • Real Name: Mati Urban

Davinci encoded output is distorted and blurred

PostThu Jan 28, 2021 10:40 am

Disclaimer: sorry that I didn't make links out of PNGs but forums is blocking those for me :( Please do copy them and open up in your browser

Hi everyone!

So essentially I face this problem where most of my output is slightly (but noticeably!) lower in quality than my original recording even though I use same bitrate for both. Couple of screenshots:

Here's the original 1440p 25k bitrate encoded footage frame:
calculationwiki.waw.pl/fh4/org25k.png

Here's what Davinci gives me when I use settings presented below (H.264):
calculationwiki.waw.pl/fh4/davinci-25k-264.png

Here's what it gives me when I use settings presented below but with H.265:
calculationwiki.waw.pl/fh4/davinci-25k-265.png

Last but not least - my settings:
Image

So if you open up the screenshots you can see noticeable drop in quality (fence in the right is losing it's structure way earlier, trunk of the tree on the hill on the left is getting blurred with the leaves on the ground, pavement texture is blurred etc). H264 is a tad bit better but H265 is losing even more quality.

Most of the time my editing is simple - remove non-interesting parts, add my watermark, sometimes camera, change volumes, that's it, no fancy color bumping/filtering or anything. However I do face this issue even though I do have the same bitrate output as original file (of course for 1440p we can get even higher, but there's youtube compression which will mess it up a lot anyway, so I stick with 25k).

Anything I am doing wrong here? Cause there must be something for sure.

Thanks in advance!
Offline

Jim Simon

  • Posts: 34455
  • Joined: Fri Dec 23, 2016 1:47 am

Re: Davinci encoded output is distorted and blurred

PostThu Jan 28, 2021 3:46 pm

Change from Restrict to Automatic>Best.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

Mario Kalogjera

  • Posts: 1202
  • Joined: Sat Oct 31, 2015 8:44 pm

Re: Davinci encoded output is distorted and blurred

PostThu Jan 28, 2021 3:54 pm

Why is entropy set to CAVCL instead of CABAC? Also, you are encoding to high resolution @ 60 fps, you simply need more bitrate.
Asus Prime X370-Pro+R7 3700X@PBO+32 GB G.Skill AEGIS DDR-4@3200MHz
Sapphire RX6700 10GB
Adata A400 120GB System,A2000 500GB Scratch SSDs
Media storage:"Always in motion is it"
BMD Mini Monitor 4K
Windows 11 Pro+Resolve Studio 18+Fusion Studio 18
Offline

GoMati

  • Posts: 7
  • Joined: Thu Jan 28, 2021 10:20 am
  • Real Name: Mati Urban

Re: Davinci encoded output is distorted and blurred

PostThu Jan 28, 2021 8:56 pm

Mario Kalogjera wrote:Why is entropy set to CAVCL instead of CABAC? Also, you are encoding to high resolution @ 60 fps, you simply need more bitrate.


Thanks a lot! But why do I need more bitrate if I want to keep quality the same as source material?

Thanks in advance!
Offline

Mario Kalogjera

  • Posts: 1202
  • Joined: Sat Oct 31, 2015 8:44 pm

Re: Davinci encoded output is distorted and blurred

PostThu Jan 28, 2021 11:28 pm

GoMati wrote:
Mario Kalogjera wrote:Why is entropy set to CAVCL instead of CABAC? Also, you are encoding to high resolution @ 60 fps, you simply need more bitrate.


Thanks a lot! But why do I need more bitrate if I want to keep quality the same as source material?

Thanks in advance!


You can't keep the quality of the original because it's already (rather heavily) compressed. It's called generational loss. You need substantially higher bitrate than the original to keep the visual likeness.
Asus Prime X370-Pro+R7 3700X@PBO+32 GB G.Skill AEGIS DDR-4@3200MHz
Sapphire RX6700 10GB
Adata A400 120GB System,A2000 500GB Scratch SSDs
Media storage:"Always in motion is it"
BMD Mini Monitor 4K
Windows 11 Pro+Resolve Studio 18+Fusion Studio 18
Offline
User avatar

Uli Plank

  • Posts: 25124
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Davinci encoded output is distorted and blurred

PostFri Jan 29, 2021 1:55 am

You may want to use a better encoder too, like x.264.
Export a huge DNxHR file first and then compress in Handbrake. Slow, but good.
My disaster protection: export a .drp file to a physically separated storage regularly.

Studio 19.1.3
MacOS 13.7.4, 2017 iMac, 32 GB, Radeon Pro 580 + eGPU
MacBook M1 Pro, 16 GPU cores, 32 GB RAM, MacOS 14.7.2
SE, USM G3
Offline

GoMati

  • Posts: 7
  • Joined: Thu Jan 28, 2021 10:20 am
  • Real Name: Mati Urban

Re: Davinci encoded output is distorted and blurred

PostFri Jan 29, 2021 10:18 am

Mario Kalogjera wrote:You can't keep the quality of the original because it's already (rather heavily) compressed. It's called generational loss. You need substantially higher bitrate than the original to keep the visual likeness.

I am rather familiar with such process TBH, just didn't know this is THAT noticeable when you keep the compression low.

So how much is "substantially" here? 120% of original? 200%? And what would be the best course of action if I want to have video on as-close-as-possible to let's say 25k bitrate?
a) Record in 40k then store as 25k (probably not, however there's more chance for better compression in 25k results if original material was better)
b) Record in 20k then store as 25k (it should give some headroom to keep the quality but if original is more compressed then offspring will also look worse?)

As said, I'd like to keep output rather small (25k) but pack as much of the fine detail there as possible.
Offline

GoMati

  • Posts: 7
  • Joined: Thu Jan 28, 2021 10:20 am
  • Real Name: Mati Urban

Re: Davinci encoded output is distorted and blurred

PostFri Jan 29, 2021 10:49 am

GoMati wrote:
Mario Kalogjera wrote:[...] And what would be the best course of action if I want to have video on as-close-as-possible to let's say 25k bitrate?
a) Record in 40k then store as 25k (probably not, however there's more chance for better compression in 25k results if original material was better)
b) Record in 20k then store as 25k (it should give some headroom to keep the quality but if original is more compressed then offspring will also look worse?)


I've done a simulation. 40k "raw" does produce significantly better image when compressed to 25k, guess I'll stick to it. Now I just have to find sweet spot with how much of raw I want to have to achieve best results when going to 25k in Davinci.

H264 is just a tad bit better than H265 in some cases H265 in other, but if someone has any source to back me up here, then please do.
Offline

Jim Simon

  • Posts: 34455
  • Joined: Fri Dec 23, 2016 1:47 am

Re: Davinci encoded output is distorted and blurred

PostFri Jan 29, 2021 3:28 pm

Uli Plank wrote:You may want to use a better encoder too, like x.264.

I've always used Q16 in x264 for my deliverables. I find it to be excellent quality.

I recently discovered that Resolve's "Best" is slightly better than that, so...
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

Jim Simon

  • Posts: 34455
  • Joined: Fri Dec 23, 2016 1:47 am

Re: Davinci encoded output is distorted and blurred

PostFri Jan 29, 2021 3:29 pm

GoMati wrote:I want to have video on as-close-as-possible to let's say 25k bitrate?

Why?
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

GoMati

  • Posts: 7
  • Joined: Thu Jan 28, 2021 10:20 am
  • Real Name: Mati Urban

Re: Davinci encoded output is distorted and blurred

PostSat Jan 30, 2021 11:04 am

Jim Simon wrote:
GoMati wrote:I want to have video on as-close-as-possible to let's say 25k bitrate?

Why?

Cause I am producing a whole lot of videos that are 1440p and upload them mainly to youtube. Youtube does cut quality by a whole lot and adding about 100+ GB each month of videos to my archive does stress my archives a lot already. Disk space is not a big issue now but it would be if I'd up my quality to let's say 50-70k with not-so-much quality added that I don't really need :)

I'd say it's a "golden spot" for most part for Youtube - that's it.

Jim Simon wrote:I've always used Q16 in x264 for my deliverables. I find it to be excellent quality.

I recently discovered that Resolve's "Best" is slightly better than that, so...

Yet it may be waaaaay heavier :) Nice tip though
Offline

Mario Kalogjera

  • Posts: 1202
  • Joined: Sat Oct 31, 2015 8:44 pm

Re: Davinci encoded output is distorted and blurred

PostSat Jan 30, 2021 11:44 am

It's hard to maintain quality and avoid storage issues. You are practically going through a triple generational loss... Capture - export - youtube.

Sent from my Mi 9T using Tapatalk
Asus Prime X370-Pro+R7 3700X@PBO+32 GB G.Skill AEGIS DDR-4@3200MHz
Sapphire RX6700 10GB
Adata A400 120GB System,A2000 500GB Scratch SSDs
Media storage:"Always in motion is it"
BMD Mini Monitor 4K
Windows 11 Pro+Resolve Studio 18+Fusion Studio 18
Offline

Jim Simon

  • Posts: 34455
  • Joined: Fri Dec 23, 2016 1:47 am

Re: Davinci encoded output is distorted and blurred

PostSat Jan 30, 2021 7:22 pm

GoMati wrote:Yet it may be waaaaay heavier

In my tests, it wasn't. And because the bitrate isn't predefined, you won't be getting more bits than you need to achieve the Best Quality.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline
User avatar

Uli Plank

  • Posts: 25124
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Davinci encoded output is distorted and blurred

PostSun Jan 31, 2021 2:58 am

Size depends a lot on content here. High motion combined with high detail over large areas will need more bitrate or you won't like the quality. You can't eat the cake and keep it.
My disaster protection: export a .drp file to a physically separated storage regularly.

Studio 19.1.3
MacOS 13.7.4, 2017 iMac, 32 GB, Radeon Pro 580 + eGPU
MacBook M1 Pro, 16 GPU cores, 32 GB RAM, MacOS 14.7.2
SE, USM G3
Offline

GoMati

  • Posts: 7
  • Joined: Thu Jan 28, 2021 10:20 am
  • Real Name: Mati Urban

Re: Davinci encoded output is distorted and blurred

PostSun Jan 31, 2021 8:30 am

Jim Simon wrote:In my tests, it wasn't. And because the bitrate isn't predefined, you won't be getting more bits than you need to achieve the Best Quality.

It all depends on the game, but if I stick to Forza it probably won't get that low since screen is changing all the time there. Especially since I've cranked my recordings to 40k now and only then I am doing the heavy encoding to 25k in Davinci (which will be most "harmful"). Unless CQP file gets less re-encoding (which too is very doubtful if you do ANY editing) then after deleting RAWs you'll be in the same place :)

Why Q16 tho?

GoMati wrote:Size depends a lot on content here. High motion combined with high detail over large areas will need more bitrate or you won't like the quality. You can't eat the cake and keep it.

Very true, but of course you have to know what dimnishing returns are and stop at ~85-90% quality cause afterwards storage cost is too high.


GoMati wrote:It's hard to maintain quality and avoid storage issues. You are practically going through a triple generational loss... Capture - export - youtube.

That is somewhat unavoidable if you edit the footage at least slightly. What *may* look better (depending of how VP9 will treat you) is to render twice - once for best quality and upload it to youtube, then smaller CBR to archieve it. But then this gets more time-consuming :)

Return to DaVinci Resolve

Who is online

Users browsing this forum: Mads Johansen, panos_mts, sjubussen and 297 guests