Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lowering the VRAM usage on NVDEC decoder #7387

Merged
merged 1 commit into from Mar 1, 2022
Merged

Lowering the VRAM usage on NVDEC decoder #7387

merged 1 commit into from Mar 1, 2022

Conversation

nyanmisaka
Copy link
Member

@nyanmisaka nyanmisaka commented Mar 1, 2022

Changes

  • Set -threads 1 to NVDEC decoder explicitly since it doesn't implement threading support. The default number of threads in NVDEC reserves too much VRAM without actually using them.
  • Remove the extra_hw_frames workaround since it has been fixed by switching to yuv420p instead of nv12(disabling passthrough mode) in cuda pipeline. (save ~100MiB VRAM too)

Issues
image

VRAM usage:

4k 10bit HEVC ->1080p H264
1474 MiB -> 712 MiB

1080p 10bit HEVC -> 1080p H264
491 MiB -> 293 MiB

observed by nvidia-smi 511.79 on GTX 1650

@cvium cvium merged commit 6498a5b into master Mar 1, 2022
@nyanmisaka nyanmisaka deleted the nvdec-threads branch March 1, 2022 15:54
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.

None yet

3 participants