Jump to content

Create an Image


The Little Guy

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.