I have several mp4 files on my server and i want to generate a thumbnail image for each of the file.

Do i have to read the complete file for a thumbnail, or is there a way to just seek at middle of the video and take that frame as a thumbnail?

Any Help is highly appriciated

If you can use the command line then use ffmpeg with the -vframes option, example here:

Through PHP you can use exec() or you can use this PHP-FFMpeg that supports -vframes

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.