Welcome Guest, Not a member yet? Register   Sign In
Local/Live Problem
#2

What happens if you run this:

PHP Code:
$ffmpeg        FCPATH 'assets/ffmpeg/bin/ffmpeg';
$videoFiles    FCPATH 'assets/chat_posts/sample.mp4';
$imageFile     "public_html/wannahelp/assets/chat_posts/siva.jpg";
$size          "120X90";
$getFromSecond 5;

$disabled_funcs explode','ini_get('disable_functions') );
if( ! 
in_array'exec'$disabled_funcs ) )
{
    try{
        $cmd "$ffmpeg -i $videoFiles -an -ss $getFromSecond -s $size $imageFile";

        exec$cmd$output$return_var );

        var_dump$output );

        var_dump$return_var );
    }
    catchException $e ){
        $s 'caught exception: ' $e->getMessage();
    }
}
else
{
    $s 'exec not available: not created';

Reply


Messages In This Thread
Local/Live Problem - by Chandini - 02-14-2016, 11:26 PM
RE: Local/Live Problem - by skunkbad - 02-15-2016, 12:17 AM
RE: Local/Live Problem - by Chandini - 02-15-2016, 01:17 AM
RE: Local/Live Problem - by Diederik - 02-15-2016, 01:04 AM
RE: Local/Live Problem - by Chandini - 02-15-2016, 01:39 AM
RE: Local/Live Problem - by skunkbad - 02-15-2016, 09:12 AM
RE: Local/Live Problem - by Chandini - 02-15-2016, 10:49 PM
RE: Local/Live Problem - by skunkbad - 02-16-2016, 12:19 AM
RE: Local/Live Problem - by Chandini - 02-16-2016, 02:19 AM
RE: Local/Live Problem - by siburny - 02-16-2016, 05:07 PM
RE: Local/Live Problem - by Chandini - 02-16-2016, 10:03 PM
RE: Local/Live Problem - by Chandini - 02-16-2016, 11:23 PM
RE: Local/Live Problem - by skunkbad - 02-17-2016, 12:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB