[Live-devel] PCM data gets corrupt during transport

Ross Finlayson finlayson at live555.com
Fri Feb 3 00:22:26 PST 2012


> I am experiencing a problem that has me stumped.  My application uses Live555 to stream PCM data over a network.  The problem is that the data received on the client side is corrupt.  The bottom half of the right channel contains noise.  If you take a look at the image hosted here : http://www.freeimagehosting.net/q1cgw you will see what I mean.  The first file is the PCM data directly before transport (obtained from the input buffer in AfterGettingFrame1 in my FramedFilter, the second PCM file is data directly after transport (obtained from the input buffer in AfterGettingFrame1 in my MediaSink).
>  
> My only conclusion is that I must be doing something wrong that causes the transport to add this noise to the right channel during transport, but I cannot figure out what.  Can you perhaps guide me in a direction?

One possibility that comes immediately to mind is that you're not setting "fFrameSize" correctly (and/or are not copying the correct number of bytes) in your source or filter objects.  Remember that PCM is usually 16-bits per sample, so its size in bytes is 2x the number of samples.

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120203/bcfe85dc/attachment.html>


More information about the live-devel mailing list