This article introduces a small open-source project: TS Encapsulation Format analyzer. TS stands for MPEG 2 Transport Stream (MPEG2 transmission Stream), which is widely used in broadcast and television systems, such as digital TVs and IPTV. My project is not large and can be used to learn the TS Encapsulation Format Structure. In addition, it supports separating video streams and audio streams in TS. And the timestamp, PTS, and DTS of the output TS package. Developed Using MFC of VC 2010. During the separation of video and audio from TS, A Github open-source small project: tsdemux was used.
The software's exe and source code have been uploaded to SourceForge. Supports both Chinese and English, keeping up with international trends ~
Project address: http://sourceforge.net/projects/tsformatanalysis/
CSDN (Program + source code): http://download.csdn.net/detail/leixiaohua1020/6845473
Software usage
The use of software is quite simple.
After the software runs, open a TS Stream file.
Click Start to parse a series of TS packages. The list is displayed on the right side of the Software. Different TS packages are marked with different colors.
The information about the TS stream is displayed on the left of the software, which is not complete yet. You will have the opportunity to continue the upgrade in the future.
English interface:
If "output video/audio" is selected, separate video streams and audio streams can be output.
If you select "output TS package information to file", you can output the TS package information (Timestamp, PTS, DTS) to a text file.
Software source code analysis
The source code is not much different from the common MFC program. People who know MFC should be able to understand it quickly. The only difference is that you have made a change to the open-source tsdemux project. Annotations are adequate.