mirror of https://github.com/Chocobozzz/PeerTube
Fix video quality on high resolution/fps
parent
1611721c9b
commit
fbc7f1a00d
|
@ -21,9 +21,6 @@ export function addDefaultEncoderParams (options: {
|
||||||
const { command, encoder, fps, streamNum } = options
|
const { command, encoder, fps, streamNum } = options
|
||||||
|
|
||||||
if (encoder === 'libx264') {
|
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) {
|
if (fps) {
|
||||||
// Keyframe interval of 2 seconds for faster seeking and resolution switching.
|
// Keyframe interval of 2 seconds for faster seeking and resolution switching.
|
||||||
// https://streaminglearningcenter.com/blogs/whats-the-right-keyframe-interval.html
|
// https://streaminglearningcenter.com/blogs/whats-the-right-keyframe-interval.html
|
||||||
|
|
Loading…
Reference in New Issue