LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2018, 11:40 AM   #1
Mr. Macintosh
Member
 
Registered: Sep 2015
Distribution: Debian
Posts: 297

Rep: Reputation: 60
Subtitle Downloader


I'm starting to get into Blu-Rays, and I've hit a roadblock with the subtitles. I've tried converting them, but I haven't really found any programs that can convert them; except SubtitleComposer, which doesn't work due to a packaging issue.

At this point, it seems like my best option is to just download the subtitles. Ideally, I'd like a subtitle downloader that can download the subtitles for say, 20 episodes of a TV show right in a row, without my intervention on my part. I've tried a few different programs and add-ons for downloading subtitles, but I haven't really had any luck so far. I've also tried downloading straight from OpenSubtitles.org, which is where those programs and add-ons get the subtitles from, but to no avail. As for programs, I've tried SubDownloader and SMPlayer (which can download subtitles). I've also tried an add-on for VLC which is supposed to be able to download subtitles, though on a per-video basis.

Are there any currently working programs for downloading subtitles?
 
Old 01-29-2018, 11:52 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,742

Rep: Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982
Quote:
Originally Posted by Mr. Macintosh View Post
I'm starting to get into Blu-Rays, and I've hit a roadblock with the subtitles. I've tried converting them, but I haven't really found any programs that can convert them; except SubtitleComposer, which doesn't work due to a packaging issue.

At this point, it seems like my best option is to just download the subtitles. Ideally, I'd like a subtitle downloader that can download the subtitles for say, 20 episodes of a TV show right in a row, without my intervention on my part. I've tried a few different programs and add-ons for downloading subtitles, but I haven't really had any luck so far. I've also tried downloading straight from OpenSubtitles.org, which is where those programs and add-ons get the subtitles from, but to no avail. As for programs, I've tried SubDownloader and SMPlayer (which can download subtitles). I've also tried an add-on for VLC which is supposed to be able to download subtitles, though on a per-video basis.

Are there any currently working programs for downloading subtitles?
Downloaders are going to be a bit difficult, since a LOT of things would have to be named correctly to get them to auto-download. But if you have the disc, why bother downloading? Either subtitle edit or handbrake can do what you're after...which is ripping just the subtitle track to a .srt file, so you can burn them in/include them in the re-encode. mkvextract *may* work as well..haven't tried it on a BluRay disc, though.

Easiest thing to do is rip the disc with makemkv, and select the "forced only" option. Anything not in English (or whatever the 'default' language of the disc is), will be subtitled. May also have to play with options to select the right subtitle track.

Last edited by TB0ne; 01-29-2018 at 11:54 AM.
 
Old 01-29-2018, 06:56 PM   #3
Mr. Macintosh
Member
 
Registered: Sep 2015
Distribution: Debian
Posts: 297

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by TB0ne View Post
Downloaders are going to be a bit difficult, since a LOT of things would have to be named correctly to get them to auto-download. But if you have the disc, why bother downloading? Either subtitle edit or handbrake can do what you're after...which is ripping just the subtitle track to a .srt file, so you can burn them in/include them in the re-encode. mkvextract *may* work as well..haven't tried it on a BluRay disc, though.

Easiest thing to do is rip the disc with makemkv, and select the "forced only" option. Anything not in English (or whatever the 'default' language of the disc is), will be subtitled. May also have to play with options to select the right subtitle track.
That's what I wanted to do originally. I've managed to use MKVToolNix to extract the subtitles from the videos. Now I need to be able to convert them to SRTs.

Unfortunately, Blu-Rays don't use SRT subtitles or any other type of text-based subtitles. Instead, they use PGS subtitles, which are bitmap-based. So, you need a subtitle editor that can use OCR to convert the PGS subtitles to SRT.

I've tried pretty much all of the subtitle editors, but to no avail. Most of them don't have OCR, so they can't convert PGS subtitles from Blu-Rays to SRTs.

As far as I know, the only one that can do that is SubtitleComposer and that one is currently out of commission on desktop environments other than KDE due to some sort of packaging issue; whenever I try to have it locate and open a subtitle file, it gives me an error message about not being able to work with a file system on any desktop environment other than KDE.
 
Old 01-30-2018, 06:59 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,742

Rep: Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982
Quote:
Originally Posted by Mr. Macintosh View Post
That's what I wanted to do originally. I've managed to use MKVToolNix to extract the subtitles from the videos. Now I need to be able to convert them to SRTs.

Unfortunately, Blu-Rays don't use SRT subtitles or any other type of text-based subtitles. Instead, they use PGS subtitles, which are bitmap-based. So, you need a subtitle editor that can use OCR to convert the PGS subtitles to SRT.

I've tried pretty much all of the subtitle editors, but to no avail. Most of them don't have OCR, so they can't convert PGS subtitles from Blu-Rays to SRTs.

As far as I know, the only one that can do that is SubtitleComposer and that one is currently out of commission on desktop environments other than KDE due to some sort of packaging issue; whenever I try to have it locate and open a subtitle file, it gives me an error message about not being able to work with a file system on any desktop environment other than KDE.
I've had good luck with tesseract as an OCR engine on Linux, and subtitle editor will let you choose your OCR engine. May work.
 
Old 01-30-2018, 09:42 AM   #5
Mr. Macintosh
Member
 
Registered: Sep 2015
Distribution: Debian
Posts: 297

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by TB0ne View Post
I've had good luck with tesseract as an OCR engine on Linux, and subtitle editor will let you choose your OCR engine. May work.
I'll give it a shot. Is this the program you're talking about? https://packages.debian.org/stretch/subtitleeditor

Update: It doesn't have any OCR support. It doesn't let me choose Tesseract. Also, when I try to import the subtitle file, it gives me an error message
Attached Thumbnails
Click image for larger version

