- 编码器自动选择:NVENC(H264 High/CBR 5Mbps/UltraLowLatency/无B帧/按需IDR)→ openh264 兜底 - Duplication 增加 GPU 中间纹理(B8G8R8A8 DEFAULT),NVENC register_resource_dx11 直读,颜色转换完全省略 - KeyFrameReq → encode_picture(picture_type=IDR),静止 500ms 重编码 P 帧 - windows 0.58→0.62(nvenc crate 依赖 0.62,运行时 dlopen nvEncodeAPI64.dll 零 SDK 依赖) - 实测(GTX 1650 Ti 回环):encode 41ms→4ms/帧(10x),convert 0ms,viewer 解码正常
25 lines
594 B
TOML
25 lines
594 B
TOML
[package]
|
|
name = "agent"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
common = { path = "../common" }
|
|
anyhow.workspace = true
|
|
tokio.workspace = true
|
|
quinn.workspace = true
|
|
rustls.workspace = true
|
|
rcgen.workspace = true
|
|
lz4_flex.workspace = true
|
|
openh264 = { version = "0.9.9", features = ["source"] }
|
|
nvenc = "0.1.0"
|
|
windows = { workspace = true, features = [
|
|
"Win32_Foundation",
|
|
"Win32_Graphics_Direct3D",
|
|
"Win32_Graphics_Direct3D11",
|
|
"Win32_Graphics_Dxgi",
|
|
"Win32_Graphics_Dxgi_Common",
|
|
"Win32_UI_Input_KeyboardAndMouse",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|