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

"The encoder bitrate is negative" when recording with H.264 #3368

Open
glu8716 opened this issue Dec 8, 2024 · 1 comment
Open

"The encoder bitrate is negative" when recording with H.264 #3368

glu8716 opened this issue Dec 8, 2024 · 1 comment

Comments

@glu8716
Copy link

glu8716 commented Dec 8, 2024

Whenever I try to record videos with H.264 I get the following error message
[libx264 @ 0x555675a19380] The encoder bitrate is negative.
which result in a "Failed to open output video file" message.

I'm on git version (0.11-8614-938ee55d4).
Operating system: Artix Linux

@Squall-Leonhart
Copy link

Squall-Leonhart commented Dec 11, 2024

This shouldn't happen, in

} else if (encoder->videoBitrate < 0) {
it is already clamped 0 if negative.

The 7.1 change that added this check

https://github.com/FFmpeg/FFmpeg/blob/1e76bd2f394a01c19073160c380adbcaa779f474/libavcodec/encode.c#L767 which may require bit_rate being set to a valid range sooner.

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

No branches or pull requests

2 participants