Name:	SubtitleEdit Failed to Open File.png
Views:	15
Size:	25.8 KB
ID:	26853  

Last edited by Mr. Macintosh; 01-30-2018 at 09:53 AM.
 
Old 01-30-2018, 09:47 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,742

Rep: Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982
Quote:
Originally Posted by Mr. Macintosh View Post
I'll give it a shot. Is this the program you're talking about? https://packages.debian.org/stretch/subtitleeditor
Correct
 
Old 01-30-2018, 10:07 AM   #7
Mr. Macintosh
Member
 
Registered: Sep 2015
Distribution: Debian
Posts: 297

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by TB0ne View Post
Correct
It didn't work. I did some digging, and I found this bit of information on it:
Quote:
Description: Graphical subtitle editor with sound waves representation
Subtitle Editor is a GTK+3 tool to edit subtitles. It can be used for new
subtitles or as a tool to transform, edit, correct and refine existing
subtitles.
.
This program also shows sound waves, which makes it easier to synchronise
subtitles to voices.
.
This package has these features
.
o Multiple document interface.
o Internationalization support.
o Video player integrated in the main window (based on GStreamer).
o Can play preview with external video player (using MPlayer or other).
o Style Editor.
o Move subtitle.
o Scale.
o Split and joint subtitle.
o Edit text and adjust time (start, end).
o Generate Waveform from Video.
.
Supported formats:
.
o Sub Station Alpha.
o Advanced Sub Station Alpha.
o SubRip.
o MicroDVD.
o MPL2.
o MPsub (MPlayer subtitle).
o SubViewer 2.0.
o Plain-Text.
o Adobe Encore DVD.
Looks like it doesn't have OCR.
 
Old 01-30-2018, 10:39 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,742

Rep: Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982Reputation: 7982
Quote:
Originally Posted by Mr. Macintosh View Post
It didn't work. I did some digging, and I found this bit of information on it:
Looks like it doesn't have OCR.
Right...which is what I said previously. It will allow you to CHOOSE your OCR engine, it does not have one built in, and I even suggested tesseract. And I happened to see your edit to your earlier post, in which you said it wouldn't allow you to choose it. It let me choose it, though, so I have no idea why it's not letting you, nor what you see when you go to choose.

Last edited by TB0ne; 01-30-2018 at 10:41 AM.
 
Old 01-30-2018, 10:41 AM   #9
Mr. Macintosh
Member
 
Registered: Sep 2015
Distribution: Debian
Posts: 297

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by TB0ne View Post
Right...which is what I said previously. It will allow you to CHOOSE your OCR engine, it does not have one built in, and I even suggested tesseract.
I dug around in SubtitleEditor's preferences, but I couldn't find anything for setting the OCR engine. How do I go about that?
 
Old 01-30-2018, 01:05 PM   #10
Mr. Macintosh
Member
 
Registered: Sep 2015
Distribution: Debian
Posts: 297

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by TB0ne View Post
Right...which is what I said previously. It will allow you to CHOOSE your OCR engine, it does not have one built in, and I even suggested tesseract. And I happened to see your edit to your earlier post, in which you said it wouldn't allow you to choose it. It let me choose it, though, so I have no idea why it's not letting you, nor what you see when you go to choose.
I just realized we're talking about two different programs. This is the one you're talking about: https://github.com/SubtitleEdit/subtitleedit/releases

It's available for Windows. It can be run on Linux, but only with Mono Runtime. I tried opening it with Mono Runtime, but it didn't work. I've also been getting error messages from Winetricks lately, complaining about using a 64-bit Wine prefix.
Attached Thumbnails
Click image for larger version

Name:	Wine 64-bit Prefix.png
Views:	11
Size:	21.2 KB
ID:	26856  
 
Old 01-30-2018, 01:13 PM   #11
Mr. Macintosh
Member
 
Registered: Sep 2015
Distribution: Debian
Posts: 297

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by Mr. Macintosh View Post
I just realized we're talking about two different programs. This is the one you're talking about: https://github.com/SubtitleEdit/subtitleedit/releases

It's available for Windows. It can be run on Linux, but only with Mono Runtime. I tried opening it with Mono Runtime, but it didn't work. I've also been getting error messages from Winetricks lately, complaining about using a 64-bit Wine prefix.
I installed a bunch of .NET stuff from the repositories, and guess what? It works! It works!
 
Old 01-30-2018, 02:31 PM   #12
Mr. Macintosh
Member
 
Registered: Sep 2015
Distribution: Debian
Posts: 297

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by TB0ne View Post
Right...which is what I said previously. It will allow you to CHOOSE your OCR engine, it does not have one built in, and I even suggested tesseract. And I happened to see your edit to your earlier post, in which you said it wouldn't allow you to choose it. It let me choose it, though, so I have no idea why it's not letting you, nor what you see when you go to choose.
I tried opening a subtitle file that I had extracted with the help of MKVToolNix, but Subtitle Edit gave me an error message about it not being a valid MKV file. I got the same result from trying the MKS subtitle file as well as the original MKV file from which it was extracted. I even did some research, found out about MKVToolNix's special S_HDMV/PGS command-line option and tried to see if Subtitle Edit would be able to work with the resulting files, but unfortunately, it can't.
 
  


Reply



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
subtitle for slack ahmed gamal Linux - Software 3 03-16-2006 06:46 PM
VLC Subtitle willis3000 Linux - Newbie 4 04-03-2005 08:08 PM
xine subtitle stanev Debian 4 12-03-2004 12:54 AM
how can i do hebrew subtitle in MPlayer ? SlackwareMan Linux - Software 1 07-29-2004 11:08 AM
Xine subtitle??? perdesiz Linux - Software 0 09-30-2003 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 PM.

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