All Projects → oltodosel → Intersubs

oltodosel / Intersubs

Licence: mit
Interactive subtitles for mpv. Instantly translate selected word/sentence.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Intersubs

immersive
Language learning mpv script for looking up words within mpv and generating Anki cards
Stars: ✭ 43 (-61.26%)
Mutual labels:  mpv, subtitles
mpvacious
Adds mpv keybindings to create Anki cards from movies and TV shows.
Stars: ✭ 286 (+157.66%)
Mutual labels:  mpv, subtitles
Subtitletranslate
Translate the subtitle file into other language
Stars: ✭ 45 (-59.46%)
Mutual labels:  subtitles
Submerger
SRT Subtitles Merger
Stars: ✭ 92 (-17.12%)
Mutual labels:  subtitles
Jftui
Jellyfin Terminal User Interface
Stars: ✭ 72 (-35.14%)
Mutual labels:  mpv
Dotfiles
My awesome dotfiles 🚀
Stars: ✭ 47 (-57.66%)
Mutual labels:  mpv
Subsync
Synchronize your subtitles using machine learning
Stars: ✭ 84 (-24.32%)
Mutual labels:  subtitles
Addic7ed Ruby
Ruby script to fetch subtitles on Addic7ed (auto-downloader)
Stars: ✭ 43 (-61.26%)
Mutual labels:  subtitles
Mpvc
An mpc-like control interface for mpv.
Stars: ✭ 94 (-15.32%)
Mutual labels:  mpv
Parsing With Haskell Parser Combinators
🔍 A step-by-step guide to parsing using Haskell parser combinators.
Stars: ✭ 72 (-35.14%)
Mutual labels:  subtitles
Pasta
Audio & Subtitle Track Changer for Plex
Stars: ✭ 90 (-18.92%)
Mutual labels:  subtitles
Sub Tv Cli
Downloading your series subtitles via terminal 📺
Stars: ✭ 63 (-43.24%)
Mutual labels:  subtitles
Subloader
Subloader is a simple and minimalistic subtitle downloader that enables you to quickly find and download subtitles for your video files.
Stars: ✭ 53 (-52.25%)
Mutual labels:  subtitles
Caption
Get Caption, start watching.
Stars: ✭ 1,258 (+1033.33%)
Mutual labels:  subtitles
Youtube Extension
🔴YouTube Extension🧰>80 Features ⭐Please document, code or donate📌Tidy📌Longest-standing(2012)(Users>350000)⋮🎞️🎛️🎧⚙️🎬🔊☕🎨🧩🧪📈⏯️(Player: Repeat Screenshot Rotate; Hide related video distraction. Always expand video Description. Playback speed. Video Quality bandwidth H.264 electricity. Player Size Full Window. Themes Customization. Statistics. Reverse Playlist YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube YouTube Youtube enhancer YouTube app YouTube video YouTube YouTube YouTube api v3 YouTube playback YouTube player VP8 VP9 AV1 vidIQ tubebuddy download adblocker adblock ads sponsorblock addon youtube music ⭐ youtube premium css css4 html5 ytdl youtube-dl invidious iridium ParticleCore youtube+ youtube++ youtube-plus maia-yt youtube nonstop youtube control center vlogger vlog h264ify h264 m.youtube.com music.youtube.com studio.youtube youtube mobile youtube studio ⭐ kids Vanced gaming.youtube.com gaming youtubecenter freetube lite-youtube-embed newpipe youtube-dl-gui mps-youtube nuclear pytube awesome youtubers youtube downloader 8k 4k 60fps 30fps youtubeexplode vidgear k-lite tubebuddy adobe apple ios iphone design simplify ffmpeg premiere designer annoyance youtube upload
Stars: ✭ 1,027 (+825.23%)
Mutual labels:  subtitles
Ytcc
Command line tool to keep track of your favorite playlists on YouTube and many other places.
Stars: ✭ 92 (-17.12%)
Mutual labels:  mpv
Bubblesub
Simple extensible ASS subtitle editor for Linux
Stars: ✭ 45 (-59.46%)
Mutual labels:  subtitles
Mpv Scripts
Scripts I've made or adapted from others
Stars: ✭ 62 (-44.14%)
Mutual labels:  mpv
Subed
Subtitle editor for Emacs
Stars: ✭ 77 (-30.63%)
Mutual labels:  subtitles
Aegisub Motion
Lua plugin for Aegisub auto4 that parses motion tracking data and applies it to selected subtitles.
Stars: ✭ 109 (-1.8%)
Mutual labels:  subtitles

interSubs

Interactive subtitles for mpv, that was made to help study languages.
Easily tweaked and customizable.

v. 2.10 - Changelog at the bottom.
If Qt version doesn't work for you - use Tk. It was abandoned(2017), but maybe still works.

z 00_00_5 75-00_00_19 96

    00:02:23,046 --> 00:02:25,990
    bla bla
    00:02:28,020 --> 00:02:33,084
    waka waka
    
    00:02:23,046 --> 00:02:28,020
    bla bla
    00:02:28,020 --> 00:02:33,084
    waka waka

Requirements

  • mpv 0.27 (I don't know if it will work with mpv front-ends.)
  • python => 3.6
  • composite manager; xcompmgr or sth.
  • pyqt5 (pip/pacman/etc)
  • numpy (pip/pacman/etc)
  • beautifulsoup4 (pip/pacman/etc)
  • requests (pip/pacman/etc)
  • python-lxml
  • lua
  • socat
  • pkill
  • xdotool (for hiding subtitles when minimizing mpv or switching window)
  • optional: chromium (for external translation, other browser can be specified)
  • optional: wget (for listening to pronunciation)

Installation

  • mv interSubs.py interSubs.lua interSubs_config.py ~/.config/mpv/scripts/;
  • Edit configuration file interSubs_config.py
  • Edit interSubs.lua to add option where interSubs will start automatically.
  • For Mac also edit configuration at interSubs.lua
  • On KDE(kwin) go to composite and uncheck "Allow applications to block compositing". Screenshot.
  • For Windows - port it yourself. (It does NOT work on Windows. reason)

Usage

  • Start video with mpv & select subtitles.
  • F5 to start/stop interSubs.
    • Starts automatically with files/paths specified in interSubs.lua
  • Point cursor over the word to get popup with translation.
  • F6 to hide/show without exiting.

Buttons bellow may be reassigned in config

  • Left-click - show translation in your browser.
  • Right-click - listen to pronunciation.
  • Wheel - scroll through transitions in popup.
  • Wheel+Ctrl - resize subtitles.
  • Wheel+Shift - change subtitles' vertical position.
  • Wheel-click - cycle through auto_pause options.
  • Wheel-click-left/right - +/- auto_pause_min_words. (fancy mouses)
  • Back-click - translate whole sentence. (fancy mouses)

Important

  • May have issues working in a multi-monitor system. See the solution.
  • On KDE subtitles might sometimes be invisible. See the solution.
  • Instead of changing system settings you may change --x11-bypass-compositor
  • Stuttering video during subtitles change might be solved by changing mpv's video output mpv --vo gpu.

Changelog

  • 2.0a

    • Configs are incompatible with previous version.
    • Tk is abandoned in favor of Qt.
      • Background can be fully transparent or semi/fully opaque.
      • Rendering is faster than with Tk.
      • requires pyqt5 for python 3
        • pip install pyqt5 / pacman -S python-pyqt5
      • requires composite manager for not solid bg; xcompmgr or sth.
      • tested on Openbox, i3, KDE(kwin).
      • On KDE(kwin) go to composite and uncheck "Allow applications to block compositing". screenshot
    • No more stalling when pointing on a wrong word; those words will be translated and saved in background.
    • R2L isn't ready yet.
    • Option to not save translations on the disk was removed.
    • Noun colorization was removed.
    • Randomization of translations was removed.
    • Option to show N of previous subtitles is suspended for now, I might add it in the future.
    • Tk version won't be updated unless something critical happens.
  • 2.1

    • R2L support (checked on Hebrew; works more or less).
    • Minor corrections.
  • 2.2

  • 2.3

    • Added option to limit extension of subtitles during long scenes without talking.
      • extend_subs_duration_limit_sec = 15
    • Updated https://translate.google.com/
      • Now it gives complete output instead of single result.
      • mtranslate_google -> google
    • Added http://www.morfix.co.il/
      • morfix
    • Minor error corrections.
  • 2.4

    • Fixed non-working deepl.com
    • Minor corrections.
  • 2.5

    • Added option to hide/show interSubs without exiting - F6
    • Minor corrections.
  • 2.6

    • Fixed inability to start after update to pyqt5 5.11.3 or sth in that area. Didn't look for version that causes it specifically.
  • 2.7

    • Fixed residual flickering of previous lines during subtitles change. Began to happen at qt5.12 or so.
  • 2.8

    • Fixed gtts/pons pronunciation.
    • Fixed google-translation.
  • 2.9

    • Added google-translation for full sentences(default mouse Back-click):
      • f_translation_full_sentence to bind to mouse instead of f_deepl_translation
      • in config translation_function_name_full_sentence = 'google'
  • 2.10

    • Fixed google-translation
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].