Skip to main content

How video compression works

Video compression is about reducing and removing redundant video data so that a digital video file can be effectively sent and stored. The process involves applying an algorithm to the source video to create a compressed file that is ready for transmission or storage. To play the compressed file, an inverse algorithm is applied to produce a video that shows virtually the same content as the original source video. The time it takes to compress, send, decompress and display a file is called latency. The more advanced the compression algorithm, the higher the latency, given the same processing power. A pair of algorithms that works together is called a video codec (encoder/decoder). Video codecs that implement different standards are normally not compatible with each other; that is, video content that is compressed using one standard cannot be decompressed with a different standard. For instance, an MPEG-4 Part 2 decoder will not work with an H.264 encoder. This is simply because one algorithm cannot correctly decode the output from another algorithm but it is possible to implement many different algorithms in the same software or hardware, which would then enable multiple formats to be compressed. Different video compression standards utilize different methods of reducing data, and hence, results differ in bit rate, quality and latency. Results from encoders that use the same compression standard may also vary because the designer of an encoder can choose to implement different sets of tools defined by a standard. As long as the output of an encoder conforms to a standard’s format and decoder, it is possible to make different implementations. This is advantageous because different implementations have different goals and budget. Professional non-real-time software encoders for mastering optical media should have the option of being able to deliver better encoded video than a real-time hardware encoder for video conferencing that is integrated in a hand-held device. A given standard, therefore, cannot guarantee a given bit rate or quality. Furthermore, the performance of a standard cannot be properly compared with other standards, or even other implementations of the same standard, without first defining how it is implemented. A decoder, unlike an encoder, must implement all the required parts of a standard in order to decode a compliant bit stream. This is because a standard specifies exactly how a decompression algorithm should restore every bit of a compressed video. The graph below provides a bit rate comparison, given the same level of image quality, among the following video standards: Motion JPEG, MPEG-4 Part 2 (no motion compensation), MPEG-4 Part 2 (with motion compensation) and H.264 (baseline profile).


Image source : www.axis.com

Comments

Popular posts from this blog

Video format explained and compared

 This article explains main video formats and later compares with photos the quality. Audio Video Interleave (.avi) Developed by Microsoft and released with Windows 3.1 way back when false teeth were still made out of wood, AVI files have been a work horse of digital video. Although its popularity has been waning, lots of legacy video in AVI can be found all over the web. More recently, AVI has been abandoned for Microsoft's WMV (Windows Media Video). One of the most maddening things about AVI today is that the format doesn't allow for specifying an aspect ratio, so a 16:9 AVI video may start displaying at 4:3 - this is less of a problem if your player allows you to manually select aspect ratios. If you're watching in the non-pro version of QuickTime though, you'll have to learn to live with people being unusually narrow. Advanced Systems Format (.asf) ASF is a proprietary Microsoft container that usually houses files compressed with Microsoft's ...

After Effects Alternative

Pro editing. Superpowered visual effects. Next-generation films. Editing Trim, ripple, roll and slice everything from feature-length films to 30 second YouTube videos, with HitFilm Pro’s industry standard editing software. Create 3D title sequences for your sci-fi thriller, distort action cam footage and get a hi-res second monitor preview of your work. Editor Get that rough cut looking sharp with HitFilm Pro’s dedicated editing trimmer, customizable workspace and shot-transition features. You can mix different formats, resolutions, framerates all on the same timeline and quickly import and organize your footage. Auto sync Tired of turning your characters into ventriloquists? With the much-requested audio auto-sync feature, your DSLR scratch audio will automatically synchronize with your files from a dedicated audio recorder. No more awkward sound delays. 3D titling Draw your audience in with 3D title sequences and stunning lower thir...

MPEG 2 vs H264 vs H265

As time moves away,  compression techniques are created.  As a beginning we all have seen an AVI movie about 2 hours and equal to 30-40 GB. After that nee techniques were invented with a main reason : Same quality, less storage.  MPEG group created  some compression  standarts like MPEG1,2 and 4 but MPEG 2 became really  important and is being used in many devices.  What about H264 and H265? Well,  the quality is the same but they use less memory in your disk,  H265 < H264 < MPEG 2. But, is H265 worth? Well the simpliest answer is you but rembere : the higher the compression the higher the export time is. So if you have a powerfull computer use it. But  H265 is new and it is not tested in some devices. The good news is that google supports H265. This format is the greatest solution for youtube videos. Photo from : https://www.linkedin.com/pulse/future-video-encoding-h265-vs-h264-security-system-depot