9001 / softchat

convert twitch/youtube chat into softsubs
MIT License
27 stars 2 forks source link

softchat

quality

readme TOC

howto

windows users:

first-time setup

regular usage

checking for updates

update to the latest version by running this:

python3 -m pip install --user -U softchat chat-downloader

this does not cover ytdl-tui; to check for ytdl-tui updates, run it and press uu

common problems

certificate errors on windows

errors like the following:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

missing cookies

symptoms:

note: generally ytdl-tui should handle most of these scenarios, so you could try that first, otherwise read on

let's export your cookies and make them available to chat-downloader and youtube-dl; should dodge captchas, make it possible to donwload members-only stuff, and also fix the recent consent requirement from EU members

repeat these steps if it breaks again

if you run chat-downloader manually instead of ytdl-tui, append these arguments: -c cookies.txt

.

advice

mpv is the recommended player, however in danmaku mode, you should resample the video to your monitor's FPS.

additionally, on windows you may need to --vo=direct3d and not fullscreen for resampling to work -- try the different alternatives in --vo=help and find one which:

  1. doesn't ruin the contrast
  2. doesn't make the text blurry
  3. doesn't make the text jitter

The fonts produced by --emote_font need to be somewhere your media player can see them (either embedded, or in some autoload folder, or installed as system fonts). Set --emote_install to install fonts into ~/.config/mpv/fonts/ (Linux/macos) or %appdata%\mpv\fonts (windows) for local playback using mpv. For other media players, or if you intend to share the subtitles, you should use --embed_files as each font is specific to that particular subtitle file and they need to be used together.

Override automatically vectorized emotes by creating a ".manual.svg" file in the cache directory. So for the emote UCS9uQI-jC3DE0L4IpXyvr6w_Do6dXuL6LZCQ_AP4-buoDQ create the file UCS9uQI-jC3DE0L4IpXyvr6w_Do6dXuL6LZCQ_AP4-buoDQ.manual.svg. This can be used for emotes where the automatic version is of low quality.

Similarly, rather than using --emote_fill to fill the background of all emotes, you can create an empty file named UCS9uQI-jC3DE0L4IpXyvr6w_Do6dXuL6LZCQ_AP4-buoDQ.bg to enable bg-fill for just that one emote.

bugs

about

dependencies

note: on windows, cmd must be reopened after installing dependencies

maintainers