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

[Issue]: com.amd.amd_media.decode - Hardware Decode Failure #1305

Closed
kiritigowda opened this issue Mar 15, 2024 · 2 comments
Closed

[Issue]: com.amd.amd_media.decode - Hardware Decode Failure #1305

kiritigowda opened this issue Mar 15, 2024 · 2 comments
Assignees
Labels
bug Something isn't working high High Priority - Bug fix or new feature

Comments

@kiritigowda
Copy link
Collaborator

Problem Description

All our tests verified software decode as data vid1 = scalar:STRING,"1,PATH_TO/MIVisionX/data/videos/AMD_driving_virtual_20.mp4:0" -- :0 forces SW decode; using :1 fails the node

GDF

import vx_amd_media

# read input sequences
data vid1 = scalar:STRING,"1,PATH_TO/MIVisionX/data/videos/AMD_driving_virtual_20.mp4:1"
data nvimg  = image:1920,1080,NV12:write,decoder_output.yuv
data loop = scalar:INT32,0
data gpu_out = scalar:INT32,0
node com.amd.amd_media.decode vid1 nvimg NULL loop gpu_out

ERROR

runvx decoder.gdf 
runvx 1.0.0
OK: using AMD OpenVX 1.3.0
OK: loaded 2 kernels from libvx_amd_media.so
VAAPI device created for device /dev/dri/renderD128 and stream 0
OK created sws context src: <2048 1024 0> dst: <1920 1080 23>
INFO: reading 1920x1080 into slice#0 from /home/kiriti/develop/mivisionx-kiriti/MIVisionX/data/videos/AMD_driving_virtual_20.mp4
csv,HEADER ,STATUS, COUNT,cur-ms,avg-ms,min-ms,clenqueue-ms,clwait-ms,clwrite-ms,clread-ms
Error in output image scaling using sws_scale
ERROR: kernel com.amd.amd_media.decode exec failed (-1:(null))
ERROR: vxScheduleGraph() failed (-1:VX_FAILURE)
Average Decode Time per frame (ms): 0.80889
Average Transfer Time per frame (ms): 10.4776

Operating System

ALL

CPU

ALL

GPU

AMD Radeon Pro W6800

Other

ANY GPU with VCN

ROCm Version

ROCm 6.0.0

ROCm Component

MIVisionX

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

@kiritigowda kiritigowda added the bug Something isn't working label Mar 15, 2024
@kiritigowda kiritigowda added the high High Priority - Bug fix or new feature label Mar 17, 2024
@rrawther
Copy link
Contributor

This seems to be a regression. It was working before for sure. We need to regress and see when it stopped working

@kiritigowda
Copy link
Collaborator Author

passing on TOT master with #1310

runvx decoder.gdf 
runvx 1.0.0
OK: using AMD OpenVX 1.3.0
OK: loaded 2 kernels from libvx_amd_media.so
VAAPI device created for device /dev/dri/renderD128 and stream 0
INFO: reading 2048x1024 into slice#0 from /home/kiriti/develop/mivisionx-kiriti/MIVisionX/data/videos/AMD_driving_virtual_20.mp4
csv,HEADER ,STATUS, COUNT,cur-ms,avg-ms,min-ms,clenqueue-ms,clwait-ms,clwrite-ms,clread-ms
csv,OVERALL,  PASS,     1,      , 44.38, 44.38,  0.00,  0.00,  0.00,  0.00 (median 44.382)
> total elapsed time:   0.05 sec
Average Decode Time per frame (ms): 1.03042
Average Transfer Time per frame (ms): 10.1415

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high High Priority - Bug fix or new feature
Projects
None yet
Development

No branches or pull requests

3 participants