View Single Post
Old 05-20-2009, 06:55 AM  
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Code:
function grabScreen($clip, $thumb, $dimensions) {
    //$dimensions should be in WxH format
    //$thumb should contain the full path to the image you want created
    $screengrab = "/usr/local/bin/ffmpeg -y -i '{$clip}' -f mjpeg -ss 10 -vframes 1 -s {$dimensions} -an '{$thumb}'";
    @system($screengrab);
}

Last edited by nation-x; 05-20-2009 at 06:57 AM..
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote