Understand encoding quality (bad)

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

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Understand encoding quality (bad)

PostMon Jan 08, 2018 5:17 am

Hello everyone,

I have a hard time understanding why davinci has such a bad output with youtube/vimeo settings encoding. (mov/h.264 when it doesn't fail to encode!)

No matter how much I crank up the target bitrate, the final video is horrible with many blocky/splotchy artifacts, and unacceptable pixelization.
I always end export tiff sequence, which is extremely heavy in size, and then export the audio. Very cumbersome and it makes me think of switching to another editing software.

- mp4 doesn't work (failed to encode, or exporting render raising up to ridiculous times like 20 hours and growing, stopping gets impossible and program freezes).

Does anyone know why davinci can't export better quality, or how to make mp4 work?

Thank you.
Offline
User avatar

Marc Wielage

  • Posts: 11052
  • Joined: Fri Oct 18, 2013 2:46 am
  • Location: Hollywood, USA

Re: Understand encoding quality (bad)

PostMon Jan 08, 2018 5:47 am

Which version of Resolve? What OS? What hardware (CPU, GPU, RAM, I/O)? What type of camera source files?
marc wielage, csi • VP/color & workflow • chroma | hollywood
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostMon Jan 08, 2018 6:44 am

Thank you for your answer.

14.2
windows 7
dual xeon 5650, 48gb of ram
gtx780 6gb, gtx970
Sony A6500 xavc

Youtube mp4 encoding is working very fine and high quality in hitfilm for instance.
Offline

Justin Jackson

  • Posts: 670
  • Joined: Thu Apr 28, 2016 3:50 am

Re: Understand encoding quality (bad)

PostMon Jan 08, 2018 8:10 pm

Any chance you can put up a few short test videos on youtube/vimeo for us to look at? I have been outputting to youtube (4k) and it is very watchable as far as I can tell. The only problem with uploading to youtube is that they re-encode it for their different resolution support.. not sure if that adds more compression to my already compressed file.. or if they use the file I upload at the resolution it is at as it is, and transcode to different resolutions... e.g. I upload a 4K youtube file. Not sure if that is the one they show at 4k, or if they in fact re-encode my file to their own 4k version as well as other resolutions.
Custom DIY AMD1950x 16-core/32-thread, liquid cooled, 64GB 3600Mhz RAM, 950Pro-512GB NVMe os/apps, 2x500GB 850 Evo RAID 0 SATA3, Zotac 1070 8GB video, USB 3.1Gen2 RAID0 2x4TB, 2x2TB Crucial MX500 SSD SATA3.
Offline
User avatar

Jack Fairley

  • Posts: 1863
  • Joined: Mon Oct 03, 2016 7:58 pm
  • Location: Los Angeles

Re: Understand encoding quality (bad)

PostMon Jan 08, 2018 8:12 pm

I prefer to upload lightweight flavors of ProRes/DNxHD to YouTube. It will transcode them, of course, but I think the result is better than uploading H.264 directly.
Ryzen 5800X3D
32GB DDR4-3600
RTX 3090
DeckLink 4K Extreme 12G
Resolve Studio 17.4.1
Windows 11 Pro 21H2
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostMon Jan 08, 2018 8:28 pm

Thank you for the tip.
Can you elaborate on what is "lightweight" for you?
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Understand encoding quality (bad)

PostMon Jan 08, 2018 8:56 pm

There is nothing wrong with h264- just use higher bitrate not what Resolve does or youtube suggests.
Use x264 with CRF at around 13-15 and files will look as ProRes LT, but still will be smaller.
Offline
User avatar

Marc Wielage

  • Posts: 11052
  • Joined: Fri Oct 18, 2013 2:46 am
  • Location: Hollywood, USA

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 2:35 am

Jack Fairley wrote:I prefer to upload lightweight flavors of ProRes/DNxHD to YouTube. It will transcode them, of course, but I think the result is better than uploading H.264 directly.

I think this is a wise idea.
marc wielage, csi • VP/color & workflow • chroma | hollywood
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 4:44 am

Thank you both for these very useful infos :)
Offline

Justin Jackson

  • Posts: 670
  • Joined: Thu Apr 28, 2016 3:50 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 8:18 am

That is an interesting idea uploading the DNxHR files directly.. but at 300GB for a bit over an hour or so, that is a massive long upload. Most peoples home internet has data caps. I am fortunate I do not, but I would still be pushing a few TBs worth of videos a month, not sure even with my unlimited data that my ISP would like that very much.

The use of h.264 with higher quality codec is good too. What I typically do is select the YouTube preset, then adjust the resolution to 4k. What format and codec within that format do you select?
Custom DIY AMD1950x 16-core/32-thread, liquid cooled, 64GB 3600Mhz RAM, 950Pro-512GB NVMe os/apps, 2x500GB 850 Evo RAID 0 SATA3, Zotac 1070 8GB video, USB 3.1Gen2 RAID0 2x4TB, 2x2TB Crucial MX500 SSD SATA3.
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 1:30 pm

