Video Compression as Fast As Possible

Video Compression as Fast As Possible

Hi, this is Wayne again with a topic “Video Compression as Fast As Possible”.
Video compression is a very important aspect of how video streaming websites like YouTube, Netflix and Hulu work. Without it, you wouldn’t be able to stream such high quality high frame videos like this one. First, some math, let’s say you’re, watching a video with a resolution of 1920 by 1080 pixels, that’s like 2 million pixels per frame and in this case you’ve got 30 frames per. Second, that’s a whopping 62 million pixels per second.

If each pixel needs 24 bits or 3 bytes of information you’re looking at 178 megabytes of data per second completely uncompressed, that would be 51 gigabytes of information for a single 5-minute. Video we’ve got pretty fast internet here the office, but even we can only download like two and a half gigabytes in five minutes. That’S a long ways away from 51.

Fortunately, a five minute high-definition YouTube. Video is not 51 gigabytes. It’S in fact more. Like 72 megabytes, that’s like 700 times smaller. How did they do that? That’S the magic of video compression, which works mostly by minimizing redundancy in the video data. Now there are all sorts of different ways to compress video and lots of different video containers and codecs, but I won’t go into detail about that because lattice already covered it in this episode and frankly, I still don’t really understand at all, even though I am employed As a video editor, so don’t tell Linus so here’s what you need to know.

Video Compression as Fast As Possible

There are two ways to compress video spatial compression and temporal compression, also known as intra frame and inter frame, respectively seriously, who names this stuff anyway, I’m going to describe each of these in terms of the JPEG image format and the MPEG video format, spatial or interframe Compression is applied only to individual video frames to compress a video frame. You can use the same process. That’S used to compress a still image like a JPEG when a JPEG is created, color information of the image is reduced in a process called chroma subsampling, and then the image is split into sections of 8 by 8 pixels called macro blocks.

Then all of this fancy stuff is done to these blocks to further reduce the file size. It’S easy to see this effect on an image that has been saved with a high amount of compression all those ugly looking squares are known as compression artifacts. Some images like this red square can be compressed more than others like this complicated photograph, because the red square is very simple, with a lot more redundancy, but that’s how a JPEG uses spatial compression now for an MPEG sometimes called a motion.

Jpeg things are a bit more complicated than just lining up a whole bunch of JPEGs one after the other to be used as video frames doing it. That way would not allow for, inter frame or temporal compression temporal compression works again by reducing redundancy. If you go through a video like this one frame by frame you’ll notice, that many frames are almost completely identical, that’s redundancy, which can be easily compressed, for example, for all the parts of this video that don’t need to change from one frame to the next. Like all this whiteness around me, all we need is an instruction for those parts of the frame which says: don’t change anything like JPEG.

The MPEG standard breaks, a video frame into 8×8 pixel macro blocks, and each macro block receives instructions on what to do with pixels. They already have, there are instructions for staying exactly the same, for moving rotating, changing color, changing completely and so on. Video frames with instructions like this are called keyframes and they use about half as much data as an iframe, which is pretty much just a JPEG.

There are also B frames which are predictions or interpolations between I and P frames B frames use a quarter as much data as an iframe, so they really save a lot of space. This is all pretty easy to see on a video file that has been saved in an extremely low quality, setting like what you’re seeing right now again, all these awful square thingies are called compression artifacts. Furthermore, sometimes a video file will be corrupted or missing some data. When that happens, you get an effect like this one. This particular effect is caused by a missing iframe, which would have cleared away the old image to make room for a new one without the iframe.

The list of changes in the following B and P frames are applied to the wrong image. So now you know why a video sometimes looks weird. It gets all blocky.

Those artifacts are a result of the video compression being either too high, or else some kind of error in the coding or transmission of the video data. Now listen. If none of that made any sense, everything I’ve said can be broken down to one thing: bitrate the bitrate is the amount of data or bits that are being used every second.

If a video has a low bitrate, it will be low resolution and/or low quality, with lots of compression artifacts. If a video has a high bitrate, it will be high quality, and/or high resolution. So the more bits you have to work with the better, the video will look, there’s just no getting around that, even with the best compression methods. Video compression is a balancing act between a good-looking video or a small file size. You can’t have both, but if compromise is not your style, maybe you’ll like fractal design, now, I’m sure you’ve all grown accustomed to embarrassing torturous events happening to line us in these spots. Let’S look at them now behind in this manner. Blinking of moon, fractal design is back buying up all of my advertising inventory where I was a little nervous about doing this ad. I am, however, relieved to say that josh has granted me a reprieve. I guess Linus is the one he wants to torture, so we’re using this spot to thank all of you, the viewers who went to the survey page and responded so positively to our previous fractal design as on fast as possible that they’ve decided to continue sponsoring this Show so, thanks to you guys and thanks to fractal design, the company, whose cases power supplies and fans bring all of the boys to all of the yards, be sure to check back over the next few weeks to learn just what that reference might mean. Thanks for watching this episode of fast as possible, give us a like or a dislike leave a comment subscribe.

Video Compression as Fast As Possible

Do it subscribe and we’ll see you next time, .