From 5fac290b37b6014199009c920eacf312548a3819 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 30 Sep 2023 11:37:40 -0700 Subject: [PATCH] share: enable sharing smaller videos Signed-off-by: Varun Patil --- CHANGELOG.md | 1 + lib/Controller/VideoController.php | 2 +- lib/Service/BinExt.php | 2 +- src/components/modal/ShareModal.vue | 25 +++++++++++++++---------- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddf95118..70046930 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - **Feature**: View file in folder on clicking name in sidebar - **Feature**: User can leave albums that are shared with them - **Feature**: Admin can now configure default behavior of loading high resolution image in viewer ([#672](https://github.com/pulsejet/memories/pull/672)) +- **Feature**: Shared videos will now be transcoded to be smaller in size - **Fix**: Support for transcoding MKV files. ## [v5.4.1] - 2023-08-20 diff --git a/lib/Controller/VideoController.php b/lib/Controller/VideoController.php index 06c12ca2..531fce31 100644 --- a/lib/Controller/VideoController.php +++ b/lib/Controller/VideoController.php @@ -206,7 +206,7 @@ class VideoController extends GenericApiController // If this is H.264 it won't get transcoded anyway if ($liveVideoPath) { return Util::guardExDirect(function ($out) use ($transcode, $liveVideoPath) { - $this->getUpstream($transcode, $liveVideoPath, 'max.mov'); + $this->getUpstream($transcode, $liveVideoPath, 'max.mp4'); }); } } diff --git a/lib/Service/BinExt.php b/lib/Service/BinExt.php index 31b24e80..8358b55f 100644 --- a/lib/Service/BinExt.php +++ b/lib/Service/BinExt.php @@ -9,7 +9,7 @@ use OCA\Memories\Util; class BinExt { public const EXIFTOOL_VER = '12.60'; - public const GOVOD_VER = '0.1.14'; + public const GOVOD_VER = '0.1.15'; public const NX_VER_MIN = '1.0'; /** Copy a binary to temp dir for execution */ diff --git a/src/components/modal/ShareModal.vue b/src/components/modal/ShareModal.vue index 87fa7928..f8a08efd 100644 --- a/src/components/modal/ShareModal.vue +++ b/src/components/modal/ShareModal.vue @@ -10,7 +10,7 @@