Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No video thumbnails #1703

Closed
Shadowfied opened this issue Oct 15, 2016 · 12 comments
Closed

No video thumbnails #1703

Shadowfied opened this issue Oct 15, 2016 · 12 comments
Assignees

Comments

@Shadowfied
Copy link

Hiya.

I just set up elFinder and I love it. It's great. Everything seems to work great, except that I'm not getting video thumbnails. Picture thumbnails work fine.
I'm running Debian 8.6 Jessie on Linux 3.16.-0-4 64, using nginx and PHP7.

I've Googled and searched but haven't found anyone with the same issue.

What do I do?

@nao-pon
Copy link
Member

nao-pon commented Oct 15, 2016

@Shadowfied Video thumbnail feature require the ffmpeg on the server.

Please try install the ffmpeg into your server.

@Shadowfied
Copy link
Author

ffmpeg is already installed.

@nao-pon
Copy link
Member

nao-pon commented Oct 15, 2016

What results do you get of ffmpeg -version on your server shell?

@Shadowfied
Copy link
Author

ffmpeg version N-81502-ga13a81a Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/home/shadowfied/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/shadowfied/ffmpeg_build/include --extra-ldflags=-L/home/shadowfied/ffmpeg_build/lib --bindir=/home/shadowfied/bin --enable-gpl --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
libavutil      55. 29.100 / 55. 29.100
libavcodec     57. 54.101 / 57. 54.101
libavformat    57. 48.101 / 57. 48.101
libavdevice    57.  0.102 / 57.  0.102
libavfilter     6. 58.100 /  6. 58.100
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  1.100 /  2.  1.100
libpostproc    54.  0.100 / 54.  0.100

I did build ffmpeg from source and I thought maybe that could be the culprit, but I have a friend who installed ffmpeg straight from pacman (Arch, Manjaro) and he has the same issue - no video thumbs.

@nao-pon
Copy link
Member

nao-pon commented Oct 15, 2016

This is test script. (test.php)

<?php
$tmp = 'test.mp4';
$file = 'test.png';
$ss = 6;
$cmd = sprintf('ffmpeg -ss 00:00:%.3f -vframes 1 -i %s -f image2 %s', $ss, escapeshellarg($tmp), escapeshellarg($file));
$o = array('Results:');
exec($cmd, $o);
echo join("<br>\n", $o);
  • test.php
  • test.mp4
  • test.png -> This will made at the time of success.

@Shadowfied
Copy link
Author

@nao-pon
Option vframes (set the number of video frames to output) cannot be applied to input file test.mp4 -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to. Error parsing options for input file test.mp4. Error opening input files: Invalid argument Results:%

@nao-pon
Copy link
Member

nao-pon commented Oct 15, 2016

Please try from download test.mp4 in the same directory as the test.php.

@nao-pon
Copy link
Member

nao-pon commented Oct 15, 2016

How is $cmd = sprintf('ffmpeg -i %s -f image2 -ss 00:00:%.3f -vframes 1 %s', escapeshellarg($tmp), $ss, escapeshellarg($file));?

@Shadowfied
Copy link
Author

I did put the files in the same directory.

It worked with your updated command. Works fine. Got a test.png frame.

@nao-pon
Copy link
Member

nao-pon commented Oct 15, 2016

@Shadowfied OK, I got it. It is a bug. I'll fix it. Thanks! 👍

@nao-pon nao-pon self-assigned this Oct 15, 2016
@nao-pon
Copy link
Member

nao-pon commented Oct 15, 2016

@Shadowfied You can try nightly build until release 2.1.17.

Thanks for your time!

@Shadowfied
Copy link
Author

That fixed it. Huge thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants