mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-08 06:17:41 +00:00
This patch implements the DNNAsyncExecModule for the LibTorch backend, enabling non-blocking inference using the common infrastructure instead of custom threading (th_async_module_submit) to align with the TensorFlow and OpenVINO backends. The implementation uses ff_dnn_start_inference_async which provides unified async logic across all DNN backends, eliminating the need for backend-specific threading code. Verified with: ffmpeg -f lavfi -i testsrc=duration=5:size=320x240:rate=30 -vf dnn_processing=dnn_backend=torch:model=model.pt -y output.mp4 Signed-off-by: Raja Rathour <imraja729@gmail.com>