mirror of
https://github.com/leandromoreira/digital_video_introduction.git
synced 2026-01-09 14:38:02 -05:00
adds intra and inter predictions hands-on
This commit is contained in:
21
README.md
21
README.md
@@ -143,8 +143,25 @@ Now we have an idea about what is an **image**, how its **colors** are arranged,
|
||||
|
||||
## Temporal redundancy (inter prediction)
|
||||
|
||||
> #### Hands-on: See the motion vectors
|
||||
> We can [generate a video with the inter prediction (motion vectors) with ffmpeg.](/enconding_pratical_examples.md#generate-debug-video)
|
||||
>
|
||||
>  with ffmpeg")
|
||||
>
|
||||
> Or we can use the [Intel Video Pro Analyzer](https://software.intel.com/en-us/intel-video-pro-analyzer) (which is paid but there is a free trial version which limits you to only the first 10 frames).
|
||||
>
|
||||
> 
|
||||
|
||||
## Spatial redundancy (intra prediction)
|
||||
|
||||
> #### Hands-on: Check intra predictions
|
||||
> You can [generate a video with macro blocks and their predictions with ffmpeg.](/enconding_pratical_examples.md#generate-debug-video) Please check the ffmpeg documentation to understand the [meaning of each block color](https://trac.ffmpeg.org/wiki/Debug/MacroblocksAndMotionVectors).
|
||||
>
|
||||
>  with ffmpeg")
|
||||
>
|
||||
> Or we can use the [Intel Video Pro Analyzer](https://software.intel.com/en-us/intel-video-pro-analyzer) (which is paid but there is a free trial version which limits you to only the first 10 frames).
|
||||
>
|
||||
> 
|
||||
|
||||
# How does a video codec work?
|
||||
|
||||
@@ -182,7 +199,7 @@ The first step is to **divide the frame** into several **partitions, sub-partiti
|
||||
Usually, the CODECs organize these partitions into slices, macro and sub partitions. The max size of these partitions varies, HEVC sets 64x64 while AVC uses 16x16.
|
||||
|
||||
> ### Hands-on: Check partitions
|
||||
> We can use the [Intel Video Pro Analyzer](https://software.intel.com/en-us/intel-video-pro-analyzer) (which is paid but there is a free trial version which limits you to only the first 10 frames). Here's a [VP9 partitions](/enconding_pratical_examples.md#transcoding) analyzed.
|
||||
> We can also use the [Intel Video Pro Analyzer](https://software.intel.com/en-us/intel-video-pro-analyzer) (which is paid but there is a free trial version which limits you to only the first 10 frames). Here's a [VP9 partitions](/enconding_pratical_examples.md#transcoding) analyzed.
|
||||
>
|
||||
> 
|
||||
|
||||
@@ -397,6 +414,8 @@ The richest content is here, where all the info we saw in this text was extracte
|
||||
* https://people.xiph.org/~tterribe/pubs/lca2012/auckland/intro_to_video1.pdf
|
||||
* https://xiph.org/video/vid1.shtml
|
||||
* https://xiph.org/video/vid2.shtml
|
||||
* http://ffmpeg.org/documentation.html
|
||||
* https://trac.ffmpeg.org/wiki/Debug/MacroblocksAndMotionVectors
|
||||
* http://www.itu.int/rec/T-REC-H.264-201610-I
|
||||
* https://www.amazon.com/Understanding-Compression-Data-Modern-Developers/dp/1491961538/ref=sr_1_1?s=books&ie=UTF8&qid=1486395327&sr=1-1
|
||||
* https://www.amazon.com/H-264-Advanced-Video-Compression-Standard/dp/0470516925
|
||||
|
||||
BIN
i/inter_prediction_intel_video_pro_analyzer.png
Normal file
BIN
i/inter_prediction_intel_video_pro_analyzer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 590 KiB |
BIN
i/intra_prediction_intel_video_pro_analyzer.png
Normal file
BIN
i/intra_prediction_intel_video_pro_analyzer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 378 KiB |
BIN
i/macro_blocks_ffmpeg.png
Normal file
BIN
i/macro_blocks_ffmpeg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 418 KiB |
BIN
i/motion_vectors_ffmpeg.png
Normal file
BIN
i/motion_vectors_ffmpeg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 542 KiB |
Reference in New Issue
Block a user