mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Improve 4K video quality after transcoding
This commit is contained in:
@@ -205,11 +205,11 @@ async function addVideo (req: express.Request, res: express.Response) {
|
||||
}
|
||||
const videoFile = new VideoFileModel(videoFileData)
|
||||
|
||||
if (!videoFile.isAudio()) {
|
||||
if (videoFile.isAudio()) {
|
||||
videoFile.resolution = DEFAULT_AUDIO_RESOLUTION
|
||||
} else {
|
||||
videoFile.fps = await getVideoFileFPS(videoPhysicalFile.path)
|
||||
videoFile.resolution = (await getVideoFileResolution(videoPhysicalFile.path)).videoFileResolution
|
||||
} else {
|
||||
videoFile.resolution = DEFAULT_AUDIO_RESOLUTION
|
||||
}
|
||||
|
||||
// Move physical file
|
||||
|
||||
Reference in New Issue
Block a user