Log in

View Full Version : Extracting Subs From A Mkv File


future sheperd
11th September 2004, 18:05
please... oh please help!


is there any way to convert the damn .mkv file to an avi or mpeg and still keep the subtitles...

ive used mkv from dos prompt, extracted an .srt.
then ran it through "SST to SSA convertor" to get a .ssa,
but it says:

input file error, subtitle #1

so im lost,

done alot of searching around and can't find a answer...

i think this place is my last hope.

thanks inadvance.

stephanV
11th September 2004, 18:25
yes you can...

with a combination of avimux gui and VirtualDubMod it could be possible

but, why do you wanna do so?

future sheperd
11th September 2004, 18:59
hey, thanks 4 the reply

basically i wanna convert the mkv to dvd format then author it.

Liisachan
11th September 2004, 19:29
if it's SRT, you dont need dos

1. Open your MKV with VirtualDubMod
2. Streams | Stream List
3. Select the SRT (S_TEXT/UTF8) | Demux -> save as .srt
4. To convert it into SSA, use a proper tool like Subresynch

note
- Probably you'll have to use mkvextract if the sub embedded in MKV is SSA (S_TEXT/SSA or S_TEXT/ASS).
- If the sub embedded in MKV is S_VOBSUB (originally idx+sub), you cannot demux it atm (afaik)

future sheperd
11th September 2004, 20:24
dude, nice try but opening the mkv file in virtual dub is a no no...

when saving the .srt file nothing likes it.

vobsub says its not a valid file format

and srt 2 ssa crashes... i cant seem to find another suitable srt convertor

could anyone provide me with a link, or is there another way to extract the subtitle from that damn .mkv file


:confused: thanks again...

stephanV
11th September 2004, 20:43
try avimux GUI

open the file in it, add the file as source

right click on the subtitle stream and extract...

Liisachan
11th September 2004, 20:44
Originally posted by future sheperd
dude, nice try but opening the mkv file in virtual dub is a no no...

when saving the .srt file nothing likes it.

SRT from VDM is in UTF-8 with BOM.
Open it with Notepad and save it as ASCII.
Then every sub converters will like it :)

future sheperd
11th September 2004, 22:59
dudes, firstly thank you for all your help... it was/is much appreciated.

now it seems acorrding to the avi-mux gui site that the latest verion 1.6 doesnt support the extraction of a srt from a mkv file.

but what i have done is this:

extracted srt file from virtual dub

opened the srt in notepad, then resaved it out (changed the encoding from UTF-8 to ANSI

...now programs like submux and virtualdub have accepted the new file no prob so my next steps are to now convert the mkv to avi, then avi to mpg ready for authoring.

thank you guys for your time...

peace

DKDIB
11th September 2004, 23:47
Sheperd wrote:
> [...] convert the mkv to avi, then avi to mpg ready for authoring.

There's no need to do 2 encoding.

If you can play the Matroska file using a DirectShow player (like Windows Media Player) then you can use CCE (or ProCoder or TMPEnc) to convert the Matroska file in a MPEG one.