All Projects → CrendKing → mpv-twitch-chat

CrendKing / mpv-twitch-chat

Licence: MIT License
Show Twitch chat messages as subtitles when watching Twitch VOD with mpv.

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to mpv-twitch-chat

mpv-scripts
A collection of scripts for mpv player
Stars: ✭ 138 (+411.11%)
Mutual labels:  mpv, mpv-scripts
TwitchBot
Custom C# chat bot for Twitch TV
Stars: ✭ 33 (+22.22%)
Mutual labels:  twitch, twitch-chat
Orion
Cross platform Twitch.tv client
Stars: ✭ 298 (+1003.7%)
Mutual labels:  twitch, mpv
twurple
Interact with Twitch's API, chat and subscribe to events via PubSub and EventSub.
Stars: ✭ 479 (+1674.07%)
Mutual labels:  twitch, twitch-chat
twitch2dcs
DCS World mod that allows twitch chat to be viewed inside the game
Stars: ✭ 24 (-11.11%)
Mutual labels:  twitch, twitch-chat
glitch
!NO MORE MAINTAINED! Reactive API Wrapper for Twitch in Kotlin/JVM
Stars: ✭ 12 (-55.56%)
Mutual labels:  twitch, twitch-chat
StreamLinkerino
Twitch.tv client using only StreamLink, MPV, and Chatterino
Stars: ✭ 26 (-3.7%)
Mutual labels:  twitch, mpv
twitchpipe
Pipe your favorite Twitch streams to the media player of your choice, or a file to save them for later. Supports low-latency playback.
Stars: ✭ 28 (+3.7%)
Mutual labels:  twitch, mpv
live-stream-recorder
Monitor and record live streams from YouTube, OPENREC, TwitCasting, etc. Made for VTuber fans. (VTuber 直播自动录像脚本)
Stars: ✭ 297 (+1000%)
Mutual labels:  twitch
Firebot
A powerful all-in-one bot for Twitch streamers
Stars: ✭ 162 (+500%)
Mutual labels:  twitch
own3dpro-obs-plugin
OWN3D Pro OBS Plugin
Stars: ✭ 25 (-7.41%)
Mutual labels:  twitch
dotfiles
Config files for i3, polybar, rofi, mpv, Xresources, kitty and some bash-things...
Stars: ✭ 52 (+92.59%)
Mutual labels:  mpv
mpv
mpv remote control library written in golang
Stars: ✭ 35 (+29.63%)
Mutual labels:  mpv
TwitchGrobs
Twitch drops watcher for Rust and other games
Stars: ✭ 33 (+22.22%)
Mutual labels:  twitch
vulcan
Server-less Twitch chat-bot using Azure functions & transient containers
Stars: ✭ 23 (-14.81%)
Mutual labels:  twitch
TwitchCompilationCreator
A fully automated system that transforms Twitch clips into gaming compilations
Stars: ✭ 172 (+537.04%)
Mutual labels:  twitch
kaa.si-cli
Stream anime from kaa.si and sync with anilist
Stars: ✭ 12 (-55.56%)
Mutual labels:  mpv
recent-messages2
Service to provide historical messages to Twitch chat clients
Stars: ✭ 21 (-22.22%)
Mutual labels:  twitch
Harmonbot
Multi-Platform Factotum Bot
Stars: ✭ 30 (+11.11%)
Mutual labels:  twitch
mpv-youtube-download
A userscript for MPV that allows you to download youtube audio and video with one key press 💾
Stars: ✭ 16 (-40.74%)
Mutual labels:  mpv

mpv Twitch Chat

Show Twitch chat messages as subtitles when watching Twitch VOD with mpv.

mpv internally uses youtube-dl to handle Twitch VOD URL. In addition to the regular video track, it also adds a "rechat" subtitle track. This track points to the Twitch API videos/<video_id>/comments, which contains the full transcript of a VOD's chat messages in JSON. Unfortunately, mpv can't directly consume the JSON as subtitle. This script converts it into a SubRip subtitle track so that mpv can directly display the chat messages.

Note that since subtitle is text-based only, all Twitch emotes are shown as text.

Features

  • Configurable to show commenter's name.
  • Configurable to show colored messages.
  • Configurable message duration.
  • Friendly to mpv's built-in subtitle options.

Requirement

Install

Best way to install is git clone this repo in mpv's "scripts" directory. This approach allows easy update by simply git pull.

Alternatively, one can download the repo as zip and extract to mpv's "scripts" directory. Updates must be made manually.

Script option file should be placed in mpv's script-opts directory as usual. Options are explains in the script file.

Usage

To activate the script, play a Twitch VOD and switch on the "rechat" subtitle track. The script will replace it with its own subtitle track.

You can use mpv's auto profiles to conditionally apply special subtitle options when Twitch VOD is on. For example,

[twitch]
profile-cond=get("path", ""):find("^https://www.twitch.tv/") ~= nil
profile-restore=copy-equal
sub-font-size=30
sub-align-x=right
sub-align-y=top

makes the Twitch chat subtitles smaller than default, and moved to the top right corner.

Screenshot

Screenshot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].