PDA

View Full Version : Here's a toy for you (PID detector) !


neuron2
16th May 2004, 07:34
I got bored today and decided to write a PID detector. It's a command line utility with the following usage:

>table filename

Obviously, use it on transport streams that carry PAT/PMT.

The zip file includes source code, from which you can see that PID detection is no trivial matter. This will be integrated into DVD2AVIdg.

http://neuron2.net/fixd2v/table101.zip

Feedback will be appreciated.

Here is sample output:

G:\tmp\Zep>table abc.3.video.3.audio.streams.tp
------------------------------------------------
Table 1.0.1 -- PAT/PMT Parser by Donald A. Graft
------------------------------------------------

Program 1
PCR on PID 0x11
Video on PID 0x11
AC3 Audio on PID 0x14
Other on PID 0x1a
Program 2
PCR on PID 0x21
Video on PID 0x21
AC3 Audio on PID 0x24
Program 3
PCR on PID 0x31
Video on PID 0x31
AC3 Audio on PID 0x34

neuron2
16th May 2004, 10:50
DVD2AVIdg 1.3.0 RC3 now has the PID detection integrated into the Stream menu.

iNFO-DVD
27th June 2005, 11:43
Was just looking round for PID information. Thought about adding code to my program so I could detect PID's from a .ts file then just tell DGIndex which one I wanted, came across this post, great I thought, I'll check out this proggy and/or look at the source, links dead...

Is it still available or do you know a good place where I can get some information as well to find this information in a .ts file? Was looking through a .ts file with a HEX editor for a program stream header or similar and well, didn't get far, new to this .ts stuff.

Any help would be greatly appreciated.

neuron2
27th June 2005, 13:38
This code was absorbed into DGIndex. Have a look at pat.cpp in the DGIndex source code. Note that there are a few bugs in the 1.3.0 release. The 1.4.0 source will be released shortly. You can find the specification for PAT/PMT in ISO 13818-1 in the Library section of my web site.

Dark-Cracker
27th June 2005, 19:16
the link seems broken.

neuron2
27th June 2005, 20:11
Yes, the link is no more. I have absorbed the code into DGIndex and do not support it as a stand-alone utility anymore.