INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
How to attach subtitle to .mkv

Forum Index -> Video -> Subtitle Printer-friendly version
Reply to topic
Author Message
KoRatta
Member


Joined: 06 Apr 2008
Location: Moldova, Republic

Post Posted: Apr 06, 2008 14:44 Posts View users profile Send private message Reply with quote

i want to know what programs i can attach subtitles to .mkv with and how to do this

poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Apr 06, 2008 15:23 Posts View users profile Send private message Reply with quote

Use mkvmergegui in the mkvtoolnix kit

KoRatta
Member


Joined: 06 Apr 2008
Location: Moldova, Republic

Post Posted: Apr 06, 2008 16:18 Posts View users profile Send private message Reply with quote

poisondeathray wrote:
Use mkvmergegui in the mkvtoolnix kit


can you explain in details how to attach?


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Apr 06, 2008 17:10 Posts View users profile Send private message Reply with quote

What are your input files? .srt subtitle? what video / audio streams? Do you have raw streams?

Or do you have a pre-existing .mkv container with video/audio already in it?

It's pretty easy, all you have to do is push the add button, and select whatever you want to put into the .mkv container, then push start muxing.

For the subtitles to work, you might have to rename them to the same filename as the video file before muxing


KoRatta
Member


Joined: 06 Apr 2008
Location: Moldova, Republic

Post Posted: Apr 06, 2008 22:52 Posts View users profile Send private message Reply with quote

i attached subtitles... and it seems working... thank you

seaboy
Member


Joined: 09 Apr 2008
Location: Vietnam

Post Posted: Apr 10, 2008 11:21 Posts Comp View users profile Send private message Reply with quote

mkvmergegui, It's don't support Unicode, I can add subtittle Unicode to mkv, plzz help me sad.gif

poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Apr 10, 2008 11:28 Posts View users profile Send private message Reply with quote

seaboy wrote:
mkvmergegui, It's don't support Unicode, I can add subtittle Unicode to mkv, plzz help me sad.gif


What format are your subs in?

mkvmergegui just "packages" it in the .mkv container

You need something like DirectVobSub to be able to play them back on PC


seaboy
Member


Joined: 09 Apr 2008
Location: Vietnam

Post Posted: Apr 10, 2008 11:50 Posts Comp View users profile Send private message Reply with quote

my sub format is *.srt, I use mkvmergegui to add permanent subtitle in *.mkv, it work with subtittle normal, but my sub is use font Unicode, so it don't accept it. sad.gif

poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Apr 10, 2008 12:19 Posts View users profile Send private message Reply with quote

seaboy wrote:
my sub format is *.srt, I use mkvmergegui to add permanent subtitle in *.mkv, it work with subtittle normal, but my sub is use font Unicode, so it don't accept it. sad.gif


mkvmerge does not hardcode permanent subtitles, it softcodes them.

You have to re-encode with vsfilter for permanent subtitles

If you want to softsub (selectable), it should accept .srt, just enter the unicode type in the subtitle charset (in the "format specfic options" tab). I am using version 2.2.0 for mkvmerge

You could also convert them to .ssa subs, then you could specify fonts, colors, sizes and more effects

If you still can't figure it out, upload your subs here, and I'll have a look at it

Cheers



seaboy
Member


Joined: 09 Apr 2008
Location: Vietnam

Post Posted: Apr 10, 2008 13:44 Posts Comp View users profile Send private message Reply with quote

Oh, my subtittle format is Unicode, use fonts such as: Arial, News Time Roman..v...v... It's not format UTF-8, UTF-8 is format Unicode but usually on Web, I don't undetstand more between Unicode and UTF-8 . I solved my problem to add sub on mkv by way covert subtittle Unicode to UTF-8, but when i output file, The subtittle isn't display sad.gif.
_And i have one more problem, about vsfilter, it's only a file *.dll, how do i use it ?


Midzuki
RETIRED


Joined: 25 Jun 2007
Location: Outside of VH.com

Post Posted: Apr 10, 2008 13:59 Posts Comp View users profile Send private message Reply with quote

Please upload a full~copy of your "problematic" .srt

poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Apr 10, 2008 14:01 Posts View users profile Send private message Reply with quote

What format is your video stream in? Can you get subs to play back outside of the .mkv container?

vsfilter is for hardcoding subs, you have to use avisynth and an encoder.

directvobsub is just for playing it back.

If you want to hardcode your subs (permanent), don't use mkvmerge, use these guides
http://forum.videohelp.com/topic316471.html
http://forum.videohelp.com/topic272736.html


Midzuki
RETIRED


Joined: 25 Jun 2007
Location: Outside of VH.com

Post Posted: Apr 10, 2008 14:14 Posts Comp View users profile Send private message Reply with quote

Quote:
about vsfilter, it's only a file *.dll, how do i use it ?


First of all, get the version 2.33
Then, copy it into c:\windows\system32\
3rd, run "regsvr32 vsfilter.dll"
4th, run "rundll32 vsfilter.dll,DirectVobSub"
(or create a desktop shortcut with these parameters)
5th, tweak it as needed.


