Fastest way to extract a specific frame from a video (PHP/ffmpeg/anything)
I have a web page, which (among other things) needs to extract a specific frame from a user-uploaded video. The user seeks to a particular part of a .mp4 in the player, then clicks a button, and an ajax call gets fired off to a php script which takes the .mp4, and the exact time from the video, and uses that to extract a "thumbnail" frame. My current solution is using the php exec command: exec("ffmpeg -i $videoPath -ss $timeOffset -vframes 1 $jpgOutputPath"); ...which works just great, except it's as slow as molasses. My guess is that ffmpeg is a little too much for the job, and I might be