Skip to content

A program for extracting hard coded (burned in) subtitle from a video and generating an external subtitle.

Notifications You must be signed in to change notification settings

voun7/Video_Sub_Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Sub Extractor

python version support os

A free program that extracts hard coded subtitles from a video and generates an external subtitle file.

Features

  • Detect subtitle area by searching common area
  • Manual resize or change of subtitle area (click and drag mouse to perform)
  • Single and Batch subtitle detection and extraction
  • Start and Stop subtitle extraction positions can be selected (use arrow keys for precise selection)
  • Resize video display (Zoom In (Ctrl+Plus), Zoom Out (Ctrl+Minus))
  • Non subtitle area of the video can be hidden to limit spoilers
  • Toast Notification available on Windows upon completion of subtitle detection and extraction
  • Preferences available for modification of options when extraction subtitles
  • Multiple languages supported through PaddleOCR. They will be automatically downloaded as needed.

Supported languages

Language Abbreviation Language Abbreviation Language Abbreviation
Chinese & English ch Arabic ar Avar ava
English en Hindi hi Dargwa dar
French fr Uyghur ug Ingush inh
German german Persian fa Lak lbe
Japanese japan Urdu ur Lezghian lez
Korean korean Serbian(latin) rs_latin Tabassaran tab
Chinese Traditional chinese_cht Occitan oc Bihari bh
Italian it Marathi mr Maithili mai
Spanish es Nepali ne Angika ang
Portuguese pt Serbian(cyrillic) rs_cyrillic Bhojpuri bho
Russian ru Bulgarian bg Magahi mah
Ukranian uk Estonian et Nagpur sck
Belarusian be Irish ga Newari new
Telugu te Croatian hr Goan Konkani gom
Sanskrit sa Hungarian hu Norwegian no
Tamil ta Indonesian id Polish pl
Afrikaans af Icelandic is Romanian ro
Azerbaijani az Kurdish ku Slovak sk
Bosnian bs Lithuanian lt Slovenian sl
Czech cs Latvian lv Albanian sq
Welsh cy Maori mi Swedish sv
Danish da Malay ms Swahili sw
Maltese mt Adyghe ady Tagalog tl
Dutch nl Kabardian kbd Turkish tr
Uzbek uz Vietnamese vi Mongolian mn
Abaza abq

Download

Microsoft Visual C++ Redistributable must be installed. The program will not start without it.

Demo

Demo Video

Setup Instructions

Download and Install:

Latest Version of Microsoft Visual C++ Redistributable

Install packages

For GPU

conda install paddlepaddle-gpu==2.6.1 cudatoolkit=11.6 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge

For CPU

pip install paddlepaddle==2.6.2

Other packages

pip install -r requirements.txt

Run gui.py to use Graphical interface and main.py to use Terminal.

Compile Instructions

Install package

pip install Nuitka==2.6.4

Compile command:

nuitka --standalone --enable-plugin=tk-inter --windows-console-mode=disable --include-package-data=paddleocr --include-data-files=VSE.ico=VSE.ico --windows-icon-from-ico=VSE.ico gui.py

Run compiled program:

.\gui.dist\gui.exe

gui.exe can be manually renamed to VSE.exe