I select *.mov/h.264, or *.mp4/h.264

However, as I said before, I don't understand why quality is so poor (typical low bitrate artifacts), and cranking up the bitrate doesn't change anything at all.

And as an example, I do the same within free hitfilm, I mean I select youtube preset and boom! Awesome and clean output as expected. :?:
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 2:07 pm

Because Resolve uses poor h264 encoder.
Stop using it. Export some intermediate file and use x264 based encoder, Handbrake etc.
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 2:12 pm

Now, that's an explanation!
Too bad, because resolve is a highend editing program, and because exporting intermediate formats (not mentioning audio!), is really cumbersome.

Anyway, at least I can rest a little regarding this problem.

Thank you again all :)
Offline

Ole Kristiansen

  • Posts: 284
  • Joined: Tue Nov 28, 2017 8:37 pm

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 4:20 pm

"No matter how much I crank up the target bitrate, the final video is horrible with many blocky/splotchy artifacts, and unacceptable pixelization."


Is it possible to see an example of what you are talking about - show us a video clip!
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 4:30 pm

The project I'm working on is private, so I can't share, but what I can say is that it is typical squared artifacts of compression that we all know, and it has hard time getting a clean output in dark areas for instance, overall it's not really predictable.

The strange thing is that it should go away when raising up the bitrate, but it doesn't. :?:
Offline

John Paines

  • Posts: 5828
  • Joined: Tue Jul 28, 2015 4:04 pm

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 4:35 pm

Resolve doesn't officially support Win7, and the main area where that's felt is h.264 handling. 4K h.264 export won't work at all, and HD (as I recall) will only work using the bit-rate option. Whether all this accounts for what you're seeing, can't say.

But, in any event, Resolve is a not good choice for h.264 export under the best of circumstances. And there are more pressing matters to attend to, if you ask me.
Offline

Ole Kristiansen

  • Posts: 284
  • Joined: Tue Nov 28, 2017 8:37 pm

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 4:41 pm

Steve Iskenderian wrote:The project I'm working on is private, so I can't share, but what I can say is that it is typical squared artifacts of compression that we all know, and it has hard time getting a clean output in dark areas for instance, overall it's not really predictable.

The strange thing is that it should go away when raising up the bitrate, but it doesn't. :?:


Please share media info of your recordings - camera - recording codec etc.

Best,
Ole
Offline

Dan Sherman

  • Posts: 1185
  • Joined: Fri Jul 01, 2016 11:07 pm

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 5:04 pm

Steve Iskenderian wrote:Now, that's an explanation!
Too bad, because resolve is a highend editing program, and because exporting intermediate formats (not mentioning audio!), is really cumbersome.


Editing is the key word. It's an editor not an encoder.

I do the exact same thing Andrew does, I just use a different encoder.
AMD 7950X | AMD 7900XTX (23.20.24) | DDR5-6000 CL30-40-40-96 2x32 GB | Multiple PCIe 4.0 X4 NVME | ASUS x670e HERO | Win 11 Pro 23H2 | Resolve Studio 18.6.5 B7
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 5:35 pm

Thank you all for input.

Good to know win7 is a cause.
I shot with sony A6500 in HD xavc-100mb at 120fps.
Offline
User avatar

Cary Knoop

  • Posts: 1460
  • Joined: Sun Mar 12, 2017 6:35 pm
  • Location: Newark, CA USA

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 5:50 pm

Steve Iskenderian wrote:The project I'm working on is private, so I can't share, but what I can say is that it is typical squared artifacts of compression that we all know, and it has hard time getting a clean output in dark areas for instance, overall it's not really predictable.

The strange thing is that it should go away when raising up the bitrate, but it doesn't. :?:

Bad shadow encoding can happen when the bitrate is low or when there are raised blacks without any detail.

With how many bits per pixel do you encode?
Offline
User avatar

Jean Claude

  • Posts: 2973
  • Joined: Sun Jun 28, 2015 4:41 pm
  • Location: France

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 6:28 pm

Steve Iskenderian wrote:The project I'm working on is private, so I can't share, but what I can say is that it is typical squared artifacts of compression that we all know, and it has hard time getting a clean output in dark areas for instance, overall it's not really predictable.

The strange thing is that it should go away when raising up the bitrate, but it doesn't. :?:

Hi,
Do you have the studio version?
"Saying it is good, but doing it is better! "
Win10-1809 | Resolve Studio V16.1 | Fusion Studio V16.1 | Decklink 4K Extreme 6G | RTX 2080Ti 431.86 NSD driver! |
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 6:37 pm

I have the free version
Offline
User avatar

