Digital Paint Discussion Board

Digital Paint Community => Other Stuff => Topic started by: ViciouZ on November 05, 2007, 02:45:08 PM

Title: Text To Video
Post 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.
Title: Re: Text To Video
Post by: XtremeBain on November 05, 2007, 03:14:01 PM
I didn't think I would be able to find an easy solution, but here it is.

Quote from: http://ffmpeg.mplayerhq.hu/hooks.html
   # 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.
Title: Re: Text To Video
Post by: ViciouZ on November 05, 2007, 03:22:27 PM
: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.