FFMPEG Watermarking with drawtext.so

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MrT

    FFMPEG Watermarking with drawtext.so

    Hi there,

    I was just wondering if anyone had any ideas why this doesn't work on
    a php page!

    exec("/usr/bin/ffmpeg -i Movie.avi -vhook 'lib/vhook/drawtext.so -f
    fonts/tahomabd.TTF -x 10 -y 10 -t watermarktext' -acodec mp3 -ab 32 -
    ac 1 -ar 44100 outputfile.flv" )

    I did notice when i copied the above with out the exec() in my shell
    on my webserver it did this to it

    /usr/bin/ffmpeg -i Movie.avi -vhook 'lib/vhook/drawtext.so .f fonts/
    tahomabd.TTF .x 10 .y 10 .t watermarktext' -acodec mp3 -ab 32 -ac 1 -
    ar 44100 outputfile.flv

    it replaces the - with . in the vhook part!! but when i change the .
    back to - in the shell and run it, it works fine!

    So I guess really my question is why do the - change to . as I expect
    this to be the problem when its running in my PHP page!

    any help would be much appreciated.

    Cheers

Working...