Alirght, what were trying to do here is when a video is uploaded throuhg a PHP script, onto our website, the script will then point the video to append a intro and outro, and output that as the new video.

Then we run a script to add subtitles, later converting the video to an FLV.

On our server we have FFMPEGPHP, Mplayer and Mencode, flv2tool and GD Library, Libogg and Libvorbis, and LAME MP3 Encoder.


We are ttrying to add text, like "some text" through the whole video, on either bottom or top of the video.

I've searched for hours trying to figure this out.


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!

==================================================
THIS IS WHERE WE NEED HELP :
==================================================


THE PHP FILE:

Code:
<?


echo exec("mencoder input.avi -ovc coy -oac copy -sub sub.srt -subpos 50 -o output.avi");


?>


THE SRT FILE:

Code:
1
00:00:00,000 --> 00:00:53,280
"TEXT THROUGHT VIDEO"




So, lets say the video is 53 seconsd long.


Executre the PHP script, and it outputs a video, without subtitles.



HOW DO WE ADD SUBTITOLES???


please some help i'm about to kill myself