Hi,

how do I get the PID from an output stream in case the output format is MPEG-TS?

From an archived message I have learned that for input streams I can use:

AVFormatContext *input;
input->streams[ AVPacket.stream_index ]->id

to get the corresponding TS PID.

But unfortunately I cannot use this method for output streams.

Reference Message:
http://lists.mplayerhq.hu/pipermail/libav-user/2008-December/001771.html

From what I have seen from the code, the MPEG-TS muxer never touches the ->id member of the AVStream struct.

So do I have to calculate it manually using DEFAULT_START_PID and nb_streams?

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

Reply via email to