aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video-transcoding.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-12-22 15:42:02 +0100
committerChocobozzz <me@florianbigard.com>2020-12-22 16:04:42 +0100
commit236841a1d73a1b67541537f0017856848ad43b79 (patch)
tree843d6fdb355f834bd03d1c9b0f40eea0390cd424 /server/lib/video-transcoding.ts
parent1916c9663ac632227e60ebc93cec616b2dd6800d (diff)
downloadPeerTube-236841a1d73a1b67541537f0017856848ad43b79.tar.gz
PeerTube-236841a1d73a1b67541537f0017856848ad43b79.tar.zst
PeerTube-236841a1d73a1b67541537f0017856848ad43b79.zip
Force HLS transcoding
Fix weird behaviour with some web browsers. Don't really know if it's a ffmpeg bug, a safari bug or a peertube bug, but forcing transcoding seems to fix this playback bug
Diffstat (limited to 'server/lib/video-transcoding.ts')
-rw-r--r--server/lib/video-transcoding.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts
index e7108bd5a..078e85acf 100644
--- a/server/lib/video-transcoding.ts
+++ b/server/lib/video-transcoding.ts
@@ -59,6 +59,8 @@ async function optimizeOriginalVideofile (video: MVideoWithFile, inputVideoFileA
59 const videoOutputPath = getVideoFilePath(video, inputVideoFile) 59 const videoOutputPath = getVideoFilePath(video, inputVideoFile)
60 60
61 await onVideoFileTranscoding(video, inputVideoFile, videoTranscodedPath, videoOutputPath) 61 await onVideoFileTranscoding(video, inputVideoFile, videoTranscodedPath, videoOutputPath)
62
63 return transcodeType
62 } catch (err) { 64 } catch (err) {
63 // Auto destruction... 65 // Auto destruction...
64 video.destroy().catch(err => logger.error('Cannot destruct video after transcoding failure.', { err })) 66 video.destroy().catch(err => logger.error('Cannot destruct video after transcoding failure.', { err }))