diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-11 09:51:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-11 09:51:17 +0100 |
commit | 92e0f42e8ce5f1ab5e4023900b8194627231a11b (patch) | |
tree | ddc3a1d23067de497a98fc7230bb33d0f5c5ddb7 /server/lib/video-transcoding.ts | |
parent | 63247475a1e300e378f604f70580070a120d9b96 (diff) | |
download | PeerTube-92e0f42e8ce5f1ab5e4023900b8194627231a11b.tar.gz PeerTube-92e0f42e8ce5f1ab5e4023900b8194627231a11b.tar.zst PeerTube-92e0f42e8ce5f1ab5e4023900b8194627231a11b.zip |
Don't use the max quality file when transcoding to a new resolution
Diffstat (limited to 'server/lib/video-transcoding.ts')
-rw-r--r-- | server/lib/video-transcoding.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts index 03bc21559..4fd1d62a9 100644 --- a/server/lib/video-transcoding.ts +++ b/server/lib/video-transcoding.ts | |||
@@ -105,7 +105,7 @@ async function mergeAudioVideofile (video: MVideoWithAllFiles, resolution: Video | |||
105 | const transcodeDirectory = CONFIG.STORAGE.TMP_DIR | 105 | const transcodeDirectory = CONFIG.STORAGE.TMP_DIR |
106 | const newExtname = '.mp4' | 106 | const newExtname = '.mp4' |
107 | 107 | ||
108 | const inputVideoFile = video.getMaxQualityFile() | 108 | const inputVideoFile = video.getMinQualityFile() |
109 | 109 | ||
110 | const audioInputPath = getVideoFilePath(video, inputVideoFile) | 110 | const audioInputPath = getVideoFilePath(video, inputVideoFile) |
111 | const videoTranscodedPath = join(transcodeDirectory, video.id + '-transcoded' + newExtname) | 111 | const videoTranscodedPath = join(transcodeDirectory, video.id + '-transcoded' + newExtname) |