Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3058 Discussions

Copy NV12 video frame with CopyFrame Accelertaed SMID Function

David_X
Beginner
403 Views

 

Hi

    I am using Video Decoding Sample to decode media file and get the data of NV12.

    Howerver,it is too slow to use -d3d mod ,while copy the memory from video surface  to SYS memory. 
    Until I  read the article of
 Copying Accelerated Video Decode Frame Buffers .So  I tried to use the CopyFrame function to do some test.

System Configuration: i3 3220, 4G DDR3 RAM OS win7 32bit  Video: H.264  1080P  MOD  -hw -d3d Use SMID to do the Copy

Decode  and Copy speed is 200 fps/s 

System Configuration: i3 3220, 4G DDR3 RAM OS  win7 32bit  Video: H.264  1080P  MOD  -hw Use Memcpy

   without  D3D9_MEMORY   Decode  and Copy speed is 160fps/s 

 

     The result look like so good, but  when i put the code running in the another environment,it take a revese result.

System Configuration:  i7 4650, 8G DDR3 RAM OS win7 64bit  Video: H.264  1080P  MOD  -hw -d3d  Use SMID to do the Copy

 Decode and Copy speed is 130 fps/s 

System Configuration:  i7 4650,, 8G DDR3 RAM OS  win7 64bit  Video: H.264  1080P  MOD  -hw Use Memcpy

       without  D3D9_MEMORY   Decode  and Copy speed is 290 fps/s 

 

 

System Configuration:  i7 4650, 8G DDR3 RAM OS win7 32bit  Video: H.264  1080P  MOD  -hw -d3d Use SMID to do the Copy

 Decode and Copy speed is 200 fps/s 

 

System Configuration:  i7 4650,, 8G DDR3 RAM OS  win7 32bit  Video: H.264  1080P  MOD  -hw Use Use SMID to do the Copy

without  D3D9_MEMORY   Decode  and Copy speed is 220 fps/s 

 

System Configuration:  i7 4650,, 8G DDR3 RAM OS  win7 32bit  Video: H.264  1080P  MOD  -hw  Use Memcpy

 without  D3D9_MEMORY   Decode  and Copy speed is 300 fps/s 

 

 

 

My questions are listed below :

  1. Why speed of d3d mod in i7 CPU is slower than in i3 CPU ,is that cause by 64 bit Windows System?
  2. When the code running in the i7 CPU  32 bit Windows System , The Accelerated frame Copy Function is slower than the Memcpy, it make me confuse.

3、  Is that Copy Memory from D3D9_MEMORY to SYSTEM_ MEMORY is slower than from SYSTEM_ MEMORY to SYSTEM_ MEMORY with CopyFrame Funcion in i7 .

Thanks for your response,
    Best regards,

 

0 Kudos
0 Replies
Reply