2

I am using Codeigniter to develop a website in which one of the features is to upload videos to a folder. There will be a gallery that contains several thumbnails corresponding to each video. Those thumbnails would work as a links to the corresponding video.

I created the gallery following this tutorial(code is available here):

Only changed the accepted files and added to the htaccess these lines:

php_value upload_max_filesize 100M php_value post_max_size 100M

Here is my question: is it possible to use the present code to get the thumbnails (because I can do that if I upload images) or do I have to use ffmpeg or similar.

DMBorges
  • 93
  • 2
  • 8

2 Answers2

2

You will have to use FFMPEG-PHP (or similar) to get a thumbnail from a video.

Part of this guide explains how it's done: https://arjunphp.com/upload-video-convert-flv-using-ffmpeg-codeigniter/

Jacob
  • 1,483
  • 8
  • 13
0

For pure PHP code I have found the following tutorial on Youtube quite useful as a starting point for my own CI project.

FFMPEG and PHP

Fionn Ross
  • 1
  • 1
  • 2