Don't use the max quality file when transcoding to a new resolution

This commit is contained in:
Chocobozzz 2019-12-11 09:51:17 +01:00
parent 63247475a1
commit 92e0f42e8c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 13 additions and 5 deletions

View file

@ -105,7 +105,7 @@ async function mergeAudioVideofile (video: MVideoWithAllFiles, resolution: Video
const transcodeDirectory = CONFIG.STORAGE.TMP_DIR
const newExtname = '.mp4'
const inputVideoFile = video.getMaxQualityFile()
const inputVideoFile = video.getMinQualityFile()
const audioInputPath = getVideoFilePath(video, inputVideoFile)
const videoTranscodedPath = join(transcodeDirectory, video.id + '-transcoded' + newExtname)