here’s a quick lesson i learned the hard way. when ever you call getFrame($frame) from ffmpeg-php make sure your frame is greater than 0.
took me a bit to figure out that my loop was calling getFrame with $frame being 0.
Share and Enjoy:
here’s a quick lesson i learned the hard way. when ever you call getFrame($frame) from ffmpeg-php make sure your frame is greater than 0.
took me a bit to figure out that my loop was calling getFrame with $frame being 0.









4 Comments
Does $frame stand for the actual frame within the movie? Originally I was under the impression that doing getFrame(10) would get me a frame from 10 seconds into the movie, but I was definitely wrong.
Pardon, the delay in answering.
Yes,getFrame take the frame , not the time. Which is why getFrame(0) won’t work
Ah. So essentially what you needed was getFrame(1)
this will probably help :
http://elsid.net/2007/09/05/code-poc-ffmpeg-and-ffmpeg-php-flv-conversion-system/
It’s a demo ffmpeg / ffmpeg-php video thumbnailer / convertor