Validation

After a successful compilation, we can test with Quadra cards.

  1. Check Hardware.

With administrator privileges, open a Windows command terminal. Check the Quadra card presence with the following command:

wmic diskdrive get Name,SerialNumber,Model,Size

 

  1. Initialize Quadra

With administrator privileges, open a Windows command terminal. Go to C:/msys64/usr/local/bin folder. Initialize the Quadra with the following command.

This process must keep running during transcoding

 

cd C:/msys64/usr/local/bin
init_rsrc.exe
  1. Run FFmpeg

 

With administrator privileges, open a Windows command terminal. Change to the C:/msys64/usr/local/bin folder. Run the following commands with ffmpeg.exe to perform transcoding.

 

The following examples use the clips folder C:/msys64/home/nvme/libxcoder/test. Update this path if you wish to run custom clips for decoding or encoding.

cd C:/msys64/usr/local/bin
ffmpeg.exe

 

Test h264 decoder:

ffmpeg.exe -y -hide_banner -nostdin -vsync 0 -c:v h264_ni_quadra_dec -i C:/msys64/home/nvme/libxcoder/test/1280x720p_Basketball.264 -c:v rawvideo output_5.yuv

 

Test h265 decoder:

ffmpeg.exe -y -hide_banner -nostdin -vsync 0 -c:v h265_ni_quadra_dec -i C:/msys64/home/nvme/libxcoder/test/akiyo_352x288p25.265 -c:v rawvideo akiyo_352x288p25.yuv

 

Test h264 encoder:

ffmpeg.exe -y -hide_banner -nostdin -f rawvideo -pix_fmt yuv420p -s:v 352x288 -r 25 -i C:/msys64/home/nvme/libxcoder/test/akiyo_352x288p25.yuv -c:v h264_ni_quadra_enc output_7.h264

 

Test h265 encoder:

ffmpeg.exe -y -hide_banner -nostdin -f rawvideo -pix_fmt yuv420p -s:v 352x288 -r 25 -i C:/msys64/home/nvme/libxcoder/test/akiyo_352x288p25.yuv -c:v h265_ni_quadra_enc output_8.h265

 

Test 264->265 transcoder:

ffmpeg.exe -y -hide_banner -nostdin -vsync 0 -c:v h264_ni_quadra_dec -i C:/msys64/home/nvme/libxcoder/test/1280x720p_Basketball.264 -c:v h265_ni_quadra_enc output_9.h265

 

On Windows, params must be enclosed with double quotation marks.

For example: 

-xcoder-params “out=hw”
  1. Monitoring Load

 Open a Windows command terminal with administrator privileges and change to directory

C:/msys64/usr/local/bin

Run the following command:

ni_rsrc_mon.exe