vaapi

How do you get FFMPEG to encode with vaapi?

≡放荡痞女 提交于 2020-05-09 19:57:05
问题 I've seen various examples of using libavcodec with vaapi to accelerated decoding, but how do you use it to accelerate encoding? 回答1: As of today, FFmpeg and libav have implemented hardware-accelerated encoding via VAAPI on supported platforms and hardware SKUs, and I have written a write-up on the same that will enable you to set up, deploy and use both ffmpeg and libav to achieve the same effect. And in the same note, I've added references to hardware surface limits so you'll know what

(FFmpeg) VP9 Vaapi encoding to a .mp4 or .webm container from given official ffmpeg example

别等时光非礼了梦想. 提交于 2019-12-24 07:50:04
问题 I'm trying to implement vp9 hardware acceleration encoding process. I followed ffmpeg offical github's example (Here -> vaapi_encode.c). But given example only save a .yuv file to .h264 file, I would like to save the frames to either .mp4 or .webm container. And having the ability to control the quality, and etc. I'm not reading frames from a file, I'm collecting frames from a live feed. When having full 5 secs of frames from the live feed, encode those frames using vp9_vaapi to a 5 secs .mp4