Video compression

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

Torchhole

  • Posts: 14
  • Joined: Fri Feb 25, 2022 1:42 pm
  • Real Name: Federico Prieto

Video compression

PostFri Jun 09, 2023 1:14 pm

Good morning... when I upload a video of +/- one Gb in mp4 - h264, to youtube, for example, and then I download it from there, this video with the same specifications can have a much smaller size but visually with the same quality as the one I uploaded.

When I try to compress the original 1gb to a similar size to the one downloaded from youtube I only get very poor quality results.

Does anyone here know what is the "recipe" youtube uses to compress a lot with optimal quality?

Any recomendation about?

Very warm regards

Federico
Offline
User avatar

Sean Nelson

  • Posts: 758
  • Joined: Sun Feb 07, 2021 9:48 pm
  • Location: Vancouver, Canada
  • Real Name: Sean Nelson

Re: VIDEO COMPRESSION

PostFri Jun 09, 2023 11:38 pm

Torchhole wrote:Good morning... when I upload a video of +/- one Gb in mp4 - h264, to youtube, for example, and then I download it from there, this video with the same specifications can have a much smaller size but visually with the same quality as the one I uploaded.

I'm neither a YouTube nor codec expert, but I believe that YouTube uses a more efficient codec than H.264. You could try exporting your Resolve project using H.265, for example, which is quite a lot more efficient than H.264.
DR Studio 18.6.4 Build 6, Win10Pro x64 22H2/19045.3570
Asus C246 Pro Motherboard, Xeon E-2278G@3.4GHz, 64GB ECC RAM
GeForce 3060 12GB, "Studio" driver 512.15
OS,Library: 1TB NVMe SSD - Project,Cache: 1TB NVMe SSD
Offline
User avatar

Uli Plank

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

Re: VIDEO COMPRESSION

PostSat Jun 10, 2023 12:44 am

If you uploaded in higher resolution than HD, YT is using a better codec.
But from my experience, it doesn’t look better than what I can achieve with x.265 (HandBrake) at the same bitrate.
Now that the cat #19 is out of the bag, test it as much as you can and use the subforum.

Studio 18.6.6, MacOS 13.6.6, 2017 iMac, 32 GB, Radeon Pro 580
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G
Offline

ZRGARDNE

  • Posts: 697
  • Joined: Sun May 16, 2021 12:32 am
  • Real Name: Zeb Gardner

Re: VIDEO COMPRESSION

PostSat Jun 10, 2023 1:02 am

Torchhole wrote:Does anyone here know what is the "recipe" youtube uses to compress a lot with optimal quality?




h265, 4k, 60mbit for 24/30fps

https://www.reddit.com/r/videography/co ... &context=3
Offline

Nick2021

  • Posts: 760
  • Joined: Thu May 13, 2021 3:19 am
  • Real Name: Nick Zentena

Re: VIDEO COMPRESSION

PostSat Jun 10, 2023 1:33 am

Torchhole wrote:
Does anyone here know what is the "recipe" youtube uses to compress a lot with optimal quality?



Youtube doesn't really care about optimal quality. During Covid they lowered the quality even more and most people didn't even notice.

If your files look worse I'd worry more about that.
Offline
User avatar

Uli Plank

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

Re: VIDEO COMPRESSION

PostSat Jun 10, 2023 1:44 am

Second that.
(And please don't shout – all caps – your post is not more important than everybody's)
Now that the cat #19 is out of the bag, test it as much as you can and use the subforum.

Studio 18.6.6, MacOS 13.6.6, 2017 iMac, 32 GB, Radeon Pro 580
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G
Offline

RCModelReviews

  • Posts: 1234
  • Joined: Wed Jun 06, 2018 1:39 am
  • Real Name: Bruce Simpson

Re: VIDEO COMPRESSION

PostSat Jun 10, 2023 2:48 am

Nick2021 wrote: Youtube doesn't really care about optimal quality. During Covid they lowered the quality even more and most people didn't even notice.

And, interestingly/cynically they're now rolling out 1080p-Premium playback resolution which is only available to those with a YouTube Premium subscription. To create that they simply slashed the bitrate on regular 1080p streams -- which is probably the downgrade you noticed.
Resolve 18.1 Studio, Fusion 9 Studio
CPU: i7 8700, OS: Windows 10 32GB RAM, GPU: RTX3060
I'm refugee from Sony Vegas slicing video for my YouTube channels.
Offline

Nick2021

  • Posts: 760
  • Joined: Thu May 13, 2021 3:19 am
  • Real Name: Nick Zentena

Re: Video compression

PostSat Jun 10, 2023 7:41 am

I don't know about that but during Covid to stop the internet melting with everybody working from home they lowered the quality. I guess that's two years ago now. Three? Yikes. :o
Offline

