Page 1 of 1

Video compression

PostPosted: Fri Jun 09, 2023 1:14 pm
by Torchhole
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

Re: VIDEO COMPRESSION

PostPosted: Fri Jun 09, 2023 11:38 pm
by Sean Nelson
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.

Re: VIDEO COMPRESSION

PostPosted: Sat Jun 10, 2023 12:44 am
by Uli Plank
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.

Re: VIDEO COMPRESSION

PostPosted: Sat Jun 10, 2023 1:02 am
by ZRGARDNE
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

Re: VIDEO COMPRESSION

PostPosted: Sat Jun 10, 2023 1:33 am
by Nick2021
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.

Re: VIDEO COMPRESSION

PostPosted: Sat Jun 10, 2023 1:44 am
by Uli Plank
Second that.
(And please don't shout – all caps – your post is not more important than everybody's)

Re: VIDEO COMPRESSION

PostPosted: Sat Jun 10, 2023 2:48 am
by RCModelReviews
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.

Re: Video compression

PostPosted: Sat Jun 10, 2023 7:41 am
by Nick2021
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

Re: Video compression

PostPosted: Wed Jun 14, 2023 1:24 pm
by Torchhole
Thank you all for the useful information you gave me.

fp

Re: Video compression

PostPosted: Wed Jun 14, 2023 2:38 pm
by Timothy Clark
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.

Re: Video compression

PostPosted: Thu Jun 15, 2023 2:06 am
by Uli Plank
Second that, Voukoder is based on ffmpeg, just like HandBrake, but integrated.
I wish it existed for MacOS.

Re: Video compression

PostPosted: Thu Jun 15, 2023 2:57 am
by 4EvrYng
It is my understanding YT uses VP09. Also, I've heard you will get better quality when uploading in AV1.

Re: Video compression

PostPosted: Thu Jun 15, 2023 8:09 am
by ZRGARDNE
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 2510 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.

Re: Video compression

PostPosted: Thu Jun 15, 2023 4:55 pm
by 4EvrYng
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?

Re: Video compression

PostPosted: Fri Jun 16, 2023 6:58 am
by ZRGARDNE
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.

Re: Video compression

PostPosted: Fri Jun 16, 2023 9:05 pm
by 4EvrYng
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! :)

Re: Video compression

PostPosted: Sat Apr 26, 2025 12:10 am
by rb18peter
Hi, that's a good point about video compression at YouTube. I noticed that they mainly change the resolution after the video upload, and I cannot notice actual compression when comparing it to my original footage. For my personal projects, I use online video editors—it saves time. You can try this Videmix.com website I recently found for video compression.