torch2424 / live-stream-radio

24/7 live stream video radio station CLI / API 📹 📻

Home Page:https://torch2424.github.io/live-stream-radio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stream always stopping after 12 hours (youtube)

between2d opened this issue · comments

Hi again!
I'm noticing that my stream always goes offline after around 12 hours. It gives me this error:

encoder : LAME 3.100
Input #2, lavfi, from '.anullsrc':
Duration: N/A, start: 0.000000, bitrate: 705 kb/s
Stream #2:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
rtmp://a.rtmp.youtube.com/live2/(yeah): Input/output error

ffmpeg stdout:

ffmpeg err: Error: ffmpeg exited with code 1: rtmp://a.rtmp.youtube.com/live2/(yeah): Input/output error

at ChildProcess . (/home/(yeah)/.nvm/versions/node/v12.1.0/lib/node_modules/Iive-stream-radio/node_modules/fluent-ffmpeg/lib/processor.js:182:22)

ffmpeg encountered an error.

Please see the stderror output above to fix the Issue.

any ideas?

Did you get any output from ffmpeg (usually a wall oftext with errors)?

@between2d

So I did some research in the past, and I can't find the issue I closed that mentioned it. But this is on Youtube's end. They tend to just kill off (by closing the connection for a few seconds) of any long running streams after a while, and it's kind of random when they do it. Personally, my streams can get killed anywhere from like 6 hours, to like 6 days.

Feel free to look through the issues for it, but the original piStreamRadio had this problem as well, and found a discussion of this from some super random ffmpeg forum having the exact same problem :(

Let me know if this helps! But I think we may want to close this as can't fix. Unless, you have like an experience of something like OBS never getting closed. 🤔

Thanks! 😄

My theory is, that YouTube kills off your connection once their servers switch around in their server centers. I know FlareTV (the person who had the 24/7 Pewdiepie vs. T-Series stream which was live from september 2018 till april 2019) had similar problems.

I'm gonna close this issue due to inactivity (and because of the mentioned thoughts that it might be something on YouTube's end).

Feel free to reopen this issue if you believe this issue happens because of live-stream-radio.