Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

umc_video_dec_con NV12 scaling

j_l_
Beginner
382 Views

Hello all,

I am using the sample application umc_video_dec_con.exe to convert a h264 video file into nv12.

Using a command such as:

umc_video_dec_con -i myfile.mp4 -f nv12 -o outfile.yuv

works as expected (verifying the output file using third party image/video viewing software).

When I introduce horizontal scaling:

umc_video_dec_con -i myfile.mp4 -f nv12 -o outfile.yuv -r 1918 1080 -k

the output file colours are not correct; it looks like a vertical stripe of nv12 (uv) colour, followed by a vertical stripe of nv21 (vu) colour, repeating.

I see the effect using any scaling factor (horizontal only, vertical works correctly).

I do not see any error when converting to rgb, yuv modes and yv12.

Is this a known issue, or am I doing something wrong?

Many thanks in advance.

Using:

Intel(R) IPP:
  ippCore 7.1.1 (r37466) Sep 24 2012 
  ippSP AVX (g9) 7.1.1 (r37466) Sep 24 2012 
  ippIP AVX (g9) 7.1.1 (r37466) Sep 24 2012 
  ippJP AVX (g9) 7.1.1 (r37466) Sep 25 2012 
  ippVC AVX (g9) 7.1.1 (r37466) Sep 25 2012 
  ippDC AVX (g9) 7.1.1 (r37466) Sep 25 2012 
  ippCC AVX (g9) 7.1.1 (r37466) Sep 25 2012 

0 Kudos
1 Reply
Ying_H_Intel
Employee
382 Views

Hi J, l 

Have you try the latest IPP UMC example is in  8.0 legacy sample, you can download it  from http://registrationcenter.intel.com/irc_nas/3216/w_ipp_8.0.0.005_legacy_samples.zip?

It looks a bug, but we are not sure as the UMC example is now legacy one,  https://software.intel.com/en-us/articles/code-samples-for-intel-integrated-performance-primitives-library

Please note: Support for the contents of the legacy sample package is discontinued.  These previous samples are validated to build with the current IPP but no longer represent the direction of the product.  In some circumstances issues may be filed against the primitives but additional work on the samples will not be considered. 

Or  you may try Intel Media SDK   
https://software.intel.com/en-us/vcsource/tools/media-sdk-clients
UMC vs. Media SDK https://software.intel.com/en-us/forums/topic/277110 ;

 

Best Regards,

Ying H.



 

0 Kudos
Reply