⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Create video Thumbnail when uploading file



mbabar86

mbabar86
  • profile picture
  • Member

Posted 17 October 2012 - 13:46 PM

hi!

I am new to grocerycrud. I am uploading video using the given code bellow that is working fine.

$crud->display_as('video_url', 'Upload Videos');
$crud->set_field_upload('video_url', 'assets/uploads/files/videos/video_page');

But i wana thumbnail of the uploaded video like youtube etc...

please help if anyone already solve this scanario.

Happy Coding!

Akylenok

Akylenok
  • profile picture
  • Member

Posted 19 October 2012 - 17:56 PM

use [b]ffmpeg[/b]

ffmpeg -i video.avi -an -ss 00:01:30 -r 1 -vframes 1 -s 320×240 -y -f mjpeg screenshot.jpg