LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-16-2024, 08:38 AM   #1
Eeel
Member
 
Registered: Feb 2012
Location: EU
Distribution: Slackware 15 and current
Posts: 94

Rep: Reputation: Disabled
Two Slackbuilds to convert bluray PGS subtitle to text SRT subtitle with Tesseract


Trying to accomplish this non trivial task i have tested command line tools to convert blu-ray/mkv/.sup hdmv_pgs_subtitle codec to text based .srt subtitle using Tesseract and made two Slackbuilds in case anyone is interested.

This one seems to work the best for old and recent files, require Dotnet:

PgsToSrt

This one works well for recent files and don't have any other dependency than Tesseract:

sup2srt

After conversion running Gaupol (Slackbuild) to "Correct text" and "Spellcheck" is required for a result simmilar to what can be found on Opensubtitles.

note: they only have been tested on Current.

Last edited by Eeel; 03-16-2024 at 09:04 AM.
 
Old 03-19-2024, 07:59 AM   #2
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 15.0 x64, Slackware Live 15.0 x64
Posts: 618

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Very nice! Thank you.
 
  


Reply

Tags
blu-ray, conversion, mkv, subtitles



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I extract plain text from a srt file (subtitle) by eliminating the time codes? Roben Programming 3 08-18-2021 06:14 PM
[SOLVED] ffmpeg and subtitle .srt Linpassion Slackware 5 06-02-2021 08:15 AM
[SOLVED] plan 2 buy sys76 or zareason laptop with dvd/ bluray, pref bluray. heard probs with l catheadpeople Linux - Newbie 1 08-17-2013 07:37 PM
With Tesseract, how do I convert a tiff image to text via terminal? LAPIII Linux - Software 2 01-06-2012 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration