pcwalton / rust-media

A free, comprehensive, and portable video/audio streaming library for Rust
Apache License 2.0
787 stars 57 forks source link

Support VA-API for hardware acceleration on linux #35

Open siriux opened 7 years ago

siriux commented 7 years ago

It would be interesting to have support for VA-API using libva to make use of the GPU hardware decoding for H.264 on linux.

There is a rust project on github with an incomplete implementation https://github.com/zzoon/libva-rust

I asked about the license on this project, and if it's possible to release it under Apache 2.0 and MIT.

ishitatsuyuki commented 7 years ago

I feel ffmpeg covers better for these purposes. It's too bloated for video playback, but it covers all the acceleration need for you.

siriux commented 7 years ago

AFAIK ffmpeg doesn't support VA-API decoding, just encoding: https://trac.ffmpeg.org/wiki/HWAccelIntro

They might be working on something, but on current ffmpeg is not available, and it's a must if you want to work smoothly with large resolutions or 60fps.