[vlc-devel] Re: Is there a way to force PES alignment to a TS boundary when Streaming UDP?

Måns Rullgård mru at inprovide.com
Wed Mar 15 19:59:00 CET 2006


"Robert Scheffler" <Bob at pricom.com> writes:

> Hi,
>
> I would like to stream a MPEG-2 TS using UDP out of VLC, but force the PES
> packets to start at the beginning of a TS packet. Some software or hardware
> encoders call this "PES Alignment". Since the TS is 188 bytes per packet,
> there can be a bit of inefficiency in doing this alignment, but if the TS is
> CBR anyway, the NULL packets are added somewhere, just a matter of forcing
> their location. Essentially I want the PUSI completely inside a single TS
> packet.
>
> The effect of 0.8.4 is that the PES placement is rather random, and drifts
> around since normally the TS is demuxed before analysis. I want to parse and
> analyze the TS without demuxing it, so finding a PUSI that spans TS packet
> boundaries is painful.

PES packets must always start at the beginning TS packets.  If they
don't there is a serious bug somewhere.

-- 
Måns Rullgård
mru at inprovide.com

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list