From 364c2f034b70c170f05237da3f5624a2e613b55b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 25 Jun 2021 11:54:57 +0200 Subject: [PATCH] Update app-00-add-ffprobe-path.patch --- sources/app-00-add-ffprobe-path.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sources/app-00-add-ffprobe-path.patch b/sources/app-00-add-ffprobe-path.patch index 58364e8..7453bd3 100644 --- a/sources/app-00-add-ffprobe-path.patch +++ b/sources/app-00-add-ffprobe-path.patch @@ -1,3 +1,19 @@ +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')) || diff --git a/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php b/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php index 9ececfe..106eadd 100644 --- a/vendor/lychee-org/php-exif/lib/PHPExif/Adapter/FFprobe.php