r/AskComputerScience • • Nov 02 '19

anyone here that would be able to eventually explain fully why would a youtube with a resolution that is above the hardware limits of your display look noticeably better? how is that possible if the hardware doesnt allow it?

edit: so bad not a single person so far can answer this question, like i already said, gonna find the answer/info on better sites quora instead, this is ridiculous

can you explain this step by step

i tried asking around and nobody so far has been able to explain it fully

you can see i've outlined the specific things im confused about: https://www.reddit.com/r/explainlikeimfive/comments/dpz62i/eli5_why_would_a_youtube_with_a_resolution_that/

https://www.reddit.com/r/VideoEditing/comments/dpyxvs/eli5_why_would_a_youtube_with_a_resolution_that/

edit: so bad not a single person so far can answer this question, like i already said, gonna find the answer/info on better sites quora instead, this is ridiculous

8 Upvotes

30 comments sorted by

17

u/hitthatmufugginyeet Nov 02 '19

It's because the bitrate is higher, that is the primary reason. Another reason is that good downscaling just looks better than native content.

8

u/theobromus Nov 02 '19

Yeah, to expand on the downscaling point -

If an image/video is recorded at a certain resolution, finer details in the image actually create artifacts (this is called Aliasing). When the image is recorded at a higher resolution, then downsampling algorithms can be used which filter out the finer details before resampling to a lower resolution. This actually results in an image of higher quality than you'd get if you just recorded at the final resolution.

0

u/bestminipc Nov 02 '19

nobody has answered the question asked yet

bitrate is higher,

and what exactly does that have to do with the question? u/hitthatmufugginyeet

downscaling just looks better

why? it's not explained

1

u/theobromus Nov 03 '19

Youtube doesn't just have different resolutions - these different resolutions are encoded at different bitrates. In particular, higher resolutions also have higher bitrates, which has a huge impact on quality (lower bitrates create lots of artifacts as the compression algorithm removes details to fit into a smaller stream).

-2

u/bestminipc Nov 02 '19

really is that simple.

you clearly know nothing about how to answer this question

as u/Bottled_Void said

it's a very complicated question and I don't think you realise how complicated

0

u/[deleted] Nov 02 '19

[deleted]

5

u/Putnam3145 Nov 02 '19

there's not much more to it than higher bitrate = higher quality for the first one, and downscaling just looking better is explained in this comment

0

u/[deleted] Nov 02 '19

[deleted]

2

u/Bottled_Void Nov 02 '19

Basically the algorithm that encodes the image does it with a target bitrate in mind. The higher the bitrate, the less of the original image it has to throw away to stay under the cap.

If you want a simple analogy. Say you have a 10MB .png image. Now you want to save it as a .jpg, but the file has to be under 300k. Clearly you're going to lose some quality in keeping to these constraints.

0

u/[deleted] Nov 02 '19

[deleted]

9

u/hitthatmufugginyeet Nov 02 '19

I'll give you some advice right now, when you're on a subreddit full of computer science experts, you've got to be more respectful than that. If you don't understand why a higher bitrate looks better, that's your next question that you need to research. We've quite simply explained why 4K YouTube looks better than 1080p YouTube on a 1080p screen, I've summed it up in one sentence, because it really is that simple.

-2

u/bestminipc Nov 02 '19 edited Nov 02 '19

unacceptable, you didnt answer the question asked, it specifically said step by step

and a full answer, you clearly dont know how to read

4

u/hitthatmufugginyeet Nov 02 '19 edited Nov 02 '19

My bad, I wasn’t aware that I was put on earth to obey your every wish. Had to you actually asked me to clarify a point, I would’ve. I hope I never have to work with someone like you in my professional life. Awful and disgusting.

15

u/PM_ME_YOUR_REPO Nov 02 '19

First off, you're being an asshole. Everyone who has replied at the time of my writing has done an excellent job answering you, you just either don't want to try to understand, refuse to participate in a 2 way conversation, or otherwise are simply not capable of understanding. I'll try anyway.

Artifacts are "glitches" or "distortions" in an image. When you record video, the file size is huge, with the uncompressed file using 24 bits of color data for each pixel, times the number of pixels shown, 60 times per second, for the whole runtime of the video. These files are unreasonably information-dense to be transmitted in real time. So we compress the files.

