Page 1 of 1
RTP G.711 Streaming
Posted: 13 Jan 2008 17:18
by parts223
I am completely new to VLC. How should an output string be constructed in order to stream audio only over RTP using G.711 U-law, assuming IP is 10.10.10.10 and port is 1234? I am using VLC 0.9.0, which supports U-Law. This is to stream audio to a Nortel phone system for music on hold.
Thanks,
Rob
Re: RTP G.711 Streaming
Posted: 16 Jan 2008 20:11
by Rémi Denis-Courmont
Code: Select all
vlc file.wav --sout '#transcode{acodec=ulaw,samplerate=8000}:rtp{dst=192.0.2.1,port-audio=1234}'
Please refer to the online streaming documentation.
Re: RTP G.711 Streaming
Posted: 18 Jan 2008 19:54
by noblenull
Is this currently part of the nightly build? I cannot seem to get G.711 working.
Thank you
Re: RTP G.711 Streaming
Posted: 15 Aug 2008 09:12
by apohero
I'm on this too. Any Solution yet?
Re: RTP G.711 Streaming
Posted: 15 Aug 2008 17:34
by Rémi Denis-Courmont
Works fine here, though it needs a monophonic audio source, and preferably 8kHz to start with (because downsampling is terrible).
Re: RTP G.711 Streaming
Posted: 20 Jul 2010 20:17
by Rob Nelson
Good Day,
I hope it is alright to add to this thread, as it is an older post. I stumbled across this post recently while trying to figure out how to stream On-Hold messages to a Nortel BCM50.
I used the command provided at the beginning of the thread with a couple of my own parameters (Address and Port as taken from the target BCM). When I run the command, it opens VLC, but doesn't stream anything. When I look at the properties in VLC, they appear to be the defaults. I even tried playing with the ports on the BCM and VLC side to see if I had anything backward. We also tried a different codec (a-law) just to be sure. We were able to successfully upload the mono WAV file to the BCM for use as an on-hold message.
As a test, I was able to successfully stream between two laptops with more "default" parameters using the GUI. For some reason the G.711 codec wasn't available as a parameter in the GUI streaming options of VLC.
Do you have any other suggestions? Any help would be appreciated.
Thanks,
Rob Nelson
Re: RTP G.711 Streaming
Posted: 21 Jul 2010 01:09
by Rob Nelson
Here are the parameters that are in use:
From the BCM
- BCM IP: 10.196.58.124
- Streaming Server: 10.196.17.31
- Server RTP Port: 2218
- Stream Type: G.711 U-Law
- Frames Per Packet: 3
- RTP Port on BCM: 2216
From VLC (via batch file):
vlc.exe c:\MOH\MOH-June.wav --sout '#transcode{acodec=ulaw,samplerate=8000}:rtp{dst=10.196.58.124,port-audio=2218}'
As I mentioned before, we played around with the port values on both the VLC command and in the BCM. I wasn't sure how to deal with the "Frames Per Packet" parameter, so we left everything at the defaults.
The WAV file is mono.
Any/All help is greatly appreciated.
Thanks,
Rob.
Re: RTP G.711 Streaming
Posted: 21 Jul 2010 16:30
by Rémi Denis-Courmont
port-audio is the destination port, not the source port.
Re: RTP G.711 Streaming
Posted: 21 Jul 2010 17:52
by Rob Nelson
We changed the ports back to defaults on the BCM:
- BCM IP: 10.196.58.124
- Streaming Server: 10.196.16.99
- Server RTP Port: 2216
- Stream Type: G.711 U-Law
- Frames Per Packet: 3
- RTP Port on BCM: 2218
From VLC (via batch file):
vlc.exe c:\MOH\MOH-June.wav --sout '#transcode{acodec=ulaw,samplerate=8000}:rtp{dst=10.196.58.124,port-audio=2216}'
We changed the PC over to a different connection as well (thus the Server IP address change).
Net Result: No change.
Are there any other VLC parameters we should be looking at?
Thanks,
Rob.
Re: RTP G.711 Streaming
Posted: 21 Jul 2010 18:09
by Rémi Denis-Courmont
I have a feeling you are looking at the wrong port numbers.
Re: RTP G.711 Streaming
Posted: 16 Feb 2011 18:23
by carloimperia
Excuse me for late questtion
I used the command provided in thread, but when I run the command, it opens VLC, but doesn't stream anything and nothing happen !
BCM
Server: 10.10.10.244 (the my server machine with VLC installed)
Server Rtp Port: 2218
Stream Type: alaw
Frames per packet: 3
RTP port on BCM: 2216
vlc.exe G:\indiana.wav --sout '#transcode{acodec=ulaw,samplerate=8000}:rtp{dst=10.10.10.60,port-audio=2218}'
Oss.: 10.10.10.60 -> The ip address of BCM
Could you help me ?? Tanks