Video Compression

VideoNerd

The script ParseHevcHighLevelSyntax.py is dedicated to parse hevc high-level syntax (SPS, PPS and slice headers), syntax elements are printed out as plain text.
The script is adapted to work in real time with input fifo and with frame duration latency (therefore the last frame is not processed). 
Two versions of the script supplied:
a) adapted for Python 2x
https://app.box.com/s/vr2s59olnzscpsmkb26g0t4h0pe00fyt
b) adapted for Python 3x
https://app.box.com/s/4rd1zkz61hnj0m471mbnkhka2k835bmx
Constraints:
1) VPS and SEI messages are not parsed
2)  the frame length of last frame of  is not determined
3)  HRD info is not parsed

Usage:

 -i           input hevc file (elementary stream)
-n         number frames to process, if 0 then the whole stream (default  0)
In addition there is non-commercial free HEVC Analyzer
Example [ parse the first two frames]

python ParseHevcHighLevelSyntax.py -i test.h265 -n 2

Frame    0
SPS
sps_video_parameter_set_id         0
sps_max_sub_layers                 1
sps_temporal_id_nesting_flag       1
general_profile_space              0
general_tier_flag                  0
general_profile_idc                1
general_progressive_source_flag    1
general_interlaced_source_flag     0
general_non_packed_constraint_flag 0
general_frame_only_constraint_flag 1
general_level_idc                  63
sps_seq_parameter_set_id           0
chroma_format_idc                  1
pic_width_in_luma_samples          384
pic_height_in_luma_samples         320
conformance_window_flag            0
bit_depth_luma                     8
bit_depth_chroma                   8
log2_max_pic_order_cnt_lsb         8
sps_sub_layer_ordering_info        1
sps_max_dec_pic_buffering          4
sps_num_reorder_pics               0
sps_max_latency_increase_plus1     1
log2_min_coding_block_size         3
log2_diff_max_min_coding_block_size 3
log2_min_transform_block_size      2
log2_diff_max_min_transform_block_size 3
max_transform_hierarchy_depth_inter 0
max_transform_hierarchy_depth_intra 0
scaling_list_enabled_flag          0
amp_enabled_flag                   0
sample_adaptive_offset_enabled_flag 1
pcm_enabled_flag                   0
num_short_term_ref_pic_sets        0
long_term_ref_pics_present_flag    0
sps_temporal_mvp_enable_flag       1
sps_strong_intra_smoothing_enable_flag 1
vui_parameters_present_flag        1
VUI
aspect_ratio_info_present_flag     0
overscan_info_present_flag         0
video_signal_type_present_flag     1
video_format                       5
video_full_range_flag              0
colour_description_present_flag    0
chroma_loc_info_present_flag       0
neutral_chroma_indication_flag     0
field_seq_flag                     0
frame_field_info_present_flag      0
default_display_window_flag        0
vui_timing_info_present_flag       1
vui_num_units_in_tick              1
vui_time_scale                     60
vui_poc_proportional_to_timing_flag 0
hrd_parameters_present_flag        0
bitstream_restriction_flag         0
Derived
ctu size                   64×64
number CTUs in frame       30
len_slice_segment_address  5
PPS
pps_pic_parameter_set_id               0
pps_seq_parameter_set_id               0
dependent_slice_segments_enabled_flag  0
output_flag_present_flag               0
num_extra_slice_header_bits            0
sign_data_hiding_flag                  1
cabac_init_present_flag                0
num_ref_idx_l0_default_active          1
num_ref_idx_l1_default_active          1
init_qp                                26
constrained_intra_pred_flag            0
transform_skip_enabled_flag            0
cu_qp_delta_enabled_flag               1
diff_cu_qp_delta_depth             1
pps_cb_qp_offset                         0
pps_cr_qp_offset                         0
pps_slice_chroma_qp_offsets_present_flag 0
weighted_pred_flag                       1
weighted_bipred_flag                     0
transquant_bypass_enable_flag            0
tiles_enabled_flag                       0
entropy_coding_sync_enabled_flag         0
loop_filter_across_slices_enabled_flag   1
deblocking_filter_control_present_flag   0
pps_scaling_list_data_present_flag       0
lists_modification_present_flag          0
log2_parallel_merge_level                2
slice_segment_header_extension_present_flag 0
pps_extension_flag                        0
frame length   21887
Slice 0
nal-type                                    20
first_slice_segment_in_pic_flag             1
no_output_of_prior_pics_flag                0
slice_pic_parameter_set_id                  0
slice_type (0-B, 1-P, 2-I)                  2
slice_pic_order_cnt_lsb (derived)           0
SAO params
slice_sao_luma_flag                      1
slice_sao_chroma_flag                    1
slice_qp                                     28
slice_loop_filter_across_slices_enabled_flag  1
slice header length  7
Frame    1
frame length   2119
Slice 0
nal-type                                    1
first_slice_segment_in_pic_flag             1
slice_pic_parameter_set_id                  0
slice_type (0-B, 1-P, 2-I)                  1
slice_pic_order_cnt_lsb                     1
short_term_ref_pic_set_sps_flag             0
num_negative_pics                           1
delta_poc_s0[0]                                1
used_by_curr_pic_s0_flag[0]                    1
num_positive_pics                             0
Temporal MV Prediction flag
slice_temporal_mvp_enabled_flag            1
SAO params
slice_sao_luma_flag                      1
slice_sao_chroma_flag                    1
num_ref_idx_active_override_flag           0
pred_weight_table
luma_log2_weight_denom                 7
delta_chroma_log2_weight_denom         -1
luma_weight_l0_flag[0]          0
chroma_weight_l0_flag[0]        0
MaxNumMergeCand                              3
slice_qp                                     28
slice_loop_filter_across_slices_enabled_flag  1
slice header length  12
total number parsed frames      2

  