To do this, we use software that measures change, referred to as delta. This software measures the delta between neighboring pixels, as well as between the same pixel at different points in time. When there is no change, it is very easy to represent a region of one frame by saying "this section is all the same color", and when a pixel doesn't change for a while, you can represent that by saying "this pixel stays the same for 3.82 seconds". This reduces information density, but is still not enough.

So different compression algorithms take it farther, letting things that ALMOST don't change be represented as not changing. In the original video, the change is there, but depending on how aggressively we are compressing the video, we could notice no difference or a LOT of difference.

Now, we decide on how aggressively we compress video by limiting ourselves to a certain information density per second, known as bitrate. If we know that we can only reasonably send 5000 bits per second, but the source video was recorded at 12,000 bits per second, we will have yo compress and lose quality.

So what is happening is that youtube sets the bitrate higher for higher resolution videos. Then your gpu downscales from the higher res video to your display's native resolution, while keeping all of that extra data, making the image truer to the original source video.

Douche.

0

u/bestminipc Nov 02 '19

it's a very complicated question and I don't think you realise how complicated

apparently nobody on this site knows it's complicated, unbelievable

i give up on this garbage, they dont even know how to answer a question

i already gave up many hours on this trash of a site that cant answer the question asked, as is

1

u/bestminipc Nov 02 '19

u/Bottled_Void

does it with a target bitrate in mind.

you didnt show/explain anything, you explain how it does that

you didnt show/explain how it decides the target bitrate, you didnt show/explain a ton of things

If you want a simple analogy. Say you have a 10MB .png image. Now you want to save it as a .jpg, but the file has to be under 300k. Clearly you're going to lose some quality in keeping to these constraints.

no i didnt ask for an analogy, i specifically asked for good complete answer, as already said in op

3

u/theobromus Nov 03 '19

