File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ env_logger.workspace = true
5252[features ]
5353default = [" wayland-wlr" ]
5454windows = [" openh264-video-encoder" ]
55- # wayland-wlr = ["dep:screen-capture-wayland-wlr", "x264-video-encoder"]
56- wayland-wlr = [" dep:screen-capture-wayland-wlr" , " openh264-video-encoder" ]
55+ wayland-wlr = [" dep:screen-capture-wayland-wlr" , " x264-video-encoder" ]
56+ # wayland-wlr = ["dep:screen-capture-wayland-wlr", "openh264-video-encoder"] # For Debug on Linux
5757wayland-portal = [" dep:screen-capture-wayland-portal" , " x264-video-encoder" ]
5858
5959x264-video-encoder = [" dep:x264" ]
Original file line number Diff line number Diff line change 1+ - ` Linux ` platform uses ` x264 ` (~ 12ms)
2+ - ` Windows ` platform uses ` openh264 ` (~ 25ms)
Original file line number Diff line number Diff line change @@ -25,11 +25,9 @@ impl OpenH264VideoEncoder {
2525 let encoder_config = EncoderConfig :: new ( )
2626 . skip_frames ( false )
2727 . profile ( Profile :: Baseline )
28- . complexity ( Complexity :: High )
29- . background_detection ( false )
30- . adaptive_quantization ( false )
31- . rate_control_mode ( RateControlMode :: Bufferbased )
32- . usage_type ( UsageType :: ScreenContentRealTime )
28+ . complexity ( Complexity :: Low )
29+ . rate_control_mode ( RateControlMode :: Quality )
30+ . usage_type ( UsageType :: CameraVideoRealTime )
3331 . max_frame_rate ( FrameRate :: from_hz ( config. fps . to_u32 ( ) as f32 ) ) ;
3432
3533 let encoder = Encoder :: with_api_config ( OpenH264API :: from_source ( ) , encoder_config)
You can’t perform that action at this time.
0 commit comments