NoniDOTio / LiveStreamRadio

Lightweight 24/7 Twitch and YouTube Music Radio using FFMPEG
https://noni.io
MIT License
42 stars 17 forks source link

Wont stream #3

Open ChristianErdtmann opened 2 years ago

ChristianErdtmann commented 2 years ago

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.

NoniDOTio commented 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.

ChristianErdtmann commented 2 years ago

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.

NoniDOTio commented 2 years ago

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.

ChristianErdtmann commented 2 years ago

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

ChristianErdtmann commented 2 years ago

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?

ChristianErdtmann commented 2 years ago

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.

manuva commented 8 months 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.

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