server/lib/private/preview
Vincent Petry 0c6af55112 Added ffmpeg fallback when avconv is not available
On some distros, avconv isn't available yet.
This fix adds a fallback to ffmpeg.
When none is found, no error message is displayed in the console any
more.

Fixes #5745

Also, this now uses exec() instead of shell_exec() to be able to get the
return code.

The binary path found with "which" is now used to prevent further FS
binary lookup when running the commands.

Moved the "-ss" parameter before "-i" for ffmpeg.
2013-11-08 12:19:32 +01:00
..
image.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
movies.php Added ffmpeg fallback when avconv is not available 2013-11-08 12:19:32 +01:00
mp3.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
office-cl.php any preview requiring the which command will not be used on Windows 2013-10-15 00:15:45 +02:00
office-fallback.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
office.php fix comment 2013-10-17 15:19:15 +02:00
pdf.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
provider.php fix doc block of OC\Preview\Provider::getThumbnail() 2013-10-07 13:19:21 +02:00
svg.php move the private namespace OC into lib/private - OCP will stay in lib/public 2013-09-30 16:36:59 +02:00
txt.php accept text/markdown as well 2013-10-16 15:31:43 +02:00
unknown.php resize svg without loosing quality 2013-10-11 00:12:37 +02:00