mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Fix
This commit is contained in:
parent
97892e4403
commit
28045b6a50
2 changed files with 17 additions and 4 deletions
16
conf/ffmpeg.patch
Normal file
16
conf/ffmpeg.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
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')) ||
|
|
@ -137,15 +137,12 @@ pushd $final_path
|
|||
php$phpversion artisan config:clear -n
|
||||
php$phpversion artisan config:cache -n
|
||||
patch -p1 < "$YNH_CWD/../conf/ffprobe.patch"
|
||||
patch -p1 < "$YNH_CWD/../conf/ffmpeg.patch"
|
||||
popd
|
||||
|
||||
# Setup custom user.css file
|
||||
ynh_add_config --template="../conf/user.css.example" --destination="$final_path/public/dist/user.css"
|
||||
|
||||
# pushd $final_path
|
||||
# patch -p1 < $YNH_CWD/../conf/conf/ffprobe.patch
|
||||
# popd
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue