rust-sdks icon indicating copy to clipboard operation
rust-sdks copied to clipboard

Hardware encoding support

Open George-Gi opened this issue 1 year ago • 3 comments

I am trying to utilize my Intel GPU for encoding. Since the rust-sdk makes use of the libwebrtc I am trying to figure out if it exposes a configuration to choose an option for hardware encoding using a GPU. In the sources I noticed

pub struct VideoConfiguration {
    #[prost(enumeration="ClientConfigSetting", tag="1")]
    pub hardware_encoder: i32,
}

However, I can't figure out where this VideoConfiguration is used or initialized. If I enable the hardware_encoder, is there a way to indicate to use vaapi?

My utter goal is to use the Python SDK which makes a call to the rust-sdk and configure it to use hardware encoding.

George-Gi avatar Dec 02 '24 15:12 George-Gi

Hey @George-Gi, were you able to find a solution to this?

jasseeeem avatar Apr 09 '25 09:04 jasseeeem

Hey @George-Gi, were you able to find a solution to this?

Unfortunately there is no HW support, this variable hardware_encoder is unrelated to enabling any HW encoding.

George-Gi avatar Apr 11 '25 15:04 George-Gi

in order to enable hw encoding/decoding support, we must first add it into libwebrtc. this is something we are currently looking into

davidzhao avatar May 05 '25 05:05 davidzhao

closing this ticket as hw encoding support for Nvidia & AMD has been merged https://github.com/livekit/rust-sdks/pull/638

chenosaurus avatar Oct 24 '25 17:10 chenosaurus