XFMG (Video thumbnail)

JoyFreak

Well-known member
I have noticed when uploading a video, a thumbnail is not automatically generated and one must upload one manually. Is there a way this can automatically be done, with a random thumbnail from the video set, sort of like YouTube? As I can see my members being lazy and uploading the video and not setting a thumbnail manually. If loads of members decide to upload videos, it will leave the XFMG index page looking dull without any thumbnails at all!
 
This is a server configuration matter. Essentially your PHP configuration does not allow scripts to access files outside of specified locations. You may need to see if you can whitelist that file specifically.
 
If you’re talking about the FFmpeg extension for PHP then that isn’t required because our approach calls FFmpeg directly. It looks like you already did that successfully.

If you’re still struggling with the open_basedir thing you just need to resolve that and that’s it.
 
Thank you very much ... You have helped me at least I have solved all the things. But as you still guess .. I'm struggling with Php.ini. I tried a lot ... I even broke a server. I ran the server again

Code:
; open_basedir, if set, limits all file operations to the defined directory; and below.  This directive makes most sense if used in a per-directory; or per-virtualhost web server configuration file.; http://php.net/open-basedir;open_basedir =

This is the change I need to make. At php.ini but what I wrote did not work ..


Code:
; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file.
; Note: disables the realpath cache
; http://php.net/open-basedir
open_basedir = /usr/bin/ffmpeg


this is what i do but it still doesn't happen
 
Last edited:
Top Bottom