Open ChristianErdtmann opened 2 years ago
Hi Christian,
after starting the stream, can you run screen -rS lsr_stream
and check whether there are any errors?
To detach the screen and return to your normal console, press Ctrl
+ A
and then Ctrl
+ D
.
I running this script on a Ubuntu Server and i get this from the console:
$ ./lsr.sh --start Starting lsr_player... Starting lsr_stream... $ screen -rS lsr_stream There is no screen to be resumed matching lsr_stream.
Could you test what happens if you run ./stream.sh
directly?
Also, you may have to do some changes to your ALSA configuration. Please have a look at the README of this repo, I added a few steps the other day.
First there was Permission problem, because of this i maked it executable. $ ./stream.sh -sh: 8: ./stream.sh: Permission denied $ chmod +x stream.sh
Now i ended with this: $ ./stream.sh ./stream.sh: 4: ./config.sh: Bad substitution ./stream.sh: 29: ./config.sh: Syntax error: "(" unexpected
if found no out i need under ubuntu to use bash stream.sh
but if i execute "bash steam.sh" i get the following error:
$ bash stream.sh ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card [alsa @ 0x563cfd872c40] cannot open audio device hw:Loopback,1,0 (No such device) hw:Loopback,1,0: Input/output error
dont know why this happens, maybe because i use a hosted ubuntu server? Do you have an idea how to solve this?
hmm i found in the readme i need to do now first:
modprobe snd-aloop pcm_substreams=1
but if i type modprobe snd-aloop i get just pack: modprobe: FATAL: Module snd-aloop not found in directory /lib/modules/5.4.0
do you know how to solve this error? I tried already alot "solutions" but nothing worked.
Hi Christian, after starting the stream, can you run
screen -rS lsr_stream
and check whether there are any errors? To detach the screen and return to your normal console, pressCtrl
+A
and thenCtrl
+D
.
Does this work with a VPS (I'm assuming this is the main use for this)? I'm having a similar issue and it may be because of pulseaudio? When running this command after executing the start script, I get infinite: ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card [alsa @ 0x5576680d5f80] cannot open audio device hw:Loopback,1,0 (No such device) hw:Loopback,1,0: Input/output error ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card [alsa @ 0x55a66e1c2f80] cannot open audio device hw:Loopback,1,0 (No such device) hw:Loopback,1,0: Input/output error ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card [alsa @ 0x55e9550b9f80] cannot open audio device hw:Loopback,1,0 (No such device) hw:Loopback,1,0: Input/output error ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card [alsa @ 0x55b4d75a4f80] cannot open audio device hw:Loopback,1,0 (No such device) hw:Loopback,1,0: Input/output error ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card [alsa @ 0x55c5e08d6f80] cannot open audio device hw:Loopback,1,0 (No such device) hw:Loopback,1,0: Input/output error ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card [alsa @ 0x55c910c55f80] cannot open audio device hw:Loopback,1,0 (No such device) hw:Loopback,1,0: Input/output error ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card [alsa @ 0x558664816f80] cannot open audio device hw:Loopback,1,0 (No such device) hw:Loopback,1,0: Input/output error
hey any idea why this script is not working for me? I installed dependencies and replaced the rmtp placeholders in th config with my youtube rmtp link rtmp://a.rtmp.youtube.com/live2/STREAMKEY
But when i do: $ ./lsr.sh --start i just get back: Starting lsr_player... Starting lsr_stream..
But its nothing streamed to YouTube.