Reputation: 41
Is there any way to create a video thumbnail through PHP without ffmpeg?
My hosting server doesn't provide ffmpeg, so I need an alternative way (open source and free).
I have searched everywhere but no luck so far.
Upvotes: 2
Views: 3930
Reputation: 13557
Of course you can implement the decoding algorithm for the video in question yourself, in PHP. Chances are you do not want to do that. So you will have to use a library that already implemented these algorithms. ffmpeg is one of those libraries, libav would be another. You could write a PECL to interface either library to run certain functions (like extracting a frame) from within your PHP process.
But I honestly do not see why you would want to go through either of that. So the question boils down to »why are you asking for a solution without ffmpeg?«
Is it not available on your server? Ask your IT-Support if they can make it available to you. If they can't, consider switching providers.
Upvotes: 2