Use mov for livephoto transcodes

cap
Varun Patil 2022-11-29 14:21:34 -08:00
parent 1f60010f6f
commit 9a958a65b7
2 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ class VideoController extends ApiBase
// Only Apple uses HEVC for now, so pass this to the transcoder // Only Apple uses HEVC for now, so pass this to the transcoder
// If this is H.264 it won't get transcoded anyway // If this is H.264 it won't get transcoded anyway
$liveVideoPath = $liveFile->getStorage()->getLocalFile($liveFile->getInternalPath()); $liveVideoPath = $liveFile->getStorage()->getLocalFile($liveFile->getInternalPath());
if ($this->getUpstream($id, $liveVideoPath, 'max.mp4')) { if ($this->getUpstream($id, $liveVideoPath, 'max.mov')) {
exit; exit;
} }
} }
@ -273,7 +273,7 @@ class VideoController extends ApiBase
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE); $contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE);
header("Content-Type: {$contentType}"); header("Content-Type: {$contentType}");
if (str_ends_with($profile, 'mp4')) { if (str_ends_with($profile, 'mov')) {
// cache full video 24 hours // cache full video 24 hours
header('Cache-Control: max-age=86400, public'); header('Cache-Control: max-age=86400, public');
} else { } else {

View File

@ -20,7 +20,7 @@ mv "exiftool-$exifver" exiftool
rm -rf *.zip exiftool/t exiftool/html rm -rf *.zip exiftool/t exiftool/html
chmod 755 exiftool/exiftool chmod 755 exiftool/exiftool
govod="0.0.20" govod="0.0.21"
echo "Getting go-vod $govod" echo "Getting go-vod $govod"
wget -q "https://github.com/pulsejet/go-vod/releases/download/$govod/go-vod-amd64" wget -q "https://github.com/pulsejet/go-vod/releases/download/$govod/go-vod-amd64"
wget -q "https://github.com/pulsejet/go-vod/releases/download/$govod/go-vod-aarch64" wget -q "https://github.com/pulsejet/go-vod/releases/download/$govod/go-vod-aarch64"