Implement FFmpeg HW acceleration