Don't use the max quality file when transcoding to a new resolution
This commit is contained in:
parent
63247475a1
commit
92e0f42e8c
2 changed files with 13 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue