Comments (1)
Hello! The different encoders have different opinions of things, and one of them is the Quality BitrateMode option. I have noticed the Microsoft sofware encoder will in many cases use a higher bitrate given the same quality number than hardware encoders.
Your code has set the bitrate for the encoder, but you also must set the encoder in "constat bitrate" or CBR mode, for that option to have effect. Quality and Bitrate is mutually exclusive.
For quality (this is default, which is why it works if omitted)
VideoEncoderOptions = new VideoEncoderOptions
{
Encoder = new H264VideoEncoder { BitrateMode = H264BitrateControlMode.Quality },
Quality = 30
}
for CBR:
VideoEncoderOptions = new VideoEncoderOptions
{
Encoder = new H264VideoEncoder { BitrateMode = H264BitrateControlMode.CBR},
Bitrate = 50000
}
I think if you change it to CBR, you will see the files have the same size between the two encoders, but probably overall larger size. At least with 50mbit bitrate, which is quite a lot (Blu-ray quality)
from screenrecorderlib.
Related Issues (20)
- Publish AOT not compatible? HOT 2
- Are there any minimum system requirements for this to work? HOT 1
- Mouse highlight not positioned correctly during window recording
- Is their a way of dynamicly change the bitrate of the recording?
- Set the border's color around of the recording DisplayOverlay HOT 2
- Recording does not start when stop on paused HOT 1
- Include .pdb files HOT 1
- Support for Captions/Video Transcript HOT 2
- Very laggy behaviour in 4k quality with 60 fps HOT 2
- Recording error: The specified device interface or feature level is not supported on this system HOT 1
- Can I obtain the recording stream? HOT 1
- Add AudioEncoderFormat HOT 1
- Can not install this nuget package for WinForm project target .net 8.0 X64 CPU HOT 1
- All Monitor Recording Not Working HOT 2
- Posting Stream to RTMP URL HOT 1
- File Size difference in windows 10
- Win11 23H2 Run Demo program Testapp/TestAppWinforms appear Error HOT 2
- Audio device changed may kill application HOT 1
- Can watermark support be added HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screenrecorderlib.