[Ffmpeg-devel] mpegts pid values
Mon Jul 18 12:36:45 CEST 2005
> Many of the lower values have special meanings, are reserved, or have
> special meanings in common uses of MPEG-TS, such as DVB.
> There is generally no reason to set the PIDs explicitly. Any
> values should
> work, and assigning them automatically simplifies things for the
VLC has an option for specifying these pids. I guess it must be used by
a few people.
In my case, MPEG-TS data is being sent by UDP to a set-top-box that
the video and audio streams to have particular pids.
If low values are to be avoided, how can I use the AVStream id?
Would something like this be ok?
if (st->id >= EXPLICITELY_SET_PID)
ts_st->pid = st->id - EXPLICITELY_SET_PID ;
ts_st->pid = DEFAULT_START_PID + i;
More information about the ffmpeg-devel