1

Is there any way to display video(snapshot) as as a image in PHP?

S L
  • 14,262
  • 17
  • 77
  • 116
  • You've mistaken, pal. PHP is a Hypertext preprocessor, not video editor. – Your Common Sense Sep 17 '10 at 07:54
  • possible duplicate of [How to create thumbnails or preview for videos?](http://stackoverflow.com/questions/2265572/how-to-create-thumbnails-or-preview-for-videos) – Gordon Sep 17 '10 at 07:55

2 Answers2

2

There is an option without generating a new snapshot, simply using html code :) easy, isn't it?

<video src='DIRECCION_DEL_VIDEO' width='100px' height='60px'/>

Hope you enjoy it!

Regards,

Jose Romero

1

Well You can create thumbnail using ffmpeg .

Then you can simply execute that command from php using exec. You can show created thumbnail then as you want.

You can check http://flowplayer.org/tutorials/generating-thumbs.html

Nik
  • 4,015
  • 3
  • 20
  • 16