Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force keyframe interval for segments #508

Merged
merged 1 commit into from
Sep 29, 2023
Merged

force keyframe interval for segments #508

merged 1 commit into from
Sep 29, 2023

Conversation

frostbyte73
Copy link
Member

No description provided.

@@ -148,6 +148,14 @@ func (p *PipelineConfig) updateEncodedOutputs(req EncodedOutput) error {
}
}

if segmentConf := p.Outputs[types.EgressTypeSegments]; segmentConf != nil {
// double the segment length
p.KeyFrameInterval = float64(2 * segmentConf.(*SegmentConfig).SegmentDuration)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do we set the default segment duration and what is it set to?

Copy link
Member Author

@frostbyte73 frostbyte73 Sep 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's set to 4 in output_segments

@frostbyte73 frostbyte73 merged commit 2885c36 into main Sep 29, 2023
1 check passed
@frostbyte73 frostbyte73 deleted the keyframe-interval branch September 29, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants