Log in

View Full Version : Finding audio streams in MPEG2 PS


Principher
26th September 2007, 12:58
Now for a question related to what I actually do at work :)

This is a pretty basic question on parsing MPEG2-PSs. I am tryng to detect which audio streams are available in an mpeg2 file. I have interpreted some of 13818-1 in the direction that I should search for 0x000001BC (program stream map). However none of the MPEG2 PSs I have contain that value, so I have reached that I have misread the docs. Could you guide me in the right direction :)
Just to recap, how do I detect the number of audio streams in an MPEG2 PS?

Guest
26th September 2007, 13:43
Get the source code for DGIndex. Look at the function Next_Packet() in the file getbit.cpp.

Principher
27th September 2007, 10:27
Thanks for the reply. Looks like a great program you have created :) I think I have found the right place in the function, so I will start reading.

Guest
27th September 2007, 12:48
Looks like a great program you have created. It's not just me. It's based on the original DVD2AVI created by Chia-chen Kuo (jackei) based on the MSSG reference decoder. Then a long list of people subsequently contributed, as documented in the Credits sections of the help documents. I have been sheperding the project along, coordinating contributions and builds, and making significant contributions of my own.

Principher
27th September 2007, 13:53
Sorry for not reading the credits file, was so busy that I assumed it to be your work when it was on your website. Should learn to read the docs first.
So if any of the other contributors are reading this post, the appraisal of the work goes to you too :).