-
Notifications
You must be signed in to change notification settings - Fork 210
Revert "Remove nvenc/dec for xenna 0.1.6" #1374
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
base: main
Are you sure you want to change the base?
Conversation
Greptile SummaryThis PR reverts #1202 to restore NVENC/NVDEC hardware encoder/decoder support for video transcoding stages.
The revert addresses GPU resource allocation issues observed with Xenna's GPU usage vs allocated resources via Ray. Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User as User
participant Pipeline as Pipeline
participant ClipTranscodingStage as ClipTranscodingStage
participant Resources as Resources
participant XennaAdapter as XennaStageAdapter
participant Xenna as XennaResources
User->>Pipeline: run()
Pipeline->>ClipTranscodingStage: __post_init__()
alt h264_nvenc or use_hwaccel
ClipTranscodingStage->>ClipTranscodingStage: _get_local_gpu_info()
ClipTranscodingStage->>ClipTranscodingStage: _make_gpu_resources_from_gpu_name()
ClipTranscodingStage->>Resources: Resources(nvencs=..., gpu_memory_gb=...)
else CPU encoding
ClipTranscodingStage->>Resources: Resources(cpus=...)
end
Pipeline->>XennaAdapter: required_resources
XennaAdapter->>Resources: Get cpus, gpus, nvdecs, nvencs, entire_gpu
XennaAdapter->>Xenna: XennaResources(cpus, gpus, nvdecs, nvencs, entire_gpu)
Xenna-->>XennaAdapter: Resource allocation
XennaAdapter-->>Pipeline: Execute stage with resources
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (1)
-
tests/stages/video/clipping/test_clip_transcoding_stage.py, line 31-42 (link)style: Both
MockGpuInfoandMockGpuResourcesclasses are defined but never used in any tests. Consider removing them or adding tests that utilize these mocks.
7 files reviewed, 1 comment
Reverts #1202 due to some issues we see with Xenna's GPU usage vs the allocated resources via Ray