Easily live stream looped videos or single videos to YouTube for free.
With LiveCPU, you can create a 24/7 loop stream from a video (for as long as your server is alive), or play a single video then automatically end stream when it's done. First you'll need to clone this repository into your preferred IDE, and get the server running.
-
Upload a video you'd like to loop/play as
input.mp4
or try it out with the sample video. -
Edit your config.json file. The
loop
variable is essentially asking if you are looping a video (true
) or playing it once (false
). You can find yourstream_key
on youtube.com/live_dashboard after creating your live event. Thefile_name
variable is the uploaded file path from step one. -
Run the project. You can do this many ways, but universally just type
node .
into the console. If you recieve any errors, your stream key is probably wrong or the video file path does not exist.
livecpu_demo.mov
-
VIDEO QUALITY ISSUES (Buffering): Your stream is sent to YouTube with low settings, as most servers don't have the power for a smooth, high quality stream — this is our way of handling buffering.
- If you still experience buffering, your server does not have enough power to run even the worst stream possible, so you should probably upgrade it.
-
"CANNOT READ UNDEFINED" (Shell Error): If you experience this error while trying to start your stream, it probably means you messed something up in the formatting of
config.json
. See this repository's config.json file for an example.
With that being said, please do not open issues for either of the above problems unless the stream is literally not sent to YouTube's RMTP server at all and you see it's not being ingested on the live dashboard. We tested this with a cheap ass server and it worked fine.