View Full Version : How to hardcode subtitles in h.264-stream
N1KLAS
12th October 2008, 13:10
Hi,
as I have a problem with the subtitles when I want to mux one special .mkv video containing subtitles in a Blu-ray disc structure using tsMuxeR, I decided to hardcode the subtitles in the video RAW stream. Is that possible ? The subtitle is in the .srt format.
How should I proceed ?
I normally encode videos using DGAVCDec+AviSynth+MeGui ("x264: Standalone-Blu-ray" preset).
Should I add a special line to my .avs script LoadPlugin("...\DGAVCDecode.dll")
AVCSource("mystream.dga") ? Or how should I proceed ?
rica
12th October 2008, 13:15
This is the way i follow:
http://forum.doom9.org/showthread.php?p=1165883#post1165883
_ _ _ _
N1KLAS
12th October 2008, 14:05
This is the way i follow:
http://forum.doom9.org/showthread.php?p=1165883#post1165883
_ _ _ _
okay.. but I don't understand how to create the graph by using Monogram GraphStudio. How can I create the graph, what have I to do ?
It would be very nice if you could help me please :)
rica
12th October 2008, 14:29
N1KLAS,
You will find graphstudio here:
http://forum.doom9.org/showthread.php?p=1191721#post1191721
Go to the main menu:
Graph > Insert filter
You will select the filters from the opening window.
And finally you will connect to each other.
Don't worry; it is very easy.
EDIT: While you are saving the graph you created you have to write "*.GRF"
N1KLAS
12th October 2008, 14:54
ah okay...
I thought I should select "File-Add Media File..." and wondered why nothing happend but an error-message :D
Okay... when I go to Graph-Insert filter, there is a window with 146 different DirectShow Filters.. from where do I know which I have to select ?.. I know that I need DirectVobSub(auto-loading version), but what else... ?
I should choose Haali Media Splitter, right? but there are also Haali Media Splitter (AR), Haali Simple Media Splitter, Haali Video Renderer etc.
Should I choose Haali Media Splitter?
sorry if i ask so much, but i'm a newbie:P
rica
12th October 2008, 15:07
You should choose Haali Media Splitter and you will select your source file on pop-up window:
Gokumon
12th October 2008, 18:17
N1KLAS instead of changing what you are already doing from what you said in the first post, all you need to add to your avisynth script is to use the VSFilter.dll and add the line:
TextSub("name of subtitle file")
Where you change what's in the quotes to the subtitle file's name. There is no need to do anything with Graphstudio, etc as you were already fine doing what you did in your old process you just needed to add the part that would actually put the subtitles on the video in the avs script.
N1KLAS
12th October 2008, 20:16
hi, thank you...
what i want to ask next is, ...Is it possible to get the subtitles "switchable" in the h.264-stream? so that they aren't hardcoded.
Is there any expression i'd have to add to the avs-script?
Or can I only hardcode them?
rica
12th October 2008, 20:33
No you don't need to hardcode them.
Make a BD with TSMuxer. (put sup or srt while remuxing)
Make an ISO (UDF 2.5) with ImageBurn.
Watch BD with Virtual Clone Drive.
See:
http://forum.doom9.org/showthread.php?p=1128383#post1128383
Both ImageBurn and VCD are freeware.
Use VCD not DaemonTools as virtual drive.
PowerDVD and Arcsoft TMT will show the subtitle as an option when you create an ISO with this method.
N1KLAS
13th October 2008, 14:26
No you don't need to hardcode them.
Make a BD with TSMuxer. (put sup or srt while remuxing)
Make an ISO (UDF 2.5) with ImageBurn.
Watch BD with Virtual Clone Drive.
See:
http://forum.doom9.org/showthread.php?p=1128383#post1128383
Both ImageBurn and VCD are freeware.
Use VCD not DaemonTools as virtual drive.
PowerDVD and Arcsoft TMT will show the subtitle as an option when you create an ISO with this method.
Hi, I know this solution to get the subtitles without hardcoding.
And I use this approach, too. But I have a problem with these subtitles, when I mux them into the Blu-ray structure these subtitles aren't shown (crazy, at the end of the video the first subs are shown but very fast and of course not in the right position). MediaInfo says that there is a Video0-delay ?!
Normally, subtitles are shown and everything goes perfectly when I mux them with tsMuxeR - but in this case (I don't know why) the subs are not shown :(
Because of this, I wanted to hardcode them and now the subtitles are shown perfectly.
Is there a possibility to mux the subtitles into the Blu-ray so that they are shown ?
Or does anybody know why it doesn't work with tsMuxeR in this case ??
eidolen
1st November 2008, 07:32
Hi,
I've been reading for a few hours now but can't seem to find a way to do what I want if it can even be done without a multitude of steps.
I want to convert HD anime "with" the original nice looking ASS subtitles intact to view on my PS3. I have successfully followed the guide here to "convert" the .ass--> .srt and load them directly into tsmuxergui but it loses all of the formatting and even runs off the screen among other problems. Other than that the video looks awesome.
I figure that at some point the video will have to be re-encoded to do this but I'm looking for the best way that will attempt to keep file close to the same size, without a ton of options to fidget with, and still be able to chage the profile to 4.1 either before or after so it will play on the PS3.
I apologize if I've skipped over some obvious way to do this. It is nice to be able to turn the subtitles on and off at will but since I doubt I'll be learning fluent Japanese in the near future, it is just a feature that I will never use and hard coded subs would be much better.
Many thanks in advance,
eidolen
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.