Jean Claude

  • Posts: 2973
  • Joined: Sun Jun 28, 2015 4:41 pm
  • Location: France

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 6:38 pm

Steve Iskenderian wrote:I have the free version


Hi,

Win 7 + free version : may be it's your issue?. Sorry
"Saying it is good, but doing it is better! "
Win10-1809 | Resolve Studio V16.1 | Fusion Studio V16.1 | Decklink 4K Extreme 6G | RTX 2080Ti 431.86 NSD driver! |
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 7:39 pm

Now I understand that win7 isn't well supported for h.264, but would the free version have limitations in this regard?
Offline
User avatar

Jack Fairley

  • Posts: 1863
  • Joined: Mon Oct 03, 2016 7:58 pm
  • Location: Los Angeles

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 7:47 pm

Steve Iskenderian wrote:Now I understand that win7 isn't well supported for h.264, but would the free version have limitations in this regard?

Studio version adds some hardware acceleration features for H.264, but I can't say whether or not it would help you here.
Ryzen 5800X3D
32GB DDR4-3600
RTX 3090
DeckLink 4K Extreme 12G
Resolve Studio 17.4.1
Windows 11 Pro 21H2
Offline

Steve Iskenderian

  • Posts: 64
  • Joined: Mon Apr 13, 2015 6:54 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 8:05 pm

ok
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 8:11 pm

h264 hardware encoders are not that great either (but maybe at least they allow for better bitrate control in Resolve).
Offline

Vess Stoytchev

  • Posts: 161
  • Joined: Mon Nov 20, 2017 7:10 am

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 9:12 pm

I'm on win7 with Resolve studio and h264 is the same as OP is describing. What I do is export in quicktime dnxr and then make a nice h264 file with Encoder. Maybe I'll try directly uploading the .mov file as someone mentioned.
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 9:41 pm

You can export lower variant of DNxHR and upload directly if you have fast internet- this is fine.
You can also transcode this into "good" h264.
Offline
User avatar

Rakesh Malik

  • Posts: 3266
  • Joined: Fri Dec 07, 2012 1:01 am
  • Location: Vancouver, BC

Re: Understand encoding quality (bad)

PostTue Jan 09, 2018 11:07 pm

I've not had problems with the QUALITY of the MP4s that I've exported from Resolve, but it's not all that fast an encoder... plus since most of my source material is Redcode, it's already dealing with a huge amount of data, and I don't have a rig like Marc's or even close (yet), so the extra overhead of h.264 compression really tanks my render speeds.

I'm getting the best encoding speed with Cineform rather than DNx, though I've uploaded ProRes (rendered with Scratch) 422 to YouTube. When size is an issue, I also render to an intermediate codec and then compress it with something that handles H.264 better than Resolve does, like LightWorks if I need to add audio, or Handbrake if it's just a compression operation.
Rakesh Malik
Cinematographer, photographer, adventurer, martial artist
http://WinterLight.studio
System:
Asus Flow X13, Octacore Zen3/32GB + XG Mobile nVidia RTX 3080/16GB
Apple M1 Mini/16GB
Offline

Justin Jackson

  • Posts: 670
  • Joined: Thu Apr 28, 2016 3:50 am

Re: Understand encoding quality (bad)

PostWed Jan 10, 2018 1:29 am

Didnt know that about h.264 and resolve either. I thought my youtube videos from DNxHR looked a bit pixelated/crappy, but always assumed it was the extra encoding youtube does on my already encoded h.264.

I was also wondering about cineform.. does it save space compared to DNxHR SQ/LQ/HQ? Would it be better to use than DNxHR for archiving/editing with?
Custom DIY AMD1950x 16-core/32-thread, liquid cooled, 64GB 3600Mhz RAM, 950Pro-512GB NVMe os/apps, 2x500GB 850 Evo RAID 0 SATA3, Zotac 1070 8GB video, USB 3.1Gen2 RAID0 2x4TB, 2x2TB Crucial MX500 SSD SATA3.
Offline
User avatar

Rakesh Malik

  • Posts: 3266
  • Joined: Fri Dec 07, 2012 1:01 am
  • Location: Vancouver, BC

Re: Understand encoding quality (bad)

PostWed Jan 10, 2018 1:49 am

I'm finding that Cineform works well as a mezzanine codec, at least within a small group. I don't think that it has all that wide acceptance yet though.

I suspect that part of the YouTube pixellation is due to the platform's processing. It's generating various quality tiers from whatever you upload, and the client decides which quality tier to use based on the QOS it's seeing from your network connection.
Rakesh Malik
Cinematographer, photographer, adventurer, martial artist
http://WinterLight.studio
System:
Asus Flow X13, Octacore Zen3/32GB + XG Mobile nVidia RTX 3080/16GB
Apple M1 Mini/16GB
Offline

