<div dir="auto">I am trying to find out why our (cinelerra-gg) ffmpeg integration refuses to load filtergraph < and crashes and burns! > if I set hw decoding to any value (it works for sw decoding).<div dir="auto"><br></div><div dir="auto">So far I found this example (not accepted) on ffmpeg-devel, but I am still not sure how to apply ot for our case (we useĀ av_buffersink_get_frame() )</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><a href="https://ffmpeg.org/pipermail/ffmpeg-devel/2018-August/233555.html" rel="noreferrer noreferrer noreferrer" target="_blank">https://ffmpeg.org/pipermail/ffmpeg-devel/2018-August/233555.html</a></div><div dir="auto"><br></div><div dir="auto">In general, I hope to get hw decoding (now via vulkan ) + libplacebo doing tonemapping purely on GPU *before* frames ingested into cingg for further (mostly software/host) manipulation, display and encode.</div><div dir="auto"><br></div><div dir="auto">But I guess for this I need to pass around hw_device_context created for decoder for this media/input file? (our filtering options are either global or per-file)</div><div dir="auto"><br></div><div dir="auto"><pre>filter_graph->filters[i]->hw_device_ctx = av_buffer_ref(hw_device_ctx);</pre></div><div dir="auto">Paul, your lavfi-preview does not have hw filters previews yet, or I read sources too diagonally?</div></div>