1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Fix audio only transcoding

This commit is contained in:
Chocobozzz 2021-12-23 10:57:55 +01:00
parent c7c6afc66d
commit 482b26231b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 31 additions and 15 deletions

View file

@ -169,6 +169,7 @@ function mergeAudioVideofile (video: MVideoFullLight, resolution: VideoResolutio
// Important to do this before getVideoFilename() to take in account the new file extension
inputVideoFile.extname = newExtname
inputVideoFile.resolution = resolution
inputVideoFile.filename = generateWebTorrentVideoFilename(inputVideoFile.resolution, newExtname)
const videoOutputPath = VideoPathManager.Instance.getFSVideoFileOutputPath(video, inputVideoFile)