mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
dbd4929643
* Create app-00-add-ffprobe-path.patch
16 lines
818 B
Diff
16 lines
818 B
Diff
diff --git a/app/Actions/Photo/Extensions/VideoEditing.php b/app/Actions/Photo/Extensions/VideoEditing.php
|
|
index 1a96769..5842606 100644
|
|
--- a/app/Actions/Photo/Extensions/VideoEditing.php
|
|
+++ b/app/Actions/Photo/Extensions/VideoEditing.php
|
|
@@ -45,7 +45,10 @@ trait VideoEditing
|
|
/**
|
|
* ! check if we can use path instead of this ugly thing.
|
|
*/
|
|
- $ffmpeg = FFMpeg::create();
|
|
+ $ffmpeg = FFMpeg::create(array(
|
|
+ 'ffmpeg.binaries' => '/usr/bin/ffmpeg',
|
|
+ 'ffprobe.binaries' => '/usr/bin/ffprobe',
|
|
+ ));
|
|
/** @var Video */
|
|
$video = $ffmpeg->open(Storage::path('big/' . $photo->url));
|
|
if (!($tmp = tempnam(sys_get_temp_dir(), 'lychee')) ||
|