I Need PHP Functions to return the duration (number of frames) and selected frame as a JPEG from an MP4 video
Budget: $10 – $20 USD
PHP Version 7.2.34 (attached)
XAMPP
Examples:
f(path of MP4) = Number of frames
f(path of MP4) = Duration as 4 numbers: (Hours,Minutes,Seconds,Frames within the last second)
g(path of MP4,Frame number) = JPEG
g(path of MP4,Hour,Minute,Second,Frame Number within the Second) = JPEG
The jpeg could then be saved by $content=g(. . .) and:
function makefile($path,$content) { # Make File
$a=fopen($path,"w") ; fwrite($a,$content) ; fclose($a) ; }
XAMPP
Examples:
f(path of MP4) = Number of frames
f(path of MP4) = Duration as 4 numbers: (Hours,Minutes,Seconds,Frames within the last second)
g(path of MP4,Frame number) = JPEG
g(path of MP4,Hour,Minute,Second,Frame Number within the Second) = JPEG
The jpeg could then be saved by $content=g(. . .) and:
function makefile($path,$content) { # Make File
$a=fopen($path,"w") ; fwrite($a,$content) ; fclose($a) ; }