import * as Bull from 'bull'
import { copy, stat } from 'fs-extra'
import { extname } from 'path'
+import { getLowercaseExtension } from '@server/helpers/core-utils'
import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent'
import { generateVideoFilename, getVideoFilePath } from '@server/lib/video-paths'
import { UserModel } from '@server/models/user/user'
const { size } = await stat(inputFilePath)
const fps = await getVideoFileFPS(inputFilePath)
- const fileExt = extname(inputFilePath)
+ const fileExt = getLowercaseExtension(inputFilePath)
const currentVideoFile = video.VideoFiles.find(videoFile => videoFile.resolution === videoFileResolution)