Video Compression

VideoNerd

The python script GetAVCSliceInfo.py  (python 2x) is tailored to determine how many slices are present in the video stream and what are the heights of each slice.
The script processes the first video sample in the input mp4-file and prints number of slices and the height in MBs of each slice ( if the number of slices and theirs geometry is changed across video frames it’s beyond this script yet). Moreover, some additional info is also printed.
 
Usage:
python GetAVCSliceInfo.py    mp4-file
Example:

 python GetAVCSliceInfo.py   test.mp4

video trak number 0
Num of descriptors 1

avc video found, avc1-box content:
resolution 3072×2688
configuration version 0x1
profile_idc (declared in avcC-box) 0x64 (100)
profile_compatibility 0x0 (0)
AVC Level (declared in avcC-box) 0x33 (51)
nal lengthSize   4

Sequence Header (SPS):
profile_idc            100
level                 51
sps_id                0
chroma_format_idc 1
bit_depth_luma 8,  bit_depth_chroma 8
max_num_ref_frames    1
mb_width   192,   mb_height   168

total number of video samples     595

number of slices    4
slice 0,   height     42
slice 1,   height     42
slice 2,   height     42
slice 3,   height     42

16 Responses

  1. hello!,I like your writing so much! percentage we be in contact more approximately your post on AOL? I require an expert on this area to unravel my problem. May be that is you! Having a look forward to see you.

  2. Having read this I thought it was very informative. I appreciate you taking the time and effort to put this article together. I once again find myself spending way to much time both reading and commenting. But so what, it was still worth it!

  3. Thanks for sharing excellent informations. Your web site is so cool. I’m impressed by the details that you have on this blog. It reveals how nicely you understand this subject. Bookmarked this web page, will come back for extra articles. You, my friend, ROCK! I found just the info I already searched everywhere and simply couldn’t come across. What an ideal website.

  4. This blog is definitely rather handy since I’m at the moment creating an internet floral website – although I am only starting out therefore it’s really fairly small, nothing like this site. Can link to a few of the posts here as they are quite. Thanks much. Zoey Olsen

  5. I have been exploring for a little for any high quality articles or blog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this web site. Reading this info So i’m happy to convey that I have an incredibly good uncanny feeling I discovered exactly what I needed. I most certainly will make certain to don’t forget this website and give it a look on a constant basis.

Leave a Reply

Your email address will not be published. Required fields are marked *