[SOLVED] Video thumbnail images

video-issues

Joined: 2014-08-07
Posts: 4
Posted: Thu, 2014-08-07 06:12

I have a gallery3 installation ( self hosted ) server info bellow. My problem is that the video thumbnail images are missing. I installed the videothumb as it was suggested one of the topic, but when I try to grap one image, it's says that "Total video length: 00 seconds." which is obviously wrong, since the video plays well without issue. In the Apache error log I can't see any record about it, so a bit puzzeled what to do now.
The videos has been uploaded with server add, and the format is MP4, any suggestion is welcome.
I have ffmpeg in the bin folder, "FFmpeg (of unknown version) was found in /var/www/gallery/bin"
Graphics toolkit: gd
Version: 3.0.9 (Chartres)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2014-08-07 12:19

is ffmpeg executable?
try:/var/www/gallery/bin/ffmpeg -version

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
video-issues

Joined: 2014-08-07
Posts: 4
Posted: Thu, 2014-08-07 16:24

Just in case, it's out of date I downloaded it a recent one, so now it's look like that.

/var/www/gallery/bin/ffmpeg -version
ffmpeg version N-63893-gc69defd
built on Jul 16 2014 05:13:25 with gcc 4.6 (Debian 4.6.3-1)
configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
libavutil 52. 89.100 / 52. 89.100
libavcodec 55. 66.101 / 55. 66.101
libavformat 55. 43.100 / 55. 43.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 8.100 / 4. 8.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100

But still all the video is 00 sec long, and on the admin page the version is unkown, I even tried to enabled the exec function in apache, but that still did not helped, and still not even a single error in the logs.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2014-08-07 19:24

Its not apache that you need to enable exec() its PHP

Link to your phpinfo?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
video-issues

Joined: 2014-08-07
Posts: 4
Posted: Thu, 2014-08-07 21:00

I'm glad and thankful, that you try to help but i have to disagree on that, this settings is not for the PHP, it's for the Apache, yes you setup it in PHP, but it's Apache specific, the exec() is allowed for the PHP (like cli) but not allowed for Apache, but anyway I read that it's needed only for the Image magic and others not the ffmpeg.
Anyway I managed to collect the phpinfo collected for you, I hope it's helps to debug the issue.
http://pastebin.com/raw.php?i=vpx4ftYp

Thanks in advance

ps.: I did not meant to be rude or smartass, just for the future if someone read it it's better to have a clear picture

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2014-08-07 21:16

PHP's exec() is needed for any external executable like ffmpeg and imagemagick

Quote:
disable_functions show_source,system,shell_exec,exec,passthru,proc_open,apache_note,apache_setenv,popen,proc_close,proc_get_status,proc_terminate,putenv,virtual,openlog,proc_nice,syslog show_source,system,shell_exec,exec,passthru,proc_open,apache_note,apache_setenv,popen,proc_close,proc_get_status,proc_terminate,putenv,virtual,openlog,proc_nice,syslog,phpinfo

showing it is disabled.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
video-issues

Joined: 2014-08-07
Posts: 4
Posted: Fri, 2014-08-08 09:55

Well, we have the winner but I think this is a bug. Actualy it was not even the exec() but the shell_exec() function what the ffmpeg use.
For the other two image processor ImageMagick and GraphicsMagick, there is a clear message about the exec() is missing but noting is on the ffmpeg, and about the shellexec() even less (zero) so this issue could be considered as resolved, since I just removed all the video, so it should be fine, [i]I will just search for some other solution, better the enable the shellexec ...

Anyway thanks for your help, and if you think I'm at least semi true, then add this checks to the open issues, since this is just bad to not have the information about that you have to make your system insecure to be able to run videos.