The Little Guy Posted April 30, 2008 Share Posted April 30, 2008 Why isn't this creating the image? <?php $time = '00:30'; // Just a time that exists in the video $code = 'a3kj39k3k3'; // Just an example of what $code could be ($code.flv is an existing file) $newName = 'a3kj39k3k3.mpg'; // the mpg file $resX = 320; // Video width $resY = 240; // Video height $bitRateVid = 500; // Video Bitrate // create the flv video: exec("/usr/bin/ffmpeg -i '../videos/$newName' -s {$resX}x{$resY} -b {$bitRateVid}k '../videos/$code.flv'"); //create the jpg image: exec("ffmpeg -i '/home/murdercup/murdercup.publicsize.com/videos/$code.flv' -an -ss 00:$time -t 00:00:01 -r 1 -y -s 125x94 '/home/murdercup/murdercup.publicsize.com/videos/$code%d.jpg'"); ?> Link to comment https://forums.phpfreaks.com/topic/103512-create-an-image/ Share on other sites More sharing options...
The Little Guy Posted April 30, 2008 Author Share Posted April 30, 2008 Anyone have any ideas? If not, do you know of any active FFMpeg forums? Link to comment https://forums.phpfreaks.com/topic/103512-create-an-image/#findComment-530245 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.