pjdaniel.org.uk
MPEG-2 Transport Stream analyser
MPEG-2 analyser enables decoding and low level analysis of DVB and MPEG-2 188 byte packet transport streams. It is useful for fault-finding, equipment testing, software development and learning more about how MPEG-2 systems work.

Header decode The application decodes every transport stream packet header and displays information on PID, PES stream id, PTS, DTS, Video frame size, GOP, Picture type, Frame rate, Aspect ratio and AFD codes.

Table decode MPEG-2 PAT and DVB SDT tables can be decoded and viewed.

Export A summary of TS packet headers can be exported as a text file for futher analysis. The transport stream can be de-multiplexed into a single PID stream and exported as a new file.

This tool is not a player, I recommend VideoLAN if you want to simply watch the video.

More screenshots
Subscribe to my yahoo mpeg-2 group for notification of software updates.

If you find this tool useful please consider making a small donation to the author. It will help to ensure future developments and new features. Thank you.

Downloads

Older versions are available on request.
MPEG2analyse 1.05 archive
Windows 9x, NT, 2000, XP (Vista not tested)
MPEG-2/DVB table decoder 1.10
Excel 2000/XP
PESdecode executable
MS-DOS
PESdecode source code
Request password
MS-DOS
TSdecode executable
MS-DOS
TSdecode source code
Request password
MS-DOS
Extract 1Mb Utility to copy the first 1Mb of data in a stream to a new file
MS-DOS
AFD test sequence (no actual video/audio data)
5Kb
TS test sequence A video test signal on PID600
1Mb
Sample transport stream Various video, audio and data streams.
1Mb
UK DTT Mux1 stream Various video, audio and data streams. Complete set of DVB tables including SDT and EIT.
3.7Mb
Final report, 11th May 2001
Adobe acrobat reader required
Progress report, January 2001
Adobe acrobat reader required
Project specification and plan
Adobe acrobat reader required

History

05/08/07 Win 1.05 New features and bug fixes:
- Export PAT as text file
- Decode many more tables
- GOP type decoding
- All known table PIDs added
- PID de-mux and stream exporter
- Improved AFD decoding
- Various bug fixes and improvements
07/05/05 Win 1.04 Raw data viewer expanded to 64 bytes and available for every TS packet. PES start code checked before decoding PES header. PES stream id decoding expanded to include every code in specification. Video start codes refined to match specification, detection of video start codes improved. PAT decoding improved so only table entries present are shown. A menu for finding tables by PID has been added. Various minor changes and improvements.
03/04/05 Table Decode 1.10 Several updates and improvements.
08/10/03 Table Decode 1.00 An excel spreadsheet designed to decode MPEG-2/DVB tables
22/11/02 Win 1.03 Fixed a small error in the help file.
15/10/02 Win 1.03 Greatly improved PTS and DTS decoding. PAT decoding. PAT search with header and table decoding.
04/02/02 Win 1.02 Added a raw data viewer and re-wrote video stream export function.
04/02/02 Win 1.01 Software now detects transport stream adaption data. This has solved a bug where not all PES headers were decoded.
11/05/01 Win 1.00 First offical release, as submitted with final report. Includes several bug fixes and improvements over b1.53
02/05/01 Win b1.53 Final development release. Picture type now decoded after a sequence start code. Many minor changes and bug fixes.
30/04/01 Win b1.52 Picture type (I,P,B) decoding added. PDF documents added to download section.
24/04/01 Win a1.51 AFD pictures now working again. Help file completely updated and help buttons added. Several other minor changes.
20/04/01 Win a1.5 Major re-write of the internal workings and user interface. All searches are now controlled from the toolbar and linked back to a TS packet. Four filters can be applied to the step forward and step back buttons. Floating video header and AFD info dialog. Progress bar showing file position. New AFD test file available below which links the AFD codes to TS packets.
20/03/01 Win a1.12 Improved the AFD dialog to add a search facility. AFD values now displayed in the range 8-15. All dialogs will now put the caret in the first text field when opened.
14/03/01 Win a1.11 Pretty pictures and descriptions added to the AFD decoder. To see all of the AFD descriptions and pictures download the AFD test file from this page. Updated the online help and other small changes.
09/03/01 Win a1.10 Added an AFD search feature and made it possible for the user the enter their own PID search value. Note: The online help file has not been updated to include these features yet.
08/02/01 Win a1.00 Made various improvements and bug fixes. It is now only possible to open one file at a time, hope this removes some confusion. Elementary video stream extraction now works! Use the MPEG-2 player on this page to view the files created.
11/01/01 Win a10 Added a TS header export function and made other minor changes. Fixed a major bug in the PES extraction code.
08/01/01 Win a10 Improved the Windows analyser. PES extraction has been added with continuity checking and the option of extracting from the first x packets only. Extracted video streams can then be re-opened and video properties viewed. An new options dialog allows you to choose the number format of display values.
04/12/00 Win a00 First release of the Windows analyser. It does everything the DOS version does except extract a PES.
11/05/01 PS1.00 PESdecode for DOS v1.00
06/11/00 TS1.00 TSdecode now takes options from the command line, eg, TSDECODE c:\test.mpg -p600. Run the program with no options for more help. Several other minor improvements.
01/11/00 TSa06 Improved the PID table routine so it now uses linked lists. A few other minor improvements.
30/10/00 TSa05 Improved de-multiplexing routine so it checks the continuity counter and reports any discrepancies. Added a menu option to extract a PES stream from the Transport stream. It seems to work, please check and report any problems.
27/10/00 TSa04 Added a menu option to save the PID table as a separate text file.
26/10/00 TSa03 Improved the file searching so that 'end of file' is properly detected and reported. An error message will now appear if the PID entered cannot be found in the file.
17/10/00 TSa02 Started to decode the PES header, added a menu to make the program more useful, and easier to use? Now reads the length of any adaption fields and displays it. Fixed a bug in the menu. Added more information to TS_header reporting.
12/10/00 TSa01 Improved the sync_byte search routine, now correctly reports an error if there are no sync_bytes in a file. Improved the search function so that it looks for payload_start and then shows all TS headers matching the specified PID afterwards. Also displays a table of found PID addresses.
10/10/00 TSa00 First useful version, will ask for a PID and display the transport header information for all matching PID's.
© Peter Daniel, 18 Aug 2007
home