I need make 24 frames per second with PHP ffmpeg
. This is current format of
$t = mktime(0, 0, 0, 1, 1, 98);
Later I use this function
exec("/usr/local/bin/ffmpeg -ss " . date("H:i:s", $t) . " -i {$file} -f mjpeg -vframes 1 -s {$size} {$tmpfile}");
In date("H:i:s", $t)
I need make date("H:i:s.milliseconds", $t)
. This is not working date("H:i:s.u", $t)
because of mktime
format (hours, minutes, seconds, day. month, years) I guess.
So, is it possible to add milliseconds to mktime
?