RTP G.711 Streaming

About encoding, codec settings, muxers and filter usage
parts223
New Cone
New Cone
Posts: 1
Joined: 13 Jan 2008 17:02

RTP G.711 Streaming

Postby parts223 » 13 Jan 2008 17:18

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

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

Re: RTP G.711 Streaming

Postby Rémi Denis-Courmont » 16 Jan 2008 20:11

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

noblenull
New Cone
New Cone
Posts: 1
Joined: 18 Jan 2008 16:02

Re: RTP G.711 Streaming

Postby noblenull » 18 Jan 2008 19:54

Is this currently part of the nightly build? I cannot seem to get G.711 working.

Thank you

apohero
New Cone
New Cone
Posts: 9
Joined: 13 Aug 2008 11:57

Re: RTP G.711 Streaming

Postby apohero » 15 Aug 2008 09:12

I'm on this too. Any Solution yet?

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

Re: RTP G.711 Streaming

Postby Rémi Denis-Courmont » 15 Aug 2008 17:34

Works fine here, though it needs a monophonic audio source, and preferably 8kHz to start with (because downsampling is terrible).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Rob Nelson
New Cone
New Cone
Posts: 3
Joined: 15 Jul 2010 00:09

Re: RTP G.711 Streaming

Postby Rob Nelson » 20 Jul 2010 20:17

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

Rob Nelson
New Cone
New Cone
Posts: 3
Joined: 15 Jul 2010 00:09

Re: RTP G.711 Streaming

Postby Rob Nelson » 21 Jul 2010 01:09

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.

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

Re: RTP G.711 Streaming

Postby Rémi Denis-Courmont » 21 Jul 2010 16:30

port-audio is the destination port, not the source port.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Rob Nelson
New Cone
New Cone
Posts: 3
Joined: 15 Jul 2010 00:09

Re: RTP G.711 Streaming

Postby Rob Nelson » 21 Jul 2010 17:52

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.

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

Re: RTP G.711 Streaming

Postby Rémi Denis-Courmont » 21 Jul 2010 18:09

I have a feeling you are looking at the wrong port numbers.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

carloimperia
New Cone
New Cone
Posts: 1
Joined: 16 Feb 2011 18:17

Re: RTP G.711 Streaming

Postby carloimperia » 16 Feb 2011 18:23

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 18 guests