What I want to do is create a 60 second FLV from a video that is uploaded. But I dont want to always get the first 60 seconds, if possible I would like to get the middle part of the video. but if not I want to get a random 60 second part of a video file and create the flv.
I am using the following script to make the FLV file
$call="/usr/bin/ffmpeg -i ".$_SESSION['video_to_convert']." -vcodec flv -f flv -r 20 -b ".$quality." -ab 128000 -ar ".$audio." ".$converted_vids.$name.".flv -y 2> log/".$name.".txt";
$convert = (popen($call." >/dev/null &", "r"));
pclose($convert);
So my question is, how do i get 60 seconds from a video randomly and convert it?