[FFmpeg-devel] [patch][RFC] mpeg-ts not packetized properly over UDP

aviad rozenhek aviadr1
Thu Sep 2 17:30:11 CEST 2010

On Tue, Aug 17, 2010 at 15:02, Michael Niedermayer <michaelni at gmx.at> wrote:

> On Sun, Aug 15, 2010 at 04:24:59PM +0300, aviad rozenhek wrote:
> > when using ffmpeg to mux an mpegts stream over UDP, the data is not
> > packetized properly.
> > the default packet size of UDP is 1472, which is not an integer multiple
> of
> > 188 (the TS packet size).
> > this causes problems if UDP packets are dropped or reordered.
> the udp packet size should be a multiple of the underlaying streams packet
> size when possible and it should be as large as possible
> making it 188 is not ok, this has too much overhead
how about a solution in the spirit of this new attached patch?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: integer_number_of_ts_packets.patch
Type: application/octet-stream
Size: 799 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100902/521cffa8/attachment.obj>

More information about the ffmpeg-devel mailing list