mirror of https://github.com/Chocobozzz/PeerTube
Oup's
parent
0229b014e0
commit
28e51e831b
|
@ -118,13 +118,13 @@ function transcode (options: TranscodeOptions) {
|
||||||
return new Promise<void>(async (res, rej) => {
|
return new Promise<void>(async (res, rej) => {
|
||||||
let fps = await getVideoFileFPS(options.inputPath)
|
let fps = await getVideoFileFPS(options.inputPath)
|
||||||
// On small/medium resolutions, limit FPS
|
// On small/medium resolutions, limit FPS
|
||||||
// if (
|
if (
|
||||||
// options.resolution !== undefined &&
|
options.resolution !== undefined &&
|
||||||
// options.resolution < VIDEO_TRANSCODING_FPS.KEEP_ORIGIN_FPS_RESOLUTION_MIN &&
|
options.resolution < VIDEO_TRANSCODING_FPS.KEEP_ORIGIN_FPS_RESOLUTION_MIN &&
|
||||||
// fps > VIDEO_TRANSCODING_FPS.AVERAGE
|
fps > VIDEO_TRANSCODING_FPS.AVERAGE
|
||||||
// ) {
|
) {
|
||||||
// fps = VIDEO_TRANSCODING_FPS.AVERAGE
|
fps = VIDEO_TRANSCODING_FPS.AVERAGE
|
||||||
// }
|
}
|
||||||
|
|
||||||
let command = ffmpeg(options.inputPath, { niceness: FFMPEG_NICE.TRANSCODING })
|
let command = ffmpeg(options.inputPath, { niceness: FFMPEG_NICE.TRANSCODING })
|
||||||
.output(options.outputPath)
|
.output(options.outputPath)
|
||||||
|
|
Loading…
Reference in New Issue