Skip to content
/ livecpu Public

Easily live stream looped videos or single videos to YouTube for free.

Notifications You must be signed in to change notification settings

cmdwm/livecpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Easily live stream looped videos or single videos to YouTube for free.

Static Badge Static Badge Static Badge


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.

Getting started

First you'll need to clone this repository into your preferred IDE, and get the server running.
  1. Upload a video you'd like to loop/play as input.mp4 or try it out with the sample video.

  2. 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 your stream_key on youtube.com/live_dashboard after creating your live event. The file_name variable is the uploaded file path from step one.

  3. 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

Debugging

  • 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.

About

Easily live stream looped videos or single videos to YouTube for free.

Topics

Resources

Stars

Watchers

Forks