Nếu là cái đang livestream (chưa tắt) thì nó ở mục subtitle ấy, bạn ấn vào bật sub lên, còn tắt rồi (mất chữ LIVE đỏ) thì bó tay vì Youtube nó không lưu lại chatlog.
Để bật Live Chat bạn làm như sau:
- Mở mpv.conf lên
- Thêm
ytdl-raw-options-append=sub-langs=en,en-US,eng,vi,vi-VN,vie,ja,ja-JP,jap,live_chat
- Sửa tùy ý, nếu bạn đã có sẵn
sub-langs=
thì thêm ,live_chat
vào thôi.
Video (hình như không ai chat trên Youtube nên không thấy):
https://streamable.com/z1wf87
Bạn có thể thử plugin sau:
https://github.com/BanchouBoo/mpv-youtube-chat
Tải về bỏ vào thư mục
scripts
trong
portable_config
.
Sau đó mở file input.conf lên, thêm
CTRL+j script-message load-chat
vào cuối cùng, mở stream YT lên rồi ấn Ctrl + J để mở livechat lên.
Ngoài ra để script trên chạy trên Windows, mở file
main.lua
lên sửa dòng
opts['live-chat-directory'] = is_windows and 'C:/' or (xdg_data_home .. '/youtube-live-chats')
thành
opts['live-chat-directory'] = is_windows and 'D:\\' or (xdg_data_home .. '/youtube-live-chats')
hoặc
opts['live-chat-directory'] = is_windows and 'C:\\' or (xdg_data_home .. '/youtube-live-chats')
Hình như chả có ai chat ở cái stream này cả hoặc kênh nó tắt chat đi thì phải, test kiểu gì cũng trắng trơn. Nếu bạn có cái livestream nào đang chat thì gửi mình link để test.