Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

A Python script that automatically starts a restream of a YouTube Livestream using OBS

License

Notifications You must be signed in to change notification settings

massimo-rnd/youtube-restream-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release (latest by date including pre-releases)

.NET Version GitHub last commit


GitHub All Releases GitHub closed issues GitHub issues

Youtube Restream Bot

A Python script that automatically starts a restream of a YouTube Livestream using OBS

Table of Contents


About

YouTube Restream Bot is a Python script that automatically starts a restream of a YouTube Livestream using OBS. It uses Google's YouTube API V3 to detect if a channel is live and OBS's Websocket Plugin to send the Start/Stop Streaming Command.


Features

  • ✅ Detect if a Channel starts a Livestream
  • ✅ Automatically Starts/Stops the Stream in OBS

Installation

Download the latest version

To start off, please head to the releases page and download the latest release version.

Setting Up OBS

Please make sure to have the OBS Websocket Plugin installed.

Set up your OBS Streaming credentials as you always would and Enable the Websocket Plugin.

Entering credentials

Create a project in the Google Cloud console and enable the YouTube Data API V3.

Open the youtube-restream-bot.py in a text editor of your choice and enter API_KEY for YouTube's API, CHANNEL_ID for your Source-Channel ID and OBS_WEBSOCKET_PASSWORD.

You might also want to change the check-interval, which is set to 60 seconds per default.

Launch the application

Launch the application in terminal using python3 youtube-restream-bot.py


Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature-name)
  5. Open a pull request

License

This project is licensed under the MIT License.


Contact

Feel free to reach out if you have any questions or suggestions!


About

A Python script that automatically starts a restream of a YouTube Livestream using OBS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages