i want to convert all my videos via automated php script. but i want to embed (hardsub) subtitle and add watermark too.
ffmpeg can add watermark but cant embed subtitle, mencoder can embed subtitle but cant add watermark. actually it can, but bmovl parameter is too complex and i think its not support my method. i am sending commands via php-exec function. i succesfully added watermark to a video over ssh with mencoder. but if i send exact commands over php-exec its returns/do nothing.
do you know any linux program can do my wishes? or do you know any method for ffmpeg / mencoder to do that jobs?
+ Reply to Thread
Results 1 to 5 of 5
Last edited by Baldrick; 29th Dec 2011 at 04:12. Reason: New title
I think you can can pipe the output from ffmpeg (with added watermark) to mencoder input. This way it is done in two steps but with a single command line. Perhaps you can create your own bash script that you call from php to avoid problems with the php-exe function.
EDIT: Or you can use transcode which has filters for adding logo (maybe it can be used as a watermark if the logo is transparent) and to add subtitles.
Last edited by ronnylov; 2nd Jan 2012 at 09:40.Ronny
thx ronnylov. i dont know to write a bash script. actually i dont know what it is
but transcode looks like great. i will try it.