Log in

View Full Version : Title screen for xvid?


richarddd
29th March 2009, 14:39
I'd like to add a simple title screen to the beginning of an mpeg-4 movie. Something simple like 5 seconds of "29 March 2009 Meeting" in white centered on a black background. What's an easy way to create such a clip?

If I could create the clip, I could then use vdubmod or whatever to add it to the movie.

J_Darnley
29th March 2009, 17:34
Avisynth. Use a script like:
BlankClip(1500,640,480,"YV12",25)
Subtitle("29 March 2009 Meeting", align=5, text_color=$ffffff, size=36)

mel2000
31st March 2009, 20:48
I modified the post above to create a credit for one of my mp4 files and it worked perfectly.

#******************************

myDir = "C:\myMovies\MP4\"
myVid = "mtrx_rel.mp4"

DirectShowSource(myDir+myVid, audio=true)

video = last
vidWidth=320
vidHeight=240

# make credits last 5 seconds
creditIntro = MakeBlankClip(video, numSecs=5, vidWidth=vidWidth, vidHeight=vidHeight, color=$000000)
creditIntro = Subtitle(creditIntro, "29 March 2009 Meeting", align=5, text_color=$ffffff, font="Times New Roman", size=20.0, halo_color=$ff000000, spc=15)

Dissolve(creditIntro, video, 25)

function MakeBlankClip(clip src, int "numSecs", int "vidWidth", int "vidHeight", int "color")
{
fps = src.FrameRate()
numSecs = default(numSecs, 10)
numFrames = int(numSecs*fps)
vidWidth = default(vidWidth, src.Width())
vidHeight = default(vidHeight, src.Height())
color = default(color, $000000)

return src.BlankClip(length=numFrames, width=vidWidth, height=vidHeight, pixel_type="YV12", fps=fps, color=color)
}

#******************************