[vlc] Re: MPEG2 transport stream handling ??

Christophe Massiot massiot at via.ecp.fr
Wed Apr 23 12:03:47 CEST 2003


On Wed, Apr 23, 2003, Moody, Paul G wrote:

> 	Q1	when I feed a multiplex TS stream to VLC it cannot process the TS unless it begins exactly on a packet header ... ie 0x47 sync byte. For instance my test file mpeg2.ts had 36 bytes of data before the first valid packet header. I had to dd if=mpeg2.ts of=mpeg2A.ts bs=36 skip =1 to 'clean' off the 36 bytes before VLC would play the stream. Additionally the stream breaks if there are further missing syncs /short packets /long packets in the stream. In real life there is never a clean feed unless you are at the studio :).

You can force the detection of TS by prepending "/ts:" to your file name :
vlc /ts:mpeg2.ts

> 	Q2	how do I select a particular program ( video + audio ) PID from the multiplex TS. VLC seems to pick out the first one it finds and play that. For that matter  how do I  see the contents of the multiplex stream. ( is there a demux / PSI process ?)

There is a program menu in the interface. The messages window will give
you the details of the PAT/PMT.

> 	Q3	How do I feed  VLC from a pipe? I used a mkfifo pipe however VLC keeps reporting EOF and buffer writes / possible memory leak. It works beautifully from a file but not a pipe .. Huh ?.

You must use stream: for pipes :
vlc stream:/tmp/pipe

Which VLC version are you using ?

> 	Q4	Looking through the code there seems to be multiple threads running ... is there some  sort of architectural diagram describing the thread interactions ? 

There is a developer documentation on the developer website.

-- 
Christophe Massiot.
-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list