View Full Version : Batch video titling tool?


Camd00d
13th January 2003, 19:17
OK I have 200+ small mpg files (created with TMPGEnc) that are descriptively named. For example: In the bushes.mpg, House.mpg, Baby001.mpg, etc. etc. etc.. Mostly just home video segments captured with a small video cam then encoded to MPG2 format.

What I want to do is put all of them together into a single large movie. But I would like to title each of the segments so I know what I'm watching for example:

3 seconds green or black background screen with the text 'Baby001' then it transitions into the Baby001.mpg movie, then transition to another screen with txt Bushes then transition to the bushes movie, etc. etc. until all of the movies are wrapped together and each segment has a short title screen before hand.

But.. Doing this with the POS software that came with my DVD writer (Showbiz) would take me years lol.. So is there any free or cheap or affordable software that can do this for me? All I need is the file name of the file used as a short introductory title.. Please help me out if you know of any tool that might save me some time? Thanks!

Camd00d
17th January 2003, 16:01
Anyone??

McPoodle
20th January 2003, 00:02
It seems to be that the only practical way to do this is with AVISynth (available on Doom9's download page), which is capable of creating AVI files with whatever text you want on them. You would then need to convert all of these title files into MPEG. The process would look something like this (all work will be done in the same directory that the video files are in):

[list=1]
First, you need a list of files: open Command Prompt (under Start->Programs->Accessories), cd to the directory the files are in, and type the following:
dir /b *.mpg > list.txt
Create a background video in AVI format to use for all of the titles and save it with the name title.avi. If you're happy with pure black, you can use AVISynth to create it for you: create this text file and name it title.avs:
DirectShowSource("House.mpg")
Blackness(3*29.97)
What this does is use the frame size and rate of the House.mpg video to create a black video that's three seconds long (the argument for the Blackness function is the number of frames you need, so if you're using PAL instead of NTSC and still want exactly three seconds, that last line should be "Blackness(3*25)").
You will now use the list file from Step 1 and background video from Step 2 to create 200+ AVS files. You can either do this by hand, or use Perl or MS Word macros to automate the process. For example, for "In the bushes.mpg", the resulting AVS file should look like this:
AVISource("title.avi")
title=Subtitle("In the bushes")
main=DirectShowSource("In the bushes.mpg")
return title ++ main
You'd save this with a name like "_In the bushes.avs" (the underscore is to ensure that they all stick together in the directory listing). Note that if you created title.avs that you'd use that in the first line instead of title.avi.
When this is all done, launch TMPGEnc, and start encoding your AVS files. You could also create a batch encode file, but this will definitely take Perl/macros to do.
[/list=1]

I suspect this was not the kind of solution you were hoping for. Hopefully somebody else is aware of an inexpensive batch MPG titler application.

LB
10th February 2003, 00:31
a=avisource("c:\ep\ep15\01.01.avi")
b=avisource("c:\ep\ep15\01.02.avi")
c=avisource("c:\ep\ep15\01.03.avi")
d=avisource("c:\ep\ep15\01.04.avi")
e=avisource("c:\ep\ep15\01.05.avi")
f=avisource("c:\ep\ep15\01.06.avi")
g=avisource("c:\ep\ep15\01.07.avi")
h=avisource("c:\ep\ep15\01.08.avi")
i=avisource("c:\ep\ep15\01.09.avi")
j=avisource("c:\ep\ep15\01.10.avi")
k=avisource("c:\ep\ep15\01.11.avi")
l=avisource("c:\ep\ep15\01.12.avi")
m=avisource("c:\ep\ep15\01.13.avi")
n=avisource("c:\ep\ep15\01.14.avi")
o=avisource("c:\ep\ep15\01.15.avi")
p=avisource("c:\ep\ep15\01.16.avi")
EPVideo=a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p

Pretty simple. That's just a avisynth script. You will obviously have to change avisource to mpegsource and add the respective plugin, but that's all there is to it. Then just open the avs in vdub. ;)

LB