117 Responses

  1. Hi there! I could have sworn I’ve been to this website before but after browsing through some of the post I realized it’s new to me. Anyways, I’m definitely glad I found it and I’ll be book-marking and checking back often!

  2. hey there and thank you on your information – I have certainly picked up anything new from proper here. I did however experience some technical points the usage of this website, as I experienced to reload the web site lots of instances previous to I may just get it to load correctly. I had been brooding about in case your hosting is OK? Not that I am complaining, however slow loading circumstances instances will sometimes impact your placement in google and could injury your quality rating if advertising and ***********|advertising|advertising|advertising and *********** with Adwords. Anyway I am including this RSS to my email and could look out for much more of your respective exciting content. Make sure you update this again soon..

  3. Can I simply say what a reduction to seek out somebody who truly knows what theyre talking about on the internet. You positively know tips on how to bring an issue to gentle and make it important. More folks must learn this and understand this aspect of the story. I cant believe youre no more popular since you definitely have the gift.

  4. Nice blog here! Also your site loads up fast! What web host are you using? Can I get your affiliate link to your host? I wish my website loaded up as fast as yours lol

  5. I have seen lots of useful issues on your website about pc’s. However, I’ve the judgment that lap tops are still more or less not powerful enough to be a good choice if you generally do tasks that require many power, like video modifying. But for internet surfing, statement processing, and the majority of other prevalent computer functions they are okay, provided you can’t mind the small screen size. Thanks for sharing your thinking.

  6. Excellent web site. Lots of useful information here. I am sending it to a few friends ans additionally sharing in delicious. And obviously, thank you in your effort!

  7. The very crux of your writing whilst appearing agreeable in the beginning, did not really work well with me personally after some time. Somewhere within the paragraphs you were able to make me a believer but just for a very short while. I however have a problem with your jumps in assumptions and one might do well to help fill in all those gaps. If you actually can accomplish that, I will definitely be fascinated.

  8. Hi there, I found your website via Google while searching for a related topic, your website came up, it looks good. I have bookmarked it in my google bookmarks.

  9. Somebody necessarily assist to make critically posts I’d state. That is the very first time I frequented your website page and so far? I surprised with the analysis you made to create this particular put up incredible. Fantastic process!

  10. Thank you for posting this. I really enjoyed reading it, especially because it addressed my question. It helped me a lot and I hope it will help others too.

  11. An interesting discussion is price comment. I believe that it’s best to write more on this matter, it may not be a taboo subject however generally persons are not sufficient to talk on such topics. To the next. Cheers

  12. I just couldn’t depart your site prior to suggesting that I extremely enjoyed the standard info a person provide for your visitors? Is gonna be back often in order to check up on new posts

  13. Thanks for posting. I really enjoyed reading it, especially because it addressed my issue. It helped me a lot and I hope it will help others too.

  14. It’s perfect time to make some plans for the future and it is time to be happy. I have learn this post and if I may I wish to recommend you few interesting issues or suggestions. Perhaps you can write subsequent articles regarding this article. I want to learn more things approximately it!

  15. Thank you for the auspicious writeup. It if truth be told used to be a enjoyment account it. Glance advanced to more delivered agreeable from you! By the way, how could we keep up a correspondence?

  16. Nice post. I was checking continuously this blog and I’m impressed! Extremely helpful information specially the last part 🙂 I care for such information a lot. I was seeking this certain info for a long time. Thank you and best of luck.

  17. Wonderful goods from you, man. I’ve be mindful your stuff previous to and you are simply extremely magnificent. I really like what you have bought right here, certainly like what you are saying and the best way in which you are saying it. You’re making it enjoyable and you still care for to keep it smart. I can’t wait to learn far more from you. This is actually a wonderful site.

  18. It?s actually a nice and useful piece of information. I am glad that you shared this useful info with us. Please keep us up to date like this. Thanks for sharing.

  19. I beloved as much as you will obtain carried out right here. The comic strip is attractive, your authored subject matter stylish. however, you command get bought an edginess over that you want be turning in the following. sick no doubt come more until now once more as precisely the same just about a lot often within case you shield this increase.

  20. Coverage options, limits, reductions, deductibles and different features are topic to people meeting our
    underwriting criteria and state availability.

  21. This is very attention-grabbing, You’re an excessively professional blogger. I have joined your rss feed and look forward to in quest of more of your fantastic post. Additionally, I have shared your website in my social networks!

  22. I like the valuable information you provide on your articles. I?ll bookmark your blog and test again right here frequently. I am rather sure I will be informed many new stuff right here! Best of luck for the following!

  23. Heya i?m for the first time here. I found this board and I in finding It truly useful & it helped me out a lot. I hope to provide something back and help others such as you helped me.

  24. Undeniably believe that which you said. Your favourite reason appeared to be on the net the simplest thing to remember of. I say to you, I definitely get annoyed even as other people think about worries that they just do not recognize about. You controlled to hit the nail upon the highest as smartly as defined out the entire thing with no need side effect , other folks could take a signal. Will likely be back to get more. Thank you

  25. I have been surfing on-line more than 3 hours nowadays, but I by no means discovered any attention-grabbing article like yours. It?s lovely price sufficient for me. In my view, if all webmasters and bloggers made just right content material as you probably did, the web will probably be much more useful than ever before.

  26. certainly like your website but you need to check the spelling on several of your posts. A number of them are rife with spelling problems and I find it very bothersome to tell the truth nevertheless I will certainly come back again.

  27. I just couldn’t depart your site before suggesting that I extremely enjoyed the standard information a person provide for your visitors? Is going to be back often to check up on new posts

  28. Thanks for your write-up. I also think laptop computers are getting to be more and more popular lately, and now are usually the only type of computer included in a household. The reason is that at the same time actually becoming more and more affordable, their computing power keeps growing to the point where they can be as strong as personal computers coming from just a few in years past.

  29. Thank you, I have recently been searching for information about this topic for ages and yours is the greatest I’ve discovered so far. But, what about the conclusion? Are you sure about the source?

  30. Magnificent items from you, man. I’ve remember your stuff prior to and you’re just extremely magnificent. I really like what you’ve obtained here, really like what you are stating and the way in which through which you assert it. You are making it enjoyable and you continue to take care of to keep it sensible. I cant wait to read far more from you. This is actually a tremendous web site.

  31. Thank you for another magnificent post. The place else may just anyone get that kind of information in such an ideal method of writing? I’ve a presentation next week, and I am on the search for such information.

  32. Great post. I was checking continuously this blog and I am impressed! Very useful info specially the last part 🙂 I care for such information much. I was seeking this certain info for a very long time. Thank you and good luck.

  33. I am really impressed with your writing abilities as neatly as with the format in your weblog. Is that this a paid topic or did you modify it yourself? Anyway stay up the nice high quality writing, it?s rare to look a nice blog like this one these days..

  34. Hey There. I found your blog using msn. This is an extremely well written article. I?ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I will definitely comeback.

  35. Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you can do with a few pics to drive the message home a little bit, but other than that, this is excellent blog. An excellent read. I’ll definitely be back.

  36. Throughout this great pattern of things you’ll get an A with regard to hard work. Exactly where you actually lost everybody ended up being on your particulars. You know, people say, the devil is in the details… And it could not be much more accurate at this point. Having said that, allow me inform you exactly what did work. The writing is actually quite convincing which is most likely why I am taking the effort in order to comment. I do not really make it a regular habit of doing that. Secondly, although I can notice the leaps in logic you make, I am not sure of just how you appear to connect your ideas which inturn make the actual conclusion. For now I shall subscribe to your point however trust in the future you connect your dots better.

  37. Great work! That is the type of info that are meant to be shared around the net. Disgrace on the search engines for not positioning this submit upper! Come on over and discuss with my website . Thanks =)

  38. Hi there very cool site!! Guy .. Beautiful .. Amazing .. I’ll bookmark your web site and take the feeds additionally?I am happy to seek out a lot of helpful information right here within the post, we want develop extra strategies on this regard, thanks for sharing. . . . . .

  39. Thanks for the good writeup. It in fact was once a leisure account it. Look advanced to far added agreeable from you! By the way, how could we keep up a correspondence?

  40. You could definitely see your expertise in the work you write. The world hopes for more passionate writers like you who are not afraid to say how they believe. All the time follow your heart.

  41. Hello There. I found your blog using msn. This is a really well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I will definitely comeback.

  42. Hello, i think that i saw you visited my site thus i came to ?return the favor?.I’m attempting to find things to enhance my site!I suppose its ok to use some of your ideas!!

  43. It is the best time to make a few plans for the longer term and it’s time to be happy. I’ve learn this submit and if I may I wish to counsel you few fascinating things or suggestions. Perhaps you could write subsequent articles regarding this article. I desire to learn more things about it!

  44. I don?t even know the way I stopped up here, however I thought this publish was once good. I do not recognize who you might be but certainly you’re going to a famous blogger in the event you are not already 😉 Cheers!

Leave a Reply

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