Unable to create UDP Stream, HTTP works fine
Posted: 14 Nov 2023 18:19
Hi there,
for TRPG Sessions, i want VLC to stream the music for the party and i first tried HTTP, but when the streams for quite some time, the delay gets unusable. When i switch the song, it could take up to 2 minutes when its 1 hour into the game.
I use the following command
Works like a charm. But now i try the same with udp
I can see in netstat, that VLC doesn't open up an port. When i look into the logs, i just see a bunch of these
I don't get any error using that, but there is also no open port in netstat and clients are, obviously, unable to connect. So even though there is no error (even with -vvv), it just does nothing and i have no idea why. I tried using different ports or the IP of the server instead of 0.0.0.0 and again root, but nothing. It just streams the file into an unknown void.
Here is the -vv log, which is explicitly saying it connects to the port (even though, nothing is there)
for TRPG Sessions, i want VLC to stream the music for the party and i first tried HTTP, but when the streams for quite some time, the delay gets unusable. When i switch the song, it could take up to 2 minutes when its 1 hour into the game.
I use the following command
Code: Select all
cvlc --repeat -I http --http-password XXX test.mp3 --sout-keep --sout='#standard{access=http,mux=ts,dst=0.0.0.0:8081}'
Code: Select all
cvlc --repeat -I http --http-password XXX test.mp3 --sout-keep --sout='#standard{access=udp,mux=ts,dst=0.0.0.0:8081}'
This also happens, when i run VLC as root. The firewall is open on that port and i also tried other portsudp access out warning: send error: Connection refused
I also tried various variants of this command (RTP)-A INPUT -p tcp -m tcp --dport 8081 -j ACCEPT
-A INPUT -p udp -m udp --dport 8081 -j ACCEPT
Code: Select all
cvlc -v --repeat -I http --http-password XXX test.mp3 --sout-keep --sout='#rtp{port=8081,dst=0.0.0.0}'
Here is the -vv log, which is explicitly saying it connects to the port (even though, nothing is there)
[00007f4ff401e2c0] main stream output debug: using sout chain=`rtp{port=8081,dst=0.0.0.0}'
[00007f4ff401e2c0] main stream output debug: stream=`rtp'
[00007f4ff4022a10] main stream out debug: looking for sout stream module matching "rtp": 20 candidates
[00007f4ff4022a10] main stream out debug: set config option: sout-rtp-port to 8081
[00007f4ff4022a10] main stream out debug: set config option: sout-rtp-dst to 0.0.0.0
[00007f4ff4022a10] main stream out debug: using sout stream module "stream_out_rtp"
[00007f4ff402bed0] main stream debug: creating access: file:///srv/http/pub/vamp898/trpg/MOMBGM01.mp3
[00007f4ff402bed0] main stream debug: (path: /srv/http/pub/vamp898/trpg/MOMBGM01.mp3)
[00007f4ff402bed0] main stream debug: looking for access module matching "file": 26 candidates
[00007f4ff402bed0] main stream debug: using access module "filesystem"
[00007f4ff402d4a0] main stream debug: looking for stream_filter module matching "prefetch,cache_read": 26 candidates
[00007f4ff402d4a0] cache_read stream debug: Using stream method for AStream*
[00007f4ff402d4a0] cache_read stream debug: starting pre-buffering
[00007f4ff402d4a0] cache_read stream debug: received first data after 0 ms
[00007f4ff402d4a0] cache_read stream debug: pre-buffering done 1024 bytes in 0s - 28571 KiB/s
[00007f4ff402d4a0] main stream debug: using stream_filter module "cache_read"
[00007f4ff402e910] main stream debug: looking for stream_filter module matching "any": 26 candidates
[00007f4ff402e910] main stream debug: no stream_filter modules matched
[00007f4ff4c49fe0] main stream_directory debug: looking for stream_directory module matching "any": 1 candidates
[00007f4ff4c49fe0] main stream_directory debug: no stream_directory modules matched
[00007f4ff402e910] main stream debug: looking for stream_filter module matching "record": 26 candidates
[00007f4ff402e910] main stream debug: using stream_filter module "record"
[00007f4ff401e2c0] main stream output debug: adding a new sout input for `mpga` (sout_input: 0x7f4ffcc524a0)
[00007f4ff4022a10] stream_out_rtp stream out debug: maximum RTP packet size: 1400 bytes
[00007f4ff4022a10] main stream out debug: net: connecting to [0.0.0.0]:8081