Trên GitHub, 9001/softchat đã đạt 60 sao, ngôn ngữ Python. convert twitch/youtube chat into softsubs
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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
open Internet Explorer (yes really) and access each of these URLs once:
https://pypi.org/ (to install stuff with pip)
https://raw.githubusercontent.com/ (if you use ytdl-tui)
https://youtube.com/ (no need to accept cookies or consent to whatever, just accessing it is enough)
apparently this is how windows loads certificates into the cert-store? ms pls
missing cookies
symptoms:
youtube-dl failing because the video is members-only
chat-downloader spamming a bunch of javascript then exiting
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
install the following addon: https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/
access youtube.com, click the extension icon, [Current Site]
save as cookies.txt into your VODs folder (next to the noto-hinted folder)
ytdl-tui will now avoid the issue
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.
one way to do this: adding the argument --vf=fps=120 every time
another way is adding the following line to input.conf, which lets you press shift-U to toggle upscaling to 120 fps:
U vf toggle fps=120
on linux/mac, input.conf should be here: ~/.config/mpv/input.conf
on windows, input.conf should be here: %appdata%\mpv\input.conf
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:
doesn't ruin the contrast
doesn't make the text blurry
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
--emote_sz 3 and higher makes things collide (wontfix probably)
about
superchats will display for 2x the time and with inverted colors
moderator messages are emphasized
(larger outline, and prefixed with a ball)
mode 1, sidebar chat, creates a huge amount of subtitle events
which many media players (including mpv) will struggle with
for example, seeking will take like 5sec
you can fix this by muxing the subtitle into the vid: ffmpeg -i the.webm -i the.ass -c copy muxed.mkv
mode 2, danmaku, will look blurry and/or jerky in most players
unless you have the subtitles render at your native screen res
for example in mpv you could add these arguments: --vo=direct3d --sub-delay=-2 --vf=fps=90
replace 90 with your monitor's fps
after an upgrade, you can reconvert old rips like this: grep -lE '^Title: .*softchat' -- *.ass | tr '\n' '\0' | xargs -0rtl python3 -m softchat -m2 --
youtube VOD chatlogs are incomplete (about 80% of messages are lost)
so softchat can now take multiple chat JSONs to splice together:
it is recommended to run chat_replay_downloader.py twice,
first when the stream is live and then afterwards for the VOD chat;
when running softchat, the VOD json should be the first file provided,
followed by any live recordings to splice messages from
on windows, --kana requires python 3.8 or newer
on macos, --kana is currently busted in macports on sonoma
dependencies
chatrips must be made using https://github.com/xenova/chat-downloader
softchat will be updated as the output format of chat-downloader changes
a copy of NotoSansCJKjp-Regular.otf in a folder named noto-hinted
Có — 9001/softchat phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/9001/softchat.
9001/softchat có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho 9001/softchat. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
9001/softchat có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho 9001/softchat. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
9001/softchat còn đang phát triển không?
Commit gần nhất trên 9001/softchat là 2.0 năm trước (theo timestamp GitHub). Repo có 6 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
9001/softchat dùng license gì?
9001/softchat phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc thêm về 9001/softchat ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/9001/softchat là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
softchat có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về softchat.