Complete a tool for analyzing H264 streams

Source: Internet
Author: User
Tags using git

Recently began to engage in video-related things. have been afraid of H264, feel too difficult, now began to touch it slowly, understand it. Inadvertently, see someone on the net to H264 stream analysis. Address: http://blog.csdn.net/leixiaohua1020/article/details/17933821. There are commercial tools, such as H264videoesviewer, but money, and expensive, the company spends money on one (really "one"), only one person's computer is installed (not at the same time on other computers). In order to learn H264 stream, plus oneself for a long time did not write MFC, refer to the Code of others, practice practiced hand. Fortunately, his knowledge of MFC is still in.

The program is modified on the basis of the original author, plus some of his own understanding, but also reference a little bit of H264videoesviewer interface settings.

Ideas:
Use the Open Source Library H264bitstream to analyze (that is, the job that you really do is to encapsulate this library to display in MFC).
1. Get all nal information first, including nal type and offset.
2. When you double-click an item nal, use the file action to move to the specified offset, then read the data, and then analyze.

The code is on GitHub and there is time to update it. Code warehouse address (directly using git to download):
Https://github.com/latelee/H264BSAnalyzer.git

Different versions of the features and interfaces are given below.

v1.0 version:
1, the first version.
2, "version" is the "copyright" error;

v1.1 version (2014.3.4):
1, improve the hexadecimal display, using Chexedit implementation (thanks to the author. )。

v1.2 version (2014.3.27)
1. Add File overview information (path, resolution, frame rate, profile, etc.). Note: Resolution fixed 16 times times the problem, such as 1080P video, some tools (such as H264visa) analysis is 1920*1088, this is the wrong calculation.
2. Support up and down cursor movement display details.
3, support different slice coloring display, display frame serial number.
4, Fix h264bitstream about seq_scaling_matrix_present_flag judgment question.
5. Known Issues: Parsing files is slow and needs to be optimized.

PS: Actually have a feeling to oneself: Can engage MFC, SDL, under portable Linux kernel drive.

Disclaimer: The content of this article is only for the purpose of sharing technology, limited to personal ability, does not provide technical support, but can discuss issues together.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.