Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $command='C:\program\ffmpeg.exe -i C:\wamp\www\Project\video\last-child.mp4 -f image2 -vframes 1 C:\wamp\www\Project\thumb\last-child.jpg';
- if(Execute($command, $output) != 0)
- {
- die($output);
- }else{
- echo 'video created!';
- }
- function Execute($command, &$output)
- {
- $out = array();
- $ret = -1;
- exec($command." 2>&1",$out,$ret);
- foreach($out as $line)
- {
- $output.= $line;
- }
- return $ret;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment