Streaming synchronized raw audio to multiple clients
Posted: 19 Jul 2012 18:56
I'm using VLC 2.0.2 win32.
I'm attempting to stream audio from a VLC instance (server) to multiple different VLC clients. This is raw audio only (no video). The server and all clients are Windows7.
I believe that UDP will give me the best synchronization, but it's not currently working for me.
Here is my commands i'm using for UDP streaming:
The server:
(the - on the end grabs audio from stdin of shairport4w. This audio plays perfectly in VLC when I remove the --sout option).
The client:
In the debug console for the client, I see "main stream error: cannot pre fill buffer"
Note: I've also tried using 239.255.12.42 as the multicast IP, but it did not work either (same error).
All firewalls are turned off, but the clients never start playing the udp stream.
The server seems to play it just fine, at least i see the seconds counting up when i start play audio.
Update: The udp streaming works perfectly if I try to stream a .mp3 from the server.
This streams correctly:
Update2: I am able to successfully stream using the raw audio, but only over http (which isn't providing the synchronous nature i would get from udp)
This streams correctly (using http):
I'm attempting to stream audio from a VLC instance (server) to multiple different VLC clients. This is raw audio only (no video). The server and all clients are Windows7.
I believe that UDP will give me the best synchronization, but it's not currently working for me.
Here is my commands i'm using for UDP streaming:
The server:
Code: Select all
vlc.exe --demux=rawaud --rawaud-channels 2 --sout udp:224.1.1.152:1152 -
The client:
Code: Select all
vlc.exe udp://@224.1.1.152:1152
Note: I've also tried using 239.255.12.42 as the multicast IP, but it did not work either (same error).
All firewalls are turned off, but the clients never start playing the udp stream.
The server seems to play it just fine, at least i see the seconds counting up when i start play audio.
Update: The udp streaming works perfectly if I try to stream a .mp3 from the server.
This streams correctly:
Code: Select all
vlc "C:\Users\Public\Music\Sample Music" --sout udp:239.255.12.42
This streams correctly (using http):
Code: Select all
vlc --demux=rawaud --rawaud-channels=2 - --sout "#std{access=http,mux=asf}"