torch2424 / live-stream-radio

24/7 live stream video radio station CLI / API 📹 📻
https://torch2424.github.io/live-stream-radio/
241 stars 64 forks source link

Trying to run this on a Raspberry Pi 4 8 GB - Buffering Issues Galore #171

Open toplevelnick opened 3 years ago

toplevelnick commented 3 years ago

Good afternoon. I am a streaming professional and am running the stream at low bit rates. I am using all different kinds of encoding options such as under 1 MB streaming, high CRF numbers, and more. I cannot find the reasoning behind why the Pi cannot keep up with encoding this. The stats on Twitch say that it is unusable and it constantly buffers.

Does anyone mind sharing their config? thanks

torch2424 commented 3 years ago

@toplevelnick Hello! :smile:

Ah! So I will admit, I haven't used / maintained this project in a while as I've been quite busy with the WebAssembly world :hushed:

But, one suggestion I would have, is maybe try the older bash version of the project: https://github.com/torch2424/live-stream-radio/tree/1.2.0

I think Node can be a bit heavy depending on the Pi and what services you have running and things. But this older version should for sure perform a lot better :smile:

toplevelnick commented 3 years ago

Thanks for the quick response. I’ll give it a try.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Aaron Turner @.> Sent: Friday, May 21, 2021 1:06:41 PM To: torch2424/live-stream-radio @.> Cc: Nick @.>; Mention @.> Subject: Re: [torch2424/live-stream-radio] Trying to run this on a Raspberry Pi 4 8 GB - Buffering Issues Galore (#171)

@toplevelnickhttps://github.com/toplevelnick Hello! 😄

Ah! So I will admit, I haven't used / maintained this project in a while as I've been quite busy with the WebAssembly world 😯

But, one suggestion I would have, is maybe try the older bash version of the project: https://github.com/torch2424/live-stream-radio/tree/1.2.0

I think Node can be a bit heavy depending on the Pi and what services you have running and things. But this older version should for sure perform a lot better 😄

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/torch2424/live-stream-radio/issues/171#issuecomment-846184910, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQAPT5LFGTRTEV6TOLJ6V2TTO2VMDANCNFSM45JVPR7A.

toplevelnick commented 3 years ago

So, it doesn't seem to work right. The git clone command in the installer downloads the node version. I did a git clone of the html source and was able to get the right version with the installDeps.sh command. I ran it and when i go to start stream, it says ffmpeg: no process found. and also ffmpeg: error while loading shared libraries: libass.so.5: cannot open shared object file: no such file or directory.

torch2424 commented 3 years ago

@toplevelnick Ah! That's because you must not have ffmpeg installed correctly. There is a script you need to run mentioned in the FFMPEG installation section: https://torch2424.github.io/live-stream-radio/#/raspberry-pi :smile:

I think you should be able to run: ./additionalScripts/compileFFmpeg.sh, which will install FFMPEG for you. And just to let you know, I think it will take about 20-30 minutes to compile on a pi :hushed:

toplevelnick commented 3 years ago

When I ran compileFFmpeg, the terminal window would close out after some time automatically. I think what I did was leave it and moved on but now I rememebr finding the compile script and it would close out. I ran it twice. Any ideas?

torch2424 commented 3 years ago

@toplevelnick

It closes out? :thinking: I think there is something up with your pi than. Because the only thing that would close out a terminal, is an exit, but there isn't one in the script.

But! Do you have an ffmpeg binary in a folder in your project? You may also have to add this binary to your PATH if you have one? :hushed: