[FFmpeg-devel] How to Open TS stream

季春宏 chunhongji
Thu May 24 09:02:31 CEST 2007

Hi, all,

I want to write a player for DTV TS stream based on FFMpeg.
When I try to open a TS stream with 6 ps streams(3 video stream and 3 audio
stream) like this:

av_open_input_file(&pFormatCtx, (LPCTSTR)name, NULL, 0, NULL )

pFormatCtx->nb_streams returns NOT 6 but 2.  ( I can play all the Program in
my TS stream correctly with VLC )
So can anybody tell me, how can I open TS stream with multi-ps correctly?

Chunhong Ji

More information about the ffmpeg-devel mailing list