Skip to content

Added vaapi support - #82

Open
mardaravicius wants to merge 2 commits into
Proryanator:mainfrom
mardaravicius:add-vaapi-support
Open

Added vaapi support#82
mardaravicius wants to merge 2 commits into
Proryanator:mainfrom
mardaravicius:add-vaapi-support

Conversation

@mardaravicius

Copy link
Copy Markdown

Added vaapi support for this benchmarking tool. Vaapi is a linux only library to do video hw encoding and decoding that is not vendor specific.

Tested with a new AMD 890M and very old Intel HD 4400 (only supports h264) integrated gpus under ubuntu and cachy os. Seems to be working fine.

Comment thread engine/src/engine.rs

println!("[Resolution:\t{}x{}]", metadata.width, metadata.height);
println!("[Encoder:\t{}]", permutation.encoder);
println!("[Encoder:\t{}]", format_encoder_label(&permutation));

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a way to show if benchmark is running 8bit or 10bit

pub gpu: u8,
/// DRM render node used by VAAPI encoders
#[arg(long, value_name = "device", default_value = "/dev/dri/renderD128")]
pub vaapi_device: String,

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe should have changed gpu flag to be string and pass this value there? As other encoders have similar things under linux.

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.

1 participant