$fN = "c:/inetpub/wwwroot/", if (extension_loaded (' ffmpeg ')) {//Determines whether ffmpeg is loaded $mov = new Ffmpeg_movie ($fN. " 44.mp4 ");//The path of the video $count = $mov->getframecount (); $ff _frame = $mov->getframe; Capture 80 frames of the picture if ($ff _frame) {$gd _image = $ff _frame->togdimage ();
php5.4 version successfully configured FFmpeg, the code as above, video is the local video source, call Imagejpeg ($GD _image); This can be displayed in a test environment browser built by the organization to display a captured picture. However, the imagejpeg ($gd _image, $fN. $img) is called, and images that output local paths cannot be generated. Ask the big God to see what code is missing?
Reply to discussion (solution)
Imagejpeg ($GD _image); OK
Imagejpeg ($gd _image, $fN. $img); You can do it.
See if the permissions are enough
$fN = "c:/inetpub/wwwroot/";
You're using IIS?
IIS-managed directories are not write-privileged by default and need to be set in Manager
Imagejpeg ($GD _image); OK
Imagejpeg ($gd _image, $fN. $img); You can do it.
See if the permissions are enough
$fN = "c:/inetpub/wwwroot/";
You're using IIS?
IIS-managed directories are not write-privileged by default and need to be set in Manager
Yes, well, I'm using IIS. Thank you, thank you, great God.