{"id":6724,"date":"2020-05-05T11:06:13","date_gmt":"2020-05-05T11:06:13","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=6724"},"modified":"2024-04-28T15:15:34","modified_gmt":"2024-04-28T15:15:34","slug":"video-compression","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=6724","title":{"rendered":"Video compression"},"content":{"rendered":"<p>Video compressing normally happens directly by the codec itself. It is realized based on two main strategies. They are called Intraframe and Interframe. If you compress too much, you will see artifacts.<\/p>\n<hr>\n<p><strong>Intraframe (Spatial)<\/strong><br \/>\nThe Intraframe compression gets handled witin every frames itself. It looks for redundancy and creates blocks out of it. It works a little bit like JPEG.<\/p>\n<hr>\n<p><strong>Interframe (Temporal)<\/strong><br \/>\nThe Interframe compression gets handled over serveral frames. The trick is the usage of different types of frames. Most frames just contain the delta to remove redundancy.<\/p>\n<p><u>Typical structure<\/u><\/p>\n<pre>\r\n        \/------------------ ----\\                       \/------\r\n  ----\\ | \/-----\\\/------------\\ | \/-----\\\/------------\\ | \/----\r\n      \u2193 \u2193 \u2193      |            \u2193 | \u2193      |            \u2193 \u2193 \u2193\r\n...  I-Frame B-Frame B-Frame P-Frame B-Frame B-Frame I-Frame ...\r\n       \u2191 \u2191               |     \u2191 \u2191               |     \u2191 \u2191\r\n  -----\/ \\--------------\/\\-----\/ \\--------------\/\\-----\/ \\-----\r\n<\/pre>\n<table>\n<col style=\"width:35%\">\n<col style=\"width:65%\">\n<tr>\n<th>Frame type<\/th>\n<th>Contains<\/th>\n<\/tr>\n<tr>\n<td>I (Intra)<\/td>\n<td>The whole information of the frame<\/td>\n<\/tr>\n<tr>\n<td>P (Predicted)<\/td>\n<td>Delta towards the I-\/P-Frame in front of it<\/td>\n<\/tr>\n<tr>\n<td>B (Bi-directional predicted)<\/td>\n<td>Delta towards the I-\/P-Frame in front and behind of it<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Video compressing normally happens directly by the codec itself. It is realized based on two main strategies. They are called<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[45],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/6724"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6724"}],"version-history":[{"count":3,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/6724\/revisions"}],"predecessor-version":[{"id":17536,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/6724\/revisions\/17536"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6724"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}