seaboy
Member


Joined: 09 Apr 2008
Location: Vietnam

Post Posted: Apr 10, 2008 14:22 Posts Comp View users profile Send private message Reply with quote

This is full my subtittle, you can download here, i use vietnamese:
http://www.box.net/shared/cbsi9t6as0

What format is your video stream in?
_I don't know. How can i view it ?
Can you get subs to play back outside of the .mkv container?
_Yes, i can.

_I understand your saids,and I want to add sub to mkv (softsub), because i want my video (mkv) look clean-lembed.


seaboy
Member


Joined: 09 Apr 2008
Location: Vietnam

Post Posted: Apr 10, 2008 14:28 Posts Comp View users profile Send private message Reply with quote

Midzuki wrote:

First of all, get the version 2.33
Then, copy it into c:\windows\system32\
3rd, run "regsvr32 vsfilter.dll"
4th, run "rundll32 vsfilter.dll,DirectVobSub"
(or create a desktop shortcut with these parameters)
5th, tweak it as needed.


_Thanks, after i follow this way, my Video (mkv) can display subtittle. biggrin.gif


Midzuki
RETIRED


Joined: 25 Jun 2007
Location: Outside of VH.com

Post Posted: Apr 10, 2008 15:47 Posts Comp View users profile Send private message Reply with quote

seaboy wrote:

Quote:
_Thanks, after i follow this way, my Video (mkv) can display subtittle. biggrin.gif


smile.gif smile.gif smile.gif smile.gif smile.gif

Quote:
This is full my subtittle, you can download here, i use vietnamese:
[ u r l ]


Thanks. I have just checked it, and it is a 100%-healthy 16-bit text file smile.gif
I thought that MKVmerge might be having issues with non-SSA unicode,
but you have just shown it's not the case. icon_salut.gif


seaboy
Member


Joined: 09 Apr 2008
Location: Vietnam

Post Posted: Apr 10, 2008 21:55 Posts Comp View users profile Send private message Reply with quote

I have one more problem.
_It's subtittle 1 (Unicode):
http://www.box.net/shared/7j0k8v668k

_It's subtittle 2 (Unicode):
http://www.box.net/shared/ayx6xtmgw0

Both of them are likeness. But Subtittle 1 can work with mkvmerge, and sutittle 2 isn't . I dont' understand sad.gif.
_If i try add subtittle 2 on mkvmerge, it will report error follow:


poisondeathray
Member


Joined: 07 Sep 2007
Location: Canada

Post Posted: Apr 10, 2008 22:04 Posts View users profile Send private message Reply with quote

It has to do with the numbering sequence. I don't know the technical explanation for it.

Your working file starts with "1"

The not-working file starts with "0"

If you delete the 1st entry, or edit it to start with "1", mkvmerge will accept it


seaboy
Member


Joined: 09 Apr 2008
Location: Vietnam

Post Posted: Apr 10, 2008 22:13 Posts Comp View users profile Send private message Reply with quote

You can download subtittle 2 again at here:
http://www.box.net/shared/wb1tar0o44

_I repaired it, but it still no work sad.gif


Midzuki
RETIRED


Joined: 25 Jun 2007
Location: Outside of VH.com

Post Posted: Apr 10, 2008 22:31 Posts Comp View users profile Send private message Reply with quote

The second subtitle file has two byte-order-marks ieek.gif

Try this one:

modified-secret.dvdrip2.srt.zip


seaboy
Member


Joined: 09 Apr 2008
Location: Vietnam

Post Posted: Apr 10, 2008 22:40 Posts Comp View users profile Send private message Reply with quote

To Midzuki: Oh, your file is working, thank u so much, but How did you do it? In fact,I only want to know control this software (mkvmerge), is not simple make correct my subtittle:D.

seaboy
Member


Joined: 09 Apr 2008
Location: Vietnam

Post Posted: Apr 10, 2008 23:06 Posts Comp View users profile Send private message Reply with quote

Midzuki, can u please guilde me the way to correct a sub? . actually, i still don't know what wrong is my subtittle 2 have ? sad.gif .Sorry, I'm so noob sad.gif

Midzuki
RETIRED


Joined: 25 Jun 2007
Location: Outside of VH.com

Post Posted: Apr 10, 2008 23:47 Posts Comp View users profile Send private message Reply with quote

I used a hex editor to examine your .SRTs (Hexplorer, to be specific).
The first two bytes of a Unicode-text are its "Unicode-ID", so to speak.
It can be either "FF FE" (little-endian) or "FE FF" (big-endian). I suppose
that a write-error occurred when that second .srt file was being saved
on the hard disk, take a look at the picture below:



I just deleted the redundant bytes (the underlined ones),
saved the result as a new .srt file, and "uêba!" ^_^


Reply to topic All times are GMT - 6 Hours
Forum Index -> Video -> Subtitle Page 1 of 1





You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Jump to:  
Display:   
About   Advertise   Forum Archive   RSS Feeds   Statistics