[FFmpeg-devel] FW: Allow multiple programs in MPEGTS output stream

Uve W. Rick Uve.Rick
Wed Sep 22 16:52:40 CEST 2010

> -----Original Message-----
> From: ffmpeg-devel-bounces at mplayerhq.hu [mailto:ffmpeg-devel-
> bounces at mplayerhq.hu] On Behalf Of M?ns Rullg?rd
> Sent: Tuesday, September 21, 2010 11:10 AM
> To: FFmpeg development discussions and patches
> Subject: Re: [FFmpeg-devel] FW: Allow multiple programs in MPEGTS
> output stream
> Michael Niedermayer <michaelni at gmx.at> writes:
> > can a stream be in more than one program?
> Yes.

The MpegTSWriteStream structure contains a pointer to the service(ie program).  If the stream can be in multiple programs, this association would have to be removed.  This would complicate the calculation for PAT/PMT/SDT generation.  The software would have to loop through each service for every packet sent do see if it is time send the tables again.

This may be a stupid question, but I understand that the PAT/PMT/SDT are send at specific intervals.  Why not just call av_gettime() and see if it is time to send them out again? I've been reading this list for a while and calculations for how many packets to send before the PAT/PMT/SDT needs to be sent just keeps getting more and more complicated.

> --
> M?ns Rullg?rd
> mans at mansr.com
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list