DIstorsion on RTP/PCM stream

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
mcosta
New Cone
New Cone
Posts: 8
Joined: 22 Jul 2009 15:13
VLC version: 1.0.1
Operating System: Windows/Linux

DIstorsion on RTP/PCM stream

Postby mcosta » 22 Jul 2009 15:24

HI,

I'm developing an application sending, through RTP protocol, audio packets in PCM (8Khz 8bits).
Using VLC I read this stream but the audio has a distorsion.

I used wireshark to ensure that received packets contain correct data. (I tried with a single tone signal).
Can you help me to understand the origin of this distorsion.

Thanks,

Massimo

Rémi Denis-Courmont
Developer
Developer
Posts: 15336
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: DIstorsion on RTP/PCM stream

Postby Rémi Denis-Courmont » 22 Jul 2009 18:30

Errm, you're using what payload format?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mcosta
New Cone
New Cone
Posts: 8
Joined: 22 Jul 2009 15:13
VLC version: 1.0.1
Operating System: Windows/Linux

Re: DIstorsion on RTP/PCM stream

Postby mcosta » 22 Jul 2009 20:43

The PayloadType is 0 (PCMU).

Packets are transmitted with interval of 20ms.

I'm using the Windows precompiled version of VLC 1.0.0.
I would like to activate some logging features of VLC but I don't know how do this

Thanks

PS. Using SoX, I converted RAW PCM data in Wav and AU file and VLC plays them correctly

Rémi Denis-Courmont
Developer
Developer
Posts: 15336
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: DIstorsion on RTP/PCM stream

Postby Rémi Denis-Courmont » 22 Jul 2009 21:14

Payload type 0 (PCMU) is monophonic 8000 Hz "µ-law" logarithmic PCM, a.k.a. G.711. If you feed linear PCM samples, then yes, the sound should be distorted.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mcosta
New Cone
New Cone
Posts: 8
Joined: 22 Jul 2009 15:13
VLC version: 1.0.1
Operating System: Windows/Linux

Re: DIstorsion on RTP/PCM stream

Postby mcosta » 23 Jul 2009 10:53

Thank you for the answer. I'll try encoding data.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 70 guests