Digital Paint Discussion Board
Digital Paint Community => Other Stuff => Topic started by: ViciouZ on November 05, 2007, 02:45:08 PM
-
Anybody know any way to make a video of a txt file? Like credits in Windows Movie Maker, but with a longer text limit.
-
I didn't think I would be able to find an easy solution, but here it is.
# Scrolling credits from a text file
ffmpeg -i input.avi -vhook \
'vhook/imlib2.so -c white -F VeraBd.ttf/16 -x 100 -y -1.0*N -f credits.txt' \
-sameq output.avi
In this example, the text is stored in a file, and is positioned 100
pixels from the left hand edge of the video. The text is scrolled from the
bottom up. Making the y factor positive will scroll from the top down.
Increasing the magnitude of the y factor makes the text scroll faster,
decreasing it makes it scroll slower. Hint: Blank lines containing only
a newline are treated as end-of-file. To create blank lines, use lines
that consist of space characters only.
-
:O
I found that about 2 minutes before seeing you post, indeed it looks easy, but it looks like I'll have to compile myself to get the DLLs required, as vhook is deprecated.