andygrabo

  • Posts: 53
  • Joined: Tue Mar 14, 2017 10:08 am

Re: Understand encoding quality (bad)

PostSat Mar 17, 2018 5:56 pm

I have the same issues as Steve.
Davinci doesn't stick to the set bitrate when I encode to h264.

E.g. I have a 4K (or even HD) timeline I want to encode for youtube. My (4k) source files are usually 100Mbits (Sony a7r III XAVCS). In the deliver settings I choose the 4k Youtube preset and then it doesn't matter whether I choose "Automatic: Best" or "Restrict to: 100000 Kb/s", Davinci will almost allways compress the final video way too hard. The resulting file then has something between 10-20kbps, which for 4k is too low.

My workaround is to use DNxHR and re-encode the file with some other program... but that of course means twice the render time.

If I can provide any more detail to this, let me know. This is a real pain in an otherwise fantastic program.

I am using Davinci Resolve 14.3 but I have this issue since I use Resolve (1.5 years)

Win 10 | 16 GB RAM | Geforce 1080 GTX | Core i7 6700k @ 4GHz
Offline
User avatar

Cary Knoop

  • Posts: 1460
  • Joined: Sun Mar 12, 2017 6:35 pm
  • Location: Newark, CA USA

Re: Understand encoding quality (bad)

PostSat Mar 17, 2018 6:17 pm

There is no need to select any presets which, in my opinion, are in dire need of some updating.

To encode for YouTube:

Format = MP4
Codec = H.264

Enable Network Optimization

Select 'Restrict to' and select the bit rate in Kilo bits per second.
So for instance 10Mbps should be entered as 10000 Kbps.
Offline

andygrabo

  • Posts: 53
  • Joined: Tue Mar 14, 2017 10:08 am

Re: Understand encoding quality (bad)

PostSun Mar 25, 2018 11:17 am

My problem was solved after I manually set Encoding Profile to "high" instead of "auto" in the deliver mode. Resolve stopped encoding wildy different every time you render and started to be on the target bitrate I specified. I hope that helps.
Offline
User avatar

Charles Bennett

  • Posts: 6291
  • Joined: Sat Nov 05, 2016 11:55 am
  • Location: United Kingdom

Re: Understand encoding quality (bad)

PostSun Mar 25, 2018 11:52 am

You will get some blocking in dark areas if there is a lack of detail and also some noise. When uploading to Youtube I use mp4 1080 50p and restrict the bitrate to 40000kbps. This helps to negate problems added by YTs re-encoding.
Resolve Studio 19.0b1 build 20
Dell XPS 8700 i7-4790, 24GB RAM, 2 x Evo 860 SSDs, GTX1060/6GB (551.86 Studio Driver), Win10 Home (22H2), Speed Editor, Faderport mk1, Eizo ColorEdge CS230 + BenQ GW2270 + Samsung SA200, Canon C100mk2, Zoom H2n.
Offline

timsdd

  • Posts: 8
  • Joined: Tue Apr 21, 2020 7:19 pm
  • Real Name: Tim Lauzon

Re: Understand encoding quality (bad)

PostTue Aug 18, 2020 2:35 pm

I haven't read the thread in the entirety yet, so bear with me if I rehash stuff that has already been asked/answered.

Taking footage from:
1) GoPro6 (jpg nightlapse mode) AND
2) raw(converted to jpg) files (Canon 6D).....the 6D images render HORRIBLY.

PIXEL BANDING to the extreme on the 6D images while the GP jpgs look 'fine'. seems to defy logic!
must be a bitrate issue.

------------------------------------
UD: Using AVI/gopro cine/yuv 10 bit/ 4k/best/
seems to have negated all of the banding.,...now will YT transcoding reintroduce it!
Offline
User avatar

Charles Bennett

  • Posts: 6291
  • Joined: Sat Nov 05, 2016 11:55 am
  • Location: United Kingdom

Re: Understand encoding quality (bad)

PostTue Aug 18, 2020 3:39 pm

Since my last post over two years ago I have changed what I upload to YT. I now put my 1080p video in a UHD Timeline and render in UHD at 80Mbps. This negates a lot of the artifacts in YTs re-encode. I never use the presets in Resolve because the bitrate is far too low.
A good rule of thumb is never to render at a lower bitrate than that of your source material.
Resolve Studio 19.0b1 build 20
Dell XPS 8700 i7-4790, 24GB RAM, 2 x Evo 860 SSDs, GTX1060/6GB (551.86 Studio Driver), Win10 Home (22H2), Speed Editor, Faderport mk1, Eizo ColorEdge CS230 + BenQ GW2270 + Samsung SA200, Canon C100mk2, Zoom H2n.

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], IsraEliteMedia, Mads Johansen, Mbeare, Nils-does-things, panos_mts and 247 guests