Skip to content

vaapiencoder: Set parameters to buffersrc filter before initialization

  • vaapiencoder: Set parameters to buffersrc filter before initialization

According to FFmpeg documentation, parameters need to be set before initialization otherwise things fail. This seems to happen with recent FFmpeg that complains about missing the hardware encoding context. So rather than using avfilter_graph_create_filter() to allocate and initialize in one call, use avfilter_graph_alloc_filter() to allocate, then set the parameters and after that initialize it. This seems to restore VAAPI encoding on my machine.

Merge request reports

Loading