Fix video quality on high resolution/fps

This commit is contained in:
Chocobozzz 2023-10-04 09:21:14 +02:00
parent 1611721c9b
commit fbc7f1a00d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 0 additions and 3 deletions

View File

@ -21,9 +21,6 @@ export function addDefaultEncoderParams (options: {
const { command, encoder, fps, streamNum } = options
if (encoder === 'libx264') {
// 3.1 is the minimal resource allocation for our highest supported resolution
command.outputOption(buildStreamSuffix('-level:v', streamNum) + ' 3.1')
if (fps) {
// Keyframe interval of 2 seconds for faster seeking and resolution switching.
// https://streaminglearningcenter.com/blogs/whats-the-right-keyframe-interval.html