Git Product home page Git Product logo

livecpu's Introduction


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.

livecpu's People

Contributors

cmdwm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.