Thanks, I will try that.

--- En date de : Mer 3.12.08, Vladimir Eremeev <[EMAIL PROTECTED]> a écrit :
De: Vladimir Eremeev <[EMAIL PROTECTED]>
Objet: Re: [libav-user] How to get stream PID in MPEG2 TS video ?
À: [email protected]
Date: Mercredi 3 Décembre 2008, 13h31


Claude JOSEPH-ANGELIQUE wrote:
> 
> I want to play a mpeg2 ts video containing 6 streams (4 videos and 2
> audios). Each stream has a specific PID number. I know I can get the
> stream index (from 0 to 5) via AVPacket.stream_index but how to get the
> exact PID number ?
> 

If your input format context is

AVFormatContext *input;

then elementary pids are 

input->streams[ AVPacket.stream_index ]->id

-- 
View this message in context:
http://www.nabble.com/How-to-get-stream-PID-in-MPEG2-TS-video---tp20795124p20812091.html
Sent from the libav-users mailing list archive at Nabble.com.

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user



      
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to