Skip to content

Commit

Permalink
Tests - Video encoder test (ROCm#777)
Browse files Browse the repository at this point in the history
* added video encoder test

* Update encoder.gdf

Just did a test and this doesn't need the full path.

* Update README.md

Changed to not having full path for input file.

Co-authored-by: svcbuild <ptcherni@amd.com>
  • Loading branch information
paveltc and svcbuild authored Feb 24, 2022
1 parent 16a18ee commit ae9b4c3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/amd_media_tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AMD Media Tests

data yuvimg = image:1280,720,NV12:read,test.yuv<br>

<br>
Run runvx -affinity:GPU file encoder.gdf<br>
<br>
Sample Expected output:<br>
INFO: writing 1280x720 4.00mbps 30.00fps gopsize=15 bframes=0 video into output.264<br>
csv,HEADER ,STATUS, COUNT,cur-ms,avg-ms,min-ms,clenqueue-ms,clwait-ms,clwrite-ms,clread-ms<br>
csv,OVERALL, PASS, 1, , 6.26, 6.26, 0.00, 0.00, 0.00, 0.00 (median 6.256)<br>
8 changes: 8 additions & 0 deletions tests/amd_media_tests/encoder.gdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import vx_amd_media

# read input sequences
data yuvimg = image:1280,720,NV12:read,test.yuv
data vid1 = scalar:STRING,"output.264,4,30,0,15"
data aux_output = array:UINT8,256
data gpu_mode = scalar:BOOL,FALSE
node com.amd.amd_media.encode vid1 yuvimg NULL aux_output gpu_mode
1 change: 1 addition & 0 deletions tests/amd_media_tests/test.yuv

Large diffs are not rendered by default.

0 comments on commit ae9b4c3

Please sign in to comment.