]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/video-transcoding.ts
Add video files migration
[github/Chocobozzz/PeerTube.git] / server / lib / video-transcoding.ts
index b366e2e44ce68b7dc8fdbaa70ba9ec620960f601..e3cd18e2536690d45629956a425e1a5ebd6e5fe8 100644 (file)
@@ -166,6 +166,7 @@ async function mergeAudioVideofile (video: MVideoFullLight, resolution: VideoRes
 
   // Important to do this before getVideoFilename() to take in account the new file extension
   inputVideoFile.extname = newExtname
+  inputVideoFile.filename = generateVideoFilename(video, false, inputVideoFile.resolution, newExtname)
 
   const videoOutputPath = getVideoFilePath(video, inputVideoFile)
   // ffmpeg generated a new video file, so update the video duration