joshieDo / mpv-sub-streamer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mpv-sub-streamer

Streams subtitles into a webpage. Made possible by mpvacious copying subtitles into the clipboard. Also, offers basic remote playback control and the possibility to add the subtitle media to the last added Anki card.

  1. Start server on playing device.
  2. Open page on your phone with KiwiBrowser + Yomichan.
  3. Start video on playing device.
python main.py 0.0.0.0:5000

# Controls

  • previous subtitle
  • back
  • play/pause
  • forward
  • next subtitle
  • anki:
    • adds subtitle media clip to the last added Anki card
    • only works if Yomichan is connected to the playing device's AnkiConnect.

# Requirements

  • pip install Flask pyautogui flask-sock
  • mpvacious
    • subs2srs.conf: autoclip=yes
  • xclip (clipboard)
  • tkinter (remote control with hotkeys)
  • AnkiConnect*

# Screenshot

Screenshot

About


Languages

Language:HTML 56.1%Language:Python 43.9%