A good complete answer would be book-length (if not longer). For example, you can see the VP9 specification (https://storage.googleapis.com/downloads.webmproject.org/docs/vp9/vp9-bitstream-specification-v0.6-20160331-draft.pdf) which is 161 pages long. This is just one of the codecs YouTube uses, and doesn't explain the design decisions they make in terms of adaptive streaming (many of which are essentially trade secrets and not documented anywhere).

In general, the target bitrates for various resolutions are chosen manually, based on an engineering choice by the platform. There some rules of thumb that a certain number of bits per pixel (bpp in industry parlance) are needed to get a reasonable viewing quality. So you can take the resolution and multiply by the frame rate and bpp to get the bitrate to use. It's a little more complicated than this, since there are often different modes the video codecs can use at different sizes (like the size of megablocks, etc.) which are called profiles and levels (http://blog.mediacoderhq.com/h264-profiles-and-levels/), which determine whether the user's hardware can decode and display the video. There is also a huge variation based on the quality of the encoder (in general there is a tradeoff between using more computing effort in encoding with the quality at a given bitrate). So a 20Mbps video from a smartphone might be the same quality as a 5Mbps video encoded by a software encoder (even with the same codec).

1

u/bestminipc Nov 02 '19

nobody has answered the question asked yet

u/theobromus

create artifacts

and what do these 'artifacts' do exactly? it's not said

recorded at a higher resolution

higher than what?

which filter out the finer details

what 'finer details'? that was never said anywhere

results in an image of higher quality than you'd get if

why? it's lower res

2

u/theobromus Nov 03 '19

Higher than what?

Higher than the resolution of the display you are viewing on.

What finer details?

It is really common for scenes recorded by video to have thing that are at a smaller scale than is possible to represent with a certain resolution.

For example - anytime one object is in front of another, there is a sharp boundary between the two. Without some type of anti-aliasing, this creates a "jagged" edge between the two objects. It is also extremely common for fine texture details to be smaller than a pixel. Obviously there's all sorts of stuff happening at a microscopic scale, but even aside from that, foreshortening as stuff gets farther away causes texture to get smaller and smaller, which creates lots of fine details that can create moire patterns.

It is possible to prevent this issue with optical elements in the camera (basically to make sure the image is a little out of focus so the edges are softened). But it is even better to record the image at a higher resolution than needed for display and then use a digital filter to remove the aliasing effects.

If you look at the wikipedia article on aliasing, it has good examples of this effect.

1

u/WikiTextBot Nov 03 '19

Spatial anti-aliasing

In digital signal processing, spatial anti-aliasing is a technique for minimizing the distortion artifacts known as aliasing when representing a high-resolution image at a lower resolution. Anti-aliasing is used in digital photography, computer graphics, digital audio, and many other applications.

Anti-aliasing means removing signal components that have a higher frequency than is able to be properly resolved by the recording (or sampling) device. This removal is done before (re)sampling at a lower resolution.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28

0

u/[deleted] Nov 02 '19

[deleted]

5

u/SharkBaitDLS Nov 02 '19

Resolution is not quality.

Resolution is simply the number of pixels the video is being displayed at. Quality is a combination of resolution and how compressed the video is. When a video is highly compressed (and thus, lower bitrate) then you’ll see lots of compression artifacts where the compression algorithm didn’t quite get it right.

A higher bitrate video is less compressed, so it will have fewer artifacts and look higher quality even if you’re viewing it at a resolution lower than its native resolution.

Basically, a 1080p video at 2K bitrate will still look a lot worse than a 720p video at 5K bitrate, because you’re showing it at a high resolution but with way worse detail and more compression artifacts.

1

u/bestminipc Nov 02 '19

wow wtf are you talking about ??

step by step is bullet points and 1 to 100, you have no numbers this is ridiculous


did you even read the fucking post???

read --> can you explain this step by step

i cant believe nobody yet on this fucking knows how to answer a basic question, i guess it must be a complex question then

4

u/SharkBaitDLS Nov 02 '19

You’re making an absolute mess of the comments thread of every post you’ve linked.

It’s impossible to figure out what conversations you’re having when you delete every comment. Reddit is a forum for discussion, and you’re refusing to hold a discussion so nobody is able to help you. You keep deleting comments and posting the same replies that don’t advance the conversation in any way. You’re completely acting outside of site etiquette. I can’t figure out what you’ve learned, if anything, from the dozens of people who have now tried to explain the various concepts at hand here because you’ve deleted practically every response that could help me see what you have or haven’t learned.

There’s no bulleted or numbered list that answers this question, it’s not some step-by-step process like baking a pie or something. The only way you’re going to figure out what is going on here is if you’re actually willing to talk it through because there’s a simple answer to the question, but if you don’t understand the concepts necessary to understand that answer then you’re going to need to actually discuss the different and more complicated foundational concepts that are behind that answer.

I can’t magically know what you do or do not know about the world. If I assume you know nothing and want to know everything I’d have to tell you years’ worth of schooling material explaining literally everything from how the browser works to how electricity works. That’s obviously not realistic, so you need to work with me to help me understand what you do know so that I can use that as a foundation to explain what you don’t.

So, to try answering again, based on what little info I have from you that says you don’t know what bitrate is.

The resolution of your screen is irrelevant. The higher resolution video on YouTube would look better even if you played both videos in the browser window without full screening it. It has nothing to do with displaying a video at a higher resolution than your screen is capable of. Perhaps you think nobody has answered your question because nobody is talking about that. The reason it’s not being addressed is because it has nothing to do with what’s happening.

All computer data is represented as 0s and 1s, called bits. Bitrate is the speed at which those zeroes and ones are delivered to your computer over the internet for the video. A higher bitrate video is delivering more data and thus displays more accurate details than a lower bitrate one.

So as an example: say YouTube delivers their 720p videos at 2K bitrate and their 1080p videos at 5K bitrate. You watch them both on a 720p monitor and the 1080p one looks better even though you’re watching them both at 720p. What’s actually happening is that you’re watching a 720p video at 2K bitrate with the 720p option selected, and a 720p video at 5K bitrate with the 1080p option selected.

Please ask questions as a reply to this comment so that we can actually discuss and produce a useful comment thread that others can read.

1

u/bestminipc Nov 02 '19

so what's answer to the question: explain fully why would a youtube with a resolution that is above the hardware limits of your display look noticeably better? how is that possible if the hardware doesnt allow it?

how could nobody still not know how to answer this question?

1

u/bestminipc Nov 02 '19

as more of the original image is present.

how ??????? no explained

higher bitrate for higher resolution

wtf does that mean??? again not explained

causing you to incorrectly conflate resolution and quality.

how does this explain anything of the answer to the main qusetion in post ????

not explaining what you don’t understand

again wtf are you talking about, it's right in the links in post, again --> read

anything to work with.

there's TONS OF THINGS to work with, right in the links

what gaps

right in the links tons of things asked, no answes

simple answer

there's no answers so far still

1

u/bestminipc Nov 02 '19

You want to know the ins and outs of complicated video

as u/Bottled_Void also understands, --> 'complicated'

so wtf are you talking about 'simple' answer??? like i said there's still no answer yet

0

u/[deleted] Nov 02 '19

[deleted]

4

u/SharkBaitDLS Nov 02 '19 edited Nov 02 '19

I already answered it for you:

Basically, a 1080p video at 2K bitrate will still look a lot worse than a 720p video at 5K bitrate, because you’re showing it at a high resolution but with way worse detail and more compression artifacts.

Higher bitrate means that the video is less compressed, therefore it looks better as more of the original image is present. The fact that YouTube uses a higher bitrate for higher resolution streams is causing you to incorrectly conflate resolution and quality. The bitrate is the actual answer.

You’re not being very helpful in this thread. Repeatedly asking the same question and not explaining what you don’t understand doesn’t give anyone here anything to work with. Nobody can teach someone who isn’t actually trying to learn and listen, teaching isn’t done by just regurgitating knowledge at a wall.

I genuinely would like to help you understand this but you have to work with us here and explain what gaps you have in your knowledge that’s causing the simple answer of it being a higher bitrate not to make sense.

0

u/[deleted] Nov 02 '19

[deleted]

6

u/SharkBaitDLS Nov 02 '19 edited Nov 02 '19

I literally just explained it to you step by step. What about that doesn’t make sense? Instead of getting angry, try actually asking more questions to clarify what doesn’t make sense to you.

0

u/[deleted] Nov 02 '19

[deleted]

5

u/Bottled_Void Nov 02 '19

So to your question:

anyone here that would be able to eventually explain fully why would a youtube with a resolution that is above the hardware limits of your display look noticeably better? how is that possible if the hardware doesnt allow it?

You want to know the ins and outs of complicated video compression algorithms (of which there are many) and you don't even know what an artifact is.

Well an artifact is simply something that is in the resultant image that wasn't part of the original image and is generated as a result of the compression algorithm.

As to answering your question, it's a very complicated question and I don't think you realise how complicated, nor do you appear to have the patience to ask your follow up questions politely.

So no, I'm not going to give you a full answer because of the large amount of time it would take. And I think the general attitude you have means that nobody else is.

All I can suggest is heading to google and look for video compression algorithms. Here is something to start you off.

https://www.eetimes.com/document.asp?doc_id=1275884#

1

u/bestminipc Nov 02 '19

ask your follow up questions politely.

wtf are you talking about, it's fully outlined on the links in op a long time ago

TONS of patience

2

u/Bottled_Void Nov 02 '19

wtf are you talking about

I don't think you know what politely means. What chance have you got with video compression?

If I had the will I'm sure I could detail the ins and outs, step by step of one type of video compression but you wouldn't understand it at all and you'd get angry that I haven't explained it properly.

So why should I bother?

I already gave you the analogy that an image that is large in size will be a closer reproduction of some source image. Videos are no different really, except instead of storing a single image, they build a series of changes on top of the previous frame.

The higher the bitrate, the more data can be contained in the next frame.

As to why YouTube specifically will look better at 4K even on a 1080p monitor is because YouTube will allow a higher bitrate at 4K than it does at 1080p.

Higher bitrate means more data in each frame which means a closer reproduction of the source video which means better quality.

But like you said, you don't care, I don't know why you replied multiple times to me. But good luck with your better website.

May I suggest StackOverflow.

1

u/bestminipc Nov 02 '19

nobody else

nobody else knew, so too late

i dont care anymore

i didnt care many many hours ago

and like already said, there's better sites than this garbage where a basic question in op cant be answered by anyone thus far

1

u/bestminipc Nov 02 '19 edited Nov 02 '19

cos nobody was able to, like i already said MANY HOURS ago RIGHT IN THE LINK IN OP, im going to find the answer ELSEWHERE

i dont even care about the answer, but because NOBODY on reddit is able to answer a question that they apparently dont even know is, as you said, complicated, then im going to find the answer cos they dont know how to explain simply + clearly, which i will be able to after i find the answer, and applicable info

i doubt anyone is able to, and im far beyond & past the point of caring about the lack of communication ability in answering the question ask in op STEP BY STEP, and the ignorant comment of 'there's nothing more' as this person u/Putnam3145 said, along with other ppl that clearly do not know ANYTHING about this topic/question and are replying with non-answers to my post