Page 1 of 1

Samplerates

Posted: 12 Feb 2010 10:49
by LucM
Hi,

I'm trying to diffuse audio with RTP, multicast, S16b codec and 8000Hz samplerate.

I have different results according to the samplerate I use, but I see no error messages :
- 44100 : everything is fine
- 22050 : it is diffused (from what I hear on the source side) but not received (receiver doesn't even start buffering)
- 8000 : it is not diffused (I hear nothing on the sender side), yet the read cursor advances

Could someone please explain me what are the samplerate limitations ?
Are the limitations only related to codec or also file source, protocol, etc ?

Thanks,

Luc


----------------------------------------------------------------------------------------------------------

VLC 1.0.3.

Source : mp3 file, mpga, stereo, 22050Hz,96kb/s

Parameters :
source
:sout=#transcode{acodec=s16b,channels=2,samplerate=44100}:rtp{dst=239.192.0.1,port-audio=1234}
destination
rtp://239.192.0.1:1234

Re: Samplerates

Posted: 13 Feb 2010 10:32
by RĂ©mi Denis-Courmont
Except for L16 44100/1 and L16 44100/2, which are static RTP payload formats (number 10 and 11), you need a SDP description. Otherwise, the receiver cannot guess the codec parameter.

For 8000/1, using PCMA or PMCU (i.e. G.711) would be easier, as they both have static payload formats (number 0 and 8 ).

Re: Samplerates

Posted: 01 Mar 2010 16:41
by LucM
Merci beaucoup !