Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Subtitles

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd July 2023, 20:23   #1  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
How do I rip subtitles from Blu-Rays?

Preferably hardsubs, since I'd like them to be pixel-accurate to what you'd see on an actual TV, but softsubs are better than nothing.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 3rd July 2023, 00:24   #2  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
How do I rip subtitles from Blu-Rays?
Preferably hardsubs, since I'd like them to be pixel-accurate to what you'd see on an actual TV, but softsubs are better than nothing.
Hardsubs ???,
They're baked into the video, so you do not need to rip them (nor is it easy to get rid of them).
[EDIT: Or if you mean extract overlayed subtitle images, then dont know, but I'm sure Subtitle Edit does that too]

Quote:
but softsubs are better than nothing
Suggest SubTitle Edit (recent version), loading sup file.
Sup file created when using DgIndexNV (now free) on eg MKV, rip.
Open, sup in Subtitle Edit, with OCR method, Tesseract 5.3.0 {may need download Tesseract and Eng Dictionary, you will be prompted},
Untick "Prompt for unknown words" {dont need get hasseled every few seconds, fully automatic}.
Not as fast as SubRip for DVD.
SubtitleEdit:- https://forum.doom9.org/showthread.php?t=162721
EDIT: From Subtitle Edit, opening post [see in Blue].
Quote:
Originally Posted by Nikse555 View Post
Subtitle Edit 3.6 is now out
https://github.com/SubtitleEdit/subtitleedit

SE is an open source (C#) subtitle editor with main focus on creating/editing/sync'ing/adjusting/fixing subtitles, but SE can also import and ocr vobsub and blu-ray image based subtitles (even from matroska/mp4 files), and DVB sub + teletext from .ts files.
SE supports 300+ subtitle formats - let me know if you need more
Can create/edit blu-ray sup and bdn xml files.

Available for Windows and Linux

If no subs at all, then might want to try VoodooFX's Whisper whotsit, extract subs via audio A.I.
Whisper whotsit:- https://forum.doom9.org/showthread.php?t=184859
(May not work on XP, BIG data downloads required, ~2.0GB or thereabouts).
EDIT: I did one recently on music video {live gig} containing Eng and Spanish, some of the Spanish speech
came out in Spanish, some of it came out translated to English. {& Eng came out Eng}.

EDIT: A few hiccoughs can occur, in one instance, the name "Hiller" was transformed throughout video, into "Hitler"
{Perhaps "Captain Steve Hitler" rings a bell}

EDIT: I wonder if its worth giving it a go on some Star Trek with lots of Klingon, I bet that some of that stuff was
scanned during A.I. training, might auto convert to earthling English.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 3rd July 2023 at 13:58.
StainlessS is offline   Reply With Quote
Old 8th July 2023, 19:48   #3  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by StainlessS View Post
Hardsubs ???,[EDIT: Or if you mean extract overlayed subtitle images, then dont know, but I'm sure Subtitle Edit does that too]
Yes, I'm talking about ripping the sub image streams and burning them to the video stream during re-encoding.

Quote:
Originally Posted by StainlessS View Post
Sup file created when using DgIndexNV (now free) on eg MKV, rip.
Created how?

Is this something that can be done on an already-ripped MKV or do I need to do it during ripping?
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 8th July 2023, 20:37   #4  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Create how?
DgIndexNV, works kinda like DGIndex but on MKV [or eg M2TS, or others] instead of VOB/mpg [I think DgIndexNv works on VOB/mpg too].
[EDIT: Requires NVidia {above some minimum version} GPU]

Load already-ripped MKV into DgIndexNV,
Menu/File/Save Project [or F4].
Creates *.dgi [DgindexNv/DgSource equivalent of DGIndex/MpegSource2 d2v file].
+ extracts audio files, and subtitle sup files.
+ produces an avs file from any configured *.avs template file.
May also produce Chapter file, and log file and maybe some others.

Typical resulting files from DgIndexNV
Code:
Test.mkv   # src

# vid index
Test.dgi

# audio
Test_track_2_eng_DELAY 0ms.thd
Test_track_3_eng_DELAY 0ms.ac3
Test_track_4_eng_DELAY 0ms.ac3
Test_track_5_eng_DELAY 0ms.ac3

# subs
Test_track_6_eng.sup
Test_track_7_eng.sup
Test_track_8_eng.sup
Test_track_9_eng.sup

# Chapter stuff
Test.chapters.qp.txt
Test.chapters.txt

# Log
Test.log

# Avs file from configured avs template file
Test.avs
Typical Avs template 'Intro" {missing everything other than filenames and delay}
Code:
VideoFileName   ="__vid__"  # EDIT: 2x'_' chars, before and after.
AudioFileName   ="__aud__"
AudioDelay      =Value("__del__")

# EDIT: maybe adding something like
Video = DgSource(VideoFileName)
Audio = LWLibavAudioSource (AudioFileName,drc_scale=0)
AudioDub(Video,Audio)
DelayAudio(AudioDelay)
Trim(0,0)  # Trim, chop/pad audio to same length
#AssumeTFF

# ... More stuff
Example result after DgIndexNV creates avs file from template
Code:
VideoFileName   ="D:\___BLURAY\Test\Test.dgi"
AudioFileName   ="D:\___BLURAY\Test\Test_track2_eng_DELAY 0ms.thd"
AudioDelay      =Value("0.000")

# EDIT: maybe adding something like
Video = DgSource(VideoFileName)
Audio = LWLibavAudioSource (AudioFileName,drc_scale=0)
AudioDub(Video,Audio)
DelayAudio(AudioDelay)
Trim(0,0)  # Trim, chop/pad audio to same length
#AssumeTFF

# ... More stuff


EDIT: Just tried TsMuxerGUI with input Test.Mkv,
choose Output=Demux,
Start Demuxing [@ bottom of GUI]

Produces eg, [dont need Nvidia GPU]
Code:
Test.mkv   # src

# vid
Test.track_1_eng.264

# audio
Test.track_2_eng.thd
Test.track_3_eng.ac3
Test.track_4_eng.ac3
Test.track_5_eng.ac3

# subs
Test.track_6_eng.sup
Test.track_7_eng.sup
Test.track_8_eng.sup
Test.track_9_eng.sup
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 8th July 2023 at 22:24.
StainlessS is offline   Reply With Quote
Old 8th July 2023, 21:31   #5  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Yeah, I just noticed that TSmuxer outputs them in .sup format and came here to report that, but you beat me to it
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 8th July 2023, 21:45   #6  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Thank you for reminding me of the many reasons why I fucking hate OCR and softsubs.



__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.

Last edited by Katie Boundary; 8th July 2023 at 21:50.
Katie Boundary is offline   Reply With Quote
Old 8th July 2023, 22:10   #7  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Suggest uninstall and reinstall CURRENT SubtitleEdit,
it should prompt to install Tesseract 5.xx on first attempt to OCR.
Also, I think will prompt to download dictionary [I think I downed USA + Eng].
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 8th July 2023 at 22:26.
StainlessS is offline   Reply With Quote
Old 8th July 2023, 22:23   #8  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
The second screenshot was taken after I had installed Tesseract 5.3 and downloaded the English dictionary...
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 8th July 2023, 22:27   #9  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
After OCR, should SaveAs [CTRL/S] to save as srt file.
Spell Check will be on that file.

EDIT: Do all your OCR images look horrible like that one [black-ish upon black-ish], or just an isolated incident.


Recent ver$ SubtitleEdit much better than older, if you are using older.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 8th July 2023 at 22:37.
StainlessS is offline   Reply With Quote
Old 9th July 2023, 01:10   #10  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by StainlessS View Post
Do all your OCR images look horrible like that one [black-ish upon black-ish], or just an isolated incident.
Upon further investigation, most seem okay, but you'll never know the wonders I've seen...



Honestly, I don't think this one is Subtitle Edit's fault.

Quote:
Originally Posted by StainlessS View Post
Recent ver$ SubtitleEdit much better than older, if you are using older.
I've never used it before today.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 9th July 2023, 01:46   #11  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Okay, there are four subtitle files per episode. The first one is JUST translations for on-screen Japanese text. The second and third are relatively normal, but the second has the horrifying malfunctions that I've screenshotted. The third seems to be a more complete, functional track. The fourth has subtitles that tell you who's talking, and includes descriptions of music and sound effects; I assume it's for deaf people.

I think I can get by on track #3 for now. However, I'd have to look at more episodes to confirm.

Anyway, how do I import these shiny new SRT files into something like Tsunami or Virtualdub?
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 9th July 2023, 13:54   #12  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Anyway, how do I import these shiny new SRT files into something like Tsunami or Virtualdub?
Dont know.
VD2 Subtitler seems to require Substation Alpha script {*.ssa}, SubTitleEdit can maybe export to that format,
maybe someone else can comment.
Tsunami, dont know (Think maybe TmpGenc related).

Avisynth, Subtitle plugs:- http://avisynth.nl/index.php/Externa...ers#Subtitling
VSFilter:- https://avisynth.org.ru/docs/english...s/vsfilter.htm
VSFilterMod:- http://avisynth.nl/index.php/VSFilterMod
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 9th July 2023, 17:20   #13  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by StainlessS View Post
Yeah, that list was how I learned about SupTitle and SUPtext. Both have been dead-ends so far.


Quote:
Originally Posted by StainlessS View Post
That one just doesn't seem to work at all. I've been playing with it for years. I was only ever able to get the Vobsub plugin for Virtualdub working.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 9th July 2023, 21:07   #14  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Some versions of VsFilter are broken, VsFilterMod usually OK.
Never used Vobsub(), only ever TextSub(). [usually only for testing, me hates burnt in subs]
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 9th July 2023 at 21:13.
StainlessS is offline   Reply With Quote
Old 10th July 2023, 01:11   #15  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
I just poked around a little bit more and there are a LOT of forks of VSfilterMod. The AVIsynth wiki links to Computerfan's version, which was forked from Masaiki's and teplofizik's versions. Masaiki's version was forked from sorayuki's version, while teplofizik's version was forked from yuuchandk's version, which was forked from MewX's version... it looks like the most recent common ancestor of all these VSfilterModModModMods is at https://code.google.com/archive/p/vsfiltermod/downloads, but I can't find an author name on that one.

So uhhh... I guess I have a lot of options to try in the hopes of finding one that works?


EDIT:

Good news, everyone! The most recent common ancestor from an unknown author is working... for now.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.

Last edited by Katie Boundary; 10th July 2023 at 01:15.
Katie Boundary is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:53.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.