- try {
- await remove(videoInputPath)
-
- // Important to do this before getVideoFilename() to take in account the new filename
- inputVideoFile.extname = newExtname
- inputVideoFile.filename = generateWebTorrentVideoFilename(resolution, newExtname)
- inputVideoFile.storage = VideoStorage.FILE_SYSTEM
-
- const videoOutputPath = VideoPathManager.Instance.getFSVideoFileOutputPath(video, inputVideoFile)
+ // Important to do this before getVideoFilename() to take in account the new filename
+ inputVideoFile.extname = newExtname
+ inputVideoFile.filename = generateWebTorrentVideoFilename(resolution, newExtname)
+ inputVideoFile.storage = VideoStorage.FILE_SYSTEM