https://github.com/itslemax/youtube-video-stream-text
Saves title, author and thumbnail of YouTube videos using Chrome for stream overlays
https://github.com/itslemax/youtube-video-stream-text
obs obs-studio open-broadcaster-software stream text video youtube
Last synced: 2 months ago
JSON representation
Saves title, author and thumbnail of YouTube videos using Chrome for stream overlays
- Host: GitHub
- URL: https://github.com/itslemax/youtube-video-stream-text
- Owner: ItsLeMax
- License: agpl-3.0
- Created: 2024-05-01T02:05:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-13T00:14:05.000Z (5 months ago)
- Last Synced: 2025-01-29T08:44:48.242Z (4 months ago)
- Topics: obs, obs-studio, open-broadcaster-software, stream, text, video, youtube
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YouTube Video Stream Text
Saves title, author and thumbnail of YouTube videos using Chrome for stream overlays
## Requirements
> ...that are necessary:
- [Google Chrome](https://www.google.com/chrome/de/download-chrome/)
> ...that may have working alternatives:
- [Node](https://nodejs.org/en/download/prebuilt-installer)
- Windows
> ...that have working alternatives:
- [7-Zip](https://7-zip.de/download.html)## Setup
1. Download the source code by clicking on `<> Code` & `Download ZIP` and extract its content.\

2. Open the root folder and inside it the terminal (typing `cmd` inside the file explorer path works) and execute `npm i`.\
\

3. (Optional) Open `/run/config.json` and change some settings that you want to change.

> `updateInterval` describes an update every specified amount of milliseconds.\
> `prependSpaceForOBS` adds a space in front of title and author to compensate the spacing at the end of text elements.\

4. Run `start-chrome.bat` inside `/run/` first, `run-script.cmd` right after and follow the guide.\

5. Open your broadcasting software and import the files of `/data/` as needed. Inside OBS, you can create an element by right clicking in sources and clicking on `add`. You may use `Text (GDI+)` for `title.txt` and `author.txt` and `Image` for `thumbnail.jpeg`.\
\
After entering a unique name, you need to click on `Browse` and navigate to the downloaded code and `/data/` and select the file you desire.\


\
Feel free to resize the elements as needed.
> Please note, that text elements need to have `Read from file` checked first.\
### Important
It is highly recommended to fixate the image size for the case that the script uses a low quality backup thumbnail. You can do so by right clicking the Image in sources, hovering on `Transform` and clicking on `Edit Transform...` right after.\
\
Set `Bounding Box Type` to `Stretch to bounds`, the `Bounding Box Size` to a size you want the image to always have and other settings that you'd like to use as seen in the image.\
## Known Errors and how to fix them
- `Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:readline/promises`\
This error occurs if your node version is not up to date. You can update it using the installer [here](https://nodejs.org/en/download/prebuilt-installer). If newer versions also throw this error, you may use `v22.2.0`.