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

CBR for rtmp streams #568

Merged
merged 1 commit into from
Dec 26, 2023
Merged

CBR for rtmp streams #568

merged 1 commit into from
Dec 26, 2023

Conversation

frostbyte73
Copy link
Member

No description provided.

@@ -538,6 +535,12 @@ func (b *VideoBin) addEncoder() error {
if err = x264Enc.SetProperty("vbv-buf-capacity", bufCapacity); err != nil {
return err
}
if b.conf.GetStreamConfig() != nil {
x264Enc.SetArg("pass", "cbr")
Copy link
Contributor

Choose a reason for hiding this comment

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

cbr is the default value according to the documentation. Any reason to set it anyway?

Copy link
Member Author

Choose a reason for hiding this comment

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

the veryfast setting sets rc=crf, I wasn't sure whether that meant it's being overridden

@frostbyte73 frostbyte73 merged commit 204a8a4 into main Dec 26, 2023
2 checks passed
@frostbyte73 frostbyte73 deleted the stream-cbr branch December 26, 2023 20:21
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