Torchhole

  • Posts: 14
  • Joined: Fri Feb 25, 2022 1:42 pm
  • Real Name: Federico Prieto

Re: Video compression

PostWed Jun 14, 2023 1:24 pm

Thank you all for the useful information you gave me.

fp
Offline

Timothy Clark

  • Posts: 140
  • Joined: Sat Sep 22, 2018 7:56 pm
  • Real Name: Timothy Clark

Re: Video compression

PostWed Jun 14, 2023 2:38 pm

You'll generally bet much better results using something like Voukoder's h.264 than the built-in one Resolve has.
I get just as good results with much smaller sizes.
Offline
User avatar

Uli Plank

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

Re: Video compression

PostThu Jun 15, 2023 2:06 am

Second that, Voukoder is based on ffmpeg, just like HandBrake, but integrated.
I wish it existed for MacOS.
Now that the cat #19 is out of the bag, test it as much as you can and use the subforum.

Studio 18.6.6, MacOS 13.6.6, 2017 iMac, 32 GB, Radeon Pro 580
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G
Offline

4EvrYng

  • Posts: 651
  • Joined: Sat Feb 19, 2022 12:45 am
  • Warnings: 1
  • Real Name: Alexander Dali

Re: Video compression

PostThu Jun 15, 2023 2:57 am

It is my understanding YT uses VP09. Also, I've heard you will get better quality when uploading in AV1.
Offline

ZRGARDNE

  • Posts: 697
  • Joined: Sun May 16, 2021 12:32 am
  • Real Name: Zeb Gardner

Re: Video compression

PostThu Jun 15, 2023 8:09 am

4EvrYng wrote:It is my understanding YT uses VP09. Also, I've heard you will get better quality when uploading in AV1.


I found no significant change,

Screenshot 2023-06-15 160455.png
Screenshot 2023-06-15 160455.png (61.01 KiB) Viewed 1546 times


I have a detailed write up, but its on reddit, so not available any more. But basically I uploaded equivalent bitrates in H.265 and AV1 to YT, Downloaded the files and performed VMAF analysis of then vs what I sent

If you have a fast internet connection, just upload DNxHR HQ. No downside to AV1 if you have hardware acceleration for it. But you still need to upload 60mbit+ 4k 24fps files, so you won't save any upload speed.
Offline

4EvrYng

  • Posts: 651
  • Joined: Sat Feb 19, 2022 12:45 am
  • Warnings: 1
  • Real Name: Alexander Dali

Re: Video compression

PostThu Jun 15, 2023 4:55 pm

ZRGARDNE wrote:
4EvrYng wrote:It is my understanding YT uses VP09. Also, I've heard you will get better quality when uploading in AV1.


I found no significant change ...

Thank you for sharing that :) If memory serves me well I've watched one YT video in which he was showing clear difference with his high detailed gaming footage. Could it be that your result was due to footage you used?

ZRGARDNE wrote:If you have a fast internet connection, just upload DNxHR HQ.

What was your experience / quality differences you found when using DNxHR HQ, please?
Offline

ZRGARDNE

  • Posts: 697
  • Joined: Sun May 16, 2021 12:32 am
  • Real Name: Zeb Gardner

Re: Video compression

PostFri Jun 16, 2023 6:58 am

4EvrYng wrote:Thank you for sharing that :) If memory serves me well I've watched one YT video in which he was showing clear difference with his high detailed gaming footage. Could it be that your result was due to footage you used?


This is the footage, was intended to be challenging to compress.



4EvrYng wrote:What was your experience / quality differences you found when using DNxHR HQ, please?


The DNxHR file was VMAF score of 95.3 vs 92.3 for 84mbit AV1. I doubt a human could see this difference.

I choose to upload 60mbit h.265 encoded with Nvenc.
Offline

4EvrYng

  • Posts: 651
  • Joined: Sat Feb 19, 2022 12:45 am
  • Warnings: 1
  • Real Name: Alexander Dali

Re: Video compression

PostFri Jun 16, 2023 9:05 pm

ZRGARDNE wrote:
4EvrYng wrote:Thank you for sharing that :) If memory serves me well I've watched one YT video in which he was showing clear difference with his high detailed gaming footage. Could it be that your result was due to footage you used?


This is the footage, was intended to be challenging to compress.



4EvrYng wrote:What was your experience / quality differences you found when using DNxHR HQ, please?


The DNxHR file was VMAF score of 95.3 vs 92.3 for 84mbit AV1. I doubt a human could see this difference.

I choose to upload 60mbit h.265 encoded with Nvenc.

Thank you again! :)

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], LooseMetal, mp14mp14, panos_mts, Username and 168 guests