Asynchronous AVIF saver using ComfyUI's native AVIF encoding path. The AVIF encode runs in a detached worker so the workflow does not wait for encoding.
The parallelism input controls SVT-AV1's LevelOfParallelism setting through
FFmpeg's svtav1-params. 0 keeps SVT-AV1's automatic behavior. Lower nonzero
levels reduce CPU and memory pressure while higher levels allow more encoding
parallelism. This is a parallelism level, not a strict thread count.
The completed AVIF is sent through ComfyUI's normal executed preview path.
After the file is written, the output is also enriched with ComfyUI asset data
when asset support is enabled. The job history is updated with the completed
output so the job completion window and asset viewer can see it.