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

Fix libnvmedia libraries dlopen() dependency on nvsci #186

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

danielfullmer
Copy link
Collaborator

Description of changes

Fix libnvmedia libraries dlopen() dependency on nvsci

Testing

Also adds a test to multimedia-test that reproduces the failure when this fix is not applied.

Failing test:

Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
875967048
842091865
H264: Profile = 100, Level = 50
NVMEDIA: Need to set EMC bandwidth : 846000
NVMEDIA: Need to set EMC bandwidth : 846000
NVMEDIA_ENC: bBlitMode is set to TRUE
NvVideoEncTransferOutputBufferToBlock: DoWork failed line# 679
NvVideoEnc: NvVideoEncTransferOutputBufferToBlock TransferBufferToBlock failed Line=690
Could not read complete frame from input file

Succeeding test:

Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
875967048
842091865
H264: Profile = 100, Level = 50
NVMEDIA: Need to set EMC bandwidth : 846000
NVMEDIA: Need to set EMC bandwidth : 846000
NVMEDIA_ENC: bBlitMode is set to TRUE
Could not read complete frame from input file
Could not read complete frame from input file
File read complete.
App run was successful

Tested on all Xavier/Orin devkits.

Also adds a test to multimedia-test that reproduces the failure when
this fix is not applied.

Failing test:

> Opening in BLOCKING MODE
> NvMMLiteOpen : Block : BlockType = 4
> ===== NVMEDIA: NVENC =====
> NvMMLiteBlockCreate : Block : BlockType = 4
> 875967048
> 842091865
> H264: Profile = 100, Level = 50
> NVMEDIA: Need to set EMC bandwidth : 846000
> NVMEDIA: Need to set EMC bandwidth : 846000
> NVMEDIA_ENC: bBlitMode is set to TRUE
> NvVideoEncTransferOutputBufferToBlock: DoWork failed line# 679
> NvVideoEnc: NvVideoEncTransferOutputBufferToBlock TransferBufferToBlock failed Line=690
> Could not read complete frame from input file

Succeeding test:

> Opening in BLOCKING MODE
> NvMMLiteOpen : Block : BlockType = 4
> ===== NVMEDIA: NVENC =====
> NvMMLiteBlockCreate : Block : BlockType = 4
> 875967048
> 842091865
> H264: Profile = 100, Level = 50
> NVMEDIA: Need to set EMC bandwidth : 846000
> NVMEDIA: Need to set EMC bandwidth : 846000
> NVMEDIA_ENC: bBlitMode is set to TRUE
> Could not read complete frame from input file
> Could not read complete frame from input file
> File read complete.
> App run was successful
@danielfullmer danielfullmer merged commit 0cf783a into anduril:master Jan 31, 2024
1 check passed
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