[Libav-user] UDP Stream Read Pixelation/Macroblock Corruption

Alex Cohn alexcohn at netvision.net.il
Tue Jun 26 10:02:21 CEST 2012


On Mon, Jun 25, 2012 at 9:59 PM, radparker <radford.parker at gmail.com> wrote:
> I have code working properly to read in a UDP stream for a couple of seconds.
> Soon after, the stream becomes severely pixelated. I have my code below and
> the output of my stream in video form below that. Has anybody seen something
> like this before? I am using libav-0.8.3 and have tried increasing my stack
> size and altering the buffer_size as an input option with the url. I should
> mention that the UDP input stream is multicast and the format is mpegts. Any
> help would be greatly appreciated. Thanks!


The demonstrated effect could easily be explained by lost packets.
With a UDP stream, some packets can be lost. You could try to improve
the situation on the receiver side by making your socket buffers
larger, but the problem may be out of your control. For example, with
WiFi such behavior, especially with high bitrates, is quite typical.

BR,
Alex Cohn


More information about the Libav-user mailing list