Skip to content

feat(nvenc): add support for explicit cuda streams#2360

Open
Yozer wants to merge 4 commits into
PyAV-Org:mainfrom
Yozer:add-cuda-streams
Open

feat(nvenc): add support for explicit cuda streams#2360
Yozer wants to merge 4 commits into
PyAV-Org:mainfrom
Yozer:add-cuda-streams

Conversation

@Yozer

@Yozer Yozer commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

The performance gains probably depend on the specific pipeline.

In my case, I didn’t see any improvement with 1080p HEVC videos, but at 4K and 8K, the speed-up was around 13% and 25%, respectively (e2e wall time).

I haven’t looked into it too deeply, but my guess is that NVENC uses the default stream 0 and requires a full synchronization before encoding. At lower resolutions, that overhead doesn’t make much difference, but with 4K and 8K workloads, waiting for all the processing kernels to finish before encoding becomes more significant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant