live-stream-radio icon indicating copy to clipboard operation
live-stream-radio copied to clipboard

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

Open toplevelnick opened this issue 4 years ago • 6 comments

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

toplevelnick avatar May 21 '21 18:05 toplevelnick

@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:

torch2424 avatar May 21 '21 19:05 torch2424

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 avatar May 21 '21 19:05 toplevelnick

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.

toplevelnick avatar May 23 '21 21:05 toplevelnick

@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:

torch2424 avatar May 25 '21 18:05 torch2424

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?

toplevelnick avatar May 26 '21 00:05 toplevelnick

@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:

torch2424 avatar May 26 '21 18:05 torch2424