Author Topic: Text To Video  (Read 1672 times)

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Text To Video
« on: November 05, 2007, 01: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.

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Text To Video
« Reply #1 on: November 05, 2007, 02: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.

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Text To Video
« Reply #2 on: November 05, 2007, 02: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.