Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Adding Subtitles Using Avisynth, writing a script for ACP
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
jazzzy786
Posted: Nov 25 2004, 07:55 PM


Advanced Member


Group: Members
Posts: 105
Member No.: 12723
Joined: 14-November 04



I am using a program called ACP which uses Avisynth, Virtualdub, Tmpgenc, Besweet ,Maplay and BBMpeg to convert an AVI to KVCD. All I have to do is choose the AVI and it does all the work for me including audio extraction (using vdub), conversion of audio to MP2 (using madplay and besweet) and Tmpgenc to convert the film to MPEG and BBMpeg to mux the video with the audio. It uses some sort of prediction to set the correct bitrate to give me a 700Mb MPG from a 700MB Avi. Great program. Only prob is I d/l quite a lot of foreign films and want to modify the script this program uses to do the following

Check if a SRT subtitle with same name exists in folder else goto nosub_routine
read the SRT Subrip subtitle
use SRT2SSA to convert the subtitle to SSA
Load the film into virtualdub
Load the subtitler filter
Load SSA subtitle
Frameserve to Tmpgenc

nosub_routine:

I still want to use the prediction to get the small file size as well

Can anybody out there help?



 
     Top
jazzzy786
Posted: Dec 21 2004, 08:09 PM


Advanced Member


Group: Members
Posts: 105
Member No.: 12723
Joined: 14-November 04



I figured out how to write a script to keep my aspect ratio for my films

NTSC

DirectShowSource("E:FILMSFILM.MPG")
BicubicResize( 352, 240, 1/3, 1/3)

PAL

DirectShowSource("E:FILMSFILM.MPG")
BicubicResize( 352, 288, 1/3, 1/3)

Still can't figure out how to do subs using Avisynth
 
     Top
NuPogodi
Posted: Dec 22 2004, 08:34 AM


Advanced Member


Group: Members
Posts: 536
Member No.: 6558
Joined: 1-October 03



QUOTE (jazzzy786 @ Dec 21 2004, 02:09 PM)
Still can't figure out how to do subs using Avisynth

I've understood that you want to encode hard subs and to load them from AviSynth? is it the problem? no problem at all... there is TextSub by Gabest... the latest ffdshow build 12.10.2004 also provides support for AviSynth and VDub - it means you can use the ffdshow's built-in subtitler.
Finally, i've tested both methods and both worked properly. So, you have a choice...

--------------------
Optimists believe that they live in the best of existing worlds. Pessimists are afraid of that's right...
 
     Top
jazzzy786
Posted: Dec 30 2004, 01:57 PM


Advanced Member


Group: Members
Posts: 105
Member No.: 12723
Joined: 14-November 04



I'm still quite new to scripting any chance of an example script to load a SRT into vdub. I've got textsub (thanks), i was trying to use subtitler
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
3 replies since Nov 25 2004, 07:55 PM Track this topic | Email this topic | Print this topic

<< Back to Avisynth Filtering, Processing and Scripts Discussion