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

set max_bitrate to match bitrate when using vbr #132

Merged
merged 1 commit into from
Jul 18, 2023
Merged

set max_bitrate to match bitrate when using vbr #132

merged 1 commit into from
Jul 18, 2023

Conversation

eiqnepm
Copy link
Contributor

@eiqnepm eiqnepm commented Jul 14, 2023

I have noticed that VBR is recording at a much lower bitrate than I expect.

When set to 15 Mb/s I see my recordings peaking at 5 Mb/s. I do not have this issue with OBS, I believe this might be because I have max bitrate to match bitrate, I figure that max bitrate being unset may be throttling the bitrate in RePlays.

I am unable to test this commit at the moment. I am not familiar with C# or the OBS libraries, however the change I made was very trivial.

If someone could build this for me to test, that would be fab!

@Segergren
Copy link
Contributor

Segergren commented Jul 14, 2023

I'll try it out :) Do you know how I can see the bitrate of the video?

@eiqnepm
Copy link
Contributor Author

eiqnepm commented Jul 14, 2023

I'll try it out :) Do you know how I can see the bitrate of the video?

If you're on Windows you can right click the file, select properties, select details, and you should be able to see total bitrate under video.

@Segergren
Copy link
Contributor

I'll try it out :) Do you know how I can see the bitrate of the video?

If you're on Windows you can right click the file, select properties, select details, and you should be able to see total bitrate under video.

So what do you see in your video, a maximum of 5000kbps?

@eiqnepm
Copy link
Contributor Author

eiqnepm commented Jul 14, 2023

I'll try it out :) Do you know how I can see the bitrate of the video?

If you're on Windows you can right click the file, select properties, select details, and you should be able to see total bitrate under video.

So what do you see in your video, a maximum of 5000kbps?

Roughly yes.

I can tell that it is not just the average and is indeed the peak because I can use VLC, tool, media information, statistics, input bitrate to see the bitrate as the recording is playing in high movement areas.

@Segergren
Copy link
Contributor

Your fix works well! It got up to 46750kbps (and a HUGE file 😁)

@eiqnepm
Copy link
Contributor Author

eiqnepm commented Jul 14, 2023

Your fix works well! It got up to 46750kbps (and a HUGE file 😁)

What was it for you before the change?

@lulzsun
Copy link
Owner

lulzsun commented Jul 18, 2023

I noticed this when VBR was first implemented, but I forgot about it because I was using CBR. I have briefly tested it but cannot properly confirm working since my recordings were not getting close to max bitrate (set 50MB but only seeing ~1MB), although it was lower without setting max bitrate.

However, I was only testing for a couple of seconds of recording so maybe that's why it didn't reach close to max bitrate. I will assume that it working as intended, given @Segergren's feedback.

Maybe in the future we can have an option to set both min/max bitrate for better control and functionality.

Thanks again for looking into this. Ready to merge.

@lulzsun lulzsun merged commit 333f084 into lulzsun:main Jul 18, 2023
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.

3 participants