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.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th May 2022, 13:01   #1  |  Link
iKron
Registered User
 
Join Date: May 2021
Posts: 16
1080p vs 2160p which source should we use for encoding

lets say 1080p x264 file size is 3GB and 2160p x265 file size is 6GB. i know it's kind of foolish question because both file has different encode settings and codec. but in general which source should i use if i want to use for encode in x265 1080p resolution?

is there any common rule like if a x264 1080p size is X, then normally A x265 2160p size will be preferably Y? in terms of math calculation. not going for encode settings etc.

Last edited by iKron; 14th May 2022 at 13:07.
iKron is offline   Reply With Quote
Old 14th May 2022, 18:23   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Quote:
.. in general which source should i use if i want to use for encode in x265 1080p resolution?
Whatever source looks better.
Quote:
is there any common rule like if a x264 1080p size is X, then normally A x265 2160p size will be preferably Y?
No.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 14th May 2022, 20:42   #3  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Quote:
Originally Posted by iKron View Post
lets say 1080p x264 file size is 3GB and 2160p x265 file size is 6GB. i know it's kind of foolish question because both file has different encode settings and codec. but in general which source should i use if i want to use for encode in x265 1080p resolution?
We have too little info, so I'm gonna make a few assumptions.
I assume both the FULL HD and the UHD sources are 4:2:0, but the FULL HD one is 8bit and the UHD one is 10bit planar.
Here's an interesting idea: unless you have hardware compatibility in mind (i.e BD players etc), you can do the following

Step A) Index the 3840x2160 4:2:0 UHD 10bit source in Avisynth

Step B) Downscale the luma to 1920x1080 but leave the chroma as it is (given that it's 4:2:0 it will be 1920x1080)

Step C) Merge the downscaled luma with the original chroma

Step D) Encode with x265 to get a glorious FULL HD 10bit 4:4:4 with full chroma resolution.

You're welcome




EDIT: Not my best script, but assuming the UHD source is BT709 SDR

Quote:
UHD 4:2:0 yv12 planar to FULL HD 4:4:4 yv24
### You need to take care of chroma alignment yourself!! ###
### For 4:2:0 MPEG-2 classic top-left src_left=-0.50, src_top=0 ###

Y = ConvertToY8(matrix="Rec709").SincResize(1920, 1080, src_left=-0.50, src_top=0)
U = UToY8()
V = VToY8()
YToUV(U, V, Y)

Last edited by FranceBB; 14th May 2022 at 20:50.
FranceBB is offline   Reply With Quote
Old 15th May 2022, 09:24   #4  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,309
I suggest instead the following for high bits :
Code:
video= "your source filter High bit depth 4:2:0"
Y=PlaneToY(video,"Y").SincResize(1920, 1080, src_left=-0.50, src_top=0)
U=PlaneToY(video,"U")
V=PlaneToY(video,"V")
YtoUV(U,V,Y)
__________________
My github.
jpsdr is offline   Reply With Quote
Old 16th May 2022, 22:20   #5  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,752
That said, 4:4:4 chroma isn't really going to make a visible difference in natural continuous-tone images. It's most useful for things like screen recordings and highly saturated text with tapered serifs.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 17th May 2022, 01:19   #6  |  Link
RanmaCanada
Registered User
 
Join Date: May 2009
Posts: 328
Leave them both as is, because if they are more than an hour long, they are seriously bitstarved.
RanmaCanada is offline   Reply With Quote
Old 17th May 2022, 06:07   #7  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Quote:
Originally Posted by benwaggoner View Post
That said, 4:4:4 chroma isn't really going to make a visible difference in natural continuous-tone images.
Well but it's nice to have for free given that he's gonna downscale to FULL HD anyway and that monitors are RGB so the chroma must match luma anyway and this way it won't be downscaled in encoding and upscaled in playback but it will stay as is instead. That being said, call me crazy but while modern TVs do their fair share of processing with fairly good chroma upscaling on live feeds, when I'm watching something live on my computer and I can't go through a proper player and I have to rather use a browser like chrome (BBC iPlayer, ITV Hub, All 4, 5 USA, CBS etc) chroma is upscaled with point resize / nearest neighbour and I can see it, especially on red surfaces.
FranceBB is offline   Reply With Quote
Old 17th May 2022, 09:08   #8  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
I think that a bigger problem with chroma is that x265 destroys the red component, no matter if you use a heavily negative QP offset or whatever. I guess it does the same to blue as well but it's much more difficult to see.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 26th July 2022, 14:59   #9  |  Link
SaurusX
Registered User
 
Join Date: Feb 2017
Posts: 134
Quote:
Originally Posted by Boulder View Post
I think that a bigger problem with chroma is that x265 destroys the red component, no matter if you use a heavily negative QP offset or whatever. I guess it does the same to blue as well but it's much more difficult to see.
Why is this true? I've noticed that when encoding some 1080p material in x265 the red chroma is extremely aliased. I thought I was doing something wrong, but is this just something to be expected if using x265?
SaurusX is offline   Reply With Quote
Old 27th July 2022, 10:45   #10  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
This is an old problem with x265 and cannot be avoided. I doubt it will ever be fixed since the project has been inactive for so long already.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 27th July 2022, 11:30   #11  |  Link
Forteen88
Herr
 
Join Date: Apr 2009
Location: North Europe
Posts: 556
Quote:
Originally Posted by Boulder View Post
This is an old problem with x265 and cannot be avoided. I doubt it will ever be fixed since the project has been inactive for so long already.
So is MainConcept's HEVC/H.265 encoder better? It got a better score at MSU's test.

Last edited by Forteen88; 27th July 2022 at 11:33.
Forteen88 is offline   Reply With Quote
Old 27th July 2022, 11:49   #12  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,843
Ateme may be better.
kolak is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.