Samplerates

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
LucM
New Cone
New Cone
Posts: 3
Joined: 12 Feb 2010 09:52

Samplerates

Postby LucM » 12 Feb 2010 10:49

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

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

Re: Samplerates

Postby Rémi Denis-Courmont » 13 Feb 2010 10:32

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 ).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

LucM
New Cone
New Cone
Posts: 3
Joined: 12 Feb 2010 09:52

Re: Samplerates

Postby LucM » 01 Mar 2010 16:41

Merci beaucoup !


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 81 guests