Log in

View Full Version : Hardcoding Subs WMV to DVD


Sakuya
19th March 2006, 06:22
I have this WMV file that I want to hardcode some SSA subtitles onto and then converting to DVD. But I cannot open the WMV file in Vdubmod because it won't support it.

So I was thinking if it's possible for AVISynth to make the WMV file (video only because I like processing my audio separately) open in Vdubmod and then use Vdubmod to hardcode the subs and then frameserve that into TMPGEnc.

As for the audio, extract it from the WMV using Vdubmod and then using ffmpeg.

I opened a WMV file in TMPGEnc successfully so I assume that it'll convert to MPEG-2 with no problems. So it's just the hardcoding-subtitle issue.

Any help is appreciated!

lamer_de
19th March 2006, 14:52
There's a modified version of vdub that can open some wmv's (version 7 or 9, don't rememeber). Search the forums for it. Alternatively, you can load wmvs with avisynth via directshowsource. If you want to go hardcore, follow this guide: http://edwardk.info/wmv2avi/

CU,
lamer_de

Sakuya
21st March 2006, 08:54
I got the code for adding subs via AVISynth:


Directshowsource("whatever.wmv",fps=23.976)
TextSub("whatever.srt")


However, it would not take my color codes in my SSA file. Here is what my line looks like (it's only one line that serves as an episode title) in SSA.

Secret {\3c&h3138B5&}After {\3c&hAD0029&}School

The first code is changing the second word to red. The second code is for changing the third word to blue. The first word is blue by the default style. :( The first word appears blue when I preview my AVS file using MPC, but the last 2 words becomes black.

DeathWolf
21st March 2006, 09:18
use &H and not &h, &h is not compatible syntax

Sakuya
22nd March 2006, 07:17
use &H and not &h, &h is not compatible syntax

Thanks a lot! Because of that, it worked! :D

Oh yeah, and I was wondering, since that AVS script can be opened in Vdubmod, is it possible if I use Vdubmod to demux the audio as a WAV? Would it cause sync issues later on?

Sakuya
26th March 2006, 08:13
I'm having some weird problem. It takes a very long time, most often it freezes, when I try to open the AVS file in TMPGEnc. When I do get it open and converted, it freezes after it's finished encoding. :angry: Luckily, even if I alt-ctl-del TMPGEnc after it finished encoding, the MPEG-2 will still be fine.

However, the loading part is annoying. I even tried restarting my computer, no luck.