Sunday, June 28, 2009

Embed Subtitle into Output VDO with AviSynth

If you want to embed *.srt subtitle into output VDO by using AviSynth:

1. Download VSFilter from http://www.animereactor.dk/aegisub/
2. Extract vsfilter.dll to folder C:\Program Files\AviSynth 2.58\plugins\
3. Add these commands into *.avs file:
LoadPlugin("C:\Program Files\AviSynth 2.58\plugins\VSFilter.dll")
TextSub("filename.srt")


If audio and video are not sync'ed together, use these commands to split them, and then adjust audio delay.
V = DirectShowSource("video.mp4",fps=25.0,convertfps=true)
A = DirectShowSource("audio.aac", video=false)
AudioDub(V, A)
DelayAudio(-0.500)

No comments: