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.
3075 Discussions

auxiliary streams' quality is bad after Vpp Composition

songgang__zhao
Beginner
940 Views

I did a test to stitching four same pictures into one picture by sample_vpp.exe, but I found the quality of auxiliarystream worse than mainstream, is that normal?

The four input pictures resolution are 1920*1080, out picture resolution is 1280*720

stream=camera_capture.yuv
width=1920
height=1080
fourcc=nv12
cropx=0
cropy=0
cropw=1920
croph=1080
dstx=0
dsty=0
dstw=640
dsth=360

stream=camera_capture.yuv
width=1920
height=1080
fourcc=nv12
cropx=0
cropy=0
cropw=1920
croph=1080
dstx=640
dsty=0
dstw=640
dsth=360

stream=camera_capture.yuv
width=1920
height=1080
fourcc=nv12
cropx=0
cropy=0
cropw=1920
croph=1080
dstx=0
dsty=360
dstw=640
dsth=360

stream=camera_capture.yuv
width=1920
height=1080
fourcc=nv12
cropx=0
cropy=0
cropw=1920
croph=1080
dstx=640
dsty=360
dstw=640
dsth=360

0 Kudos
6 Replies
Mark_L_Intel1
Moderator
940 Views

Hi SongGang,

Could you send me the input picture and the command you used?

I will try to reproduce it.

Mark

0 Kudos
songgang__zhao
Beginner
940 Views

Hi Mark

Thank you for you reply, the input picture and the command I used is in the attachment.

command: sample_vpp.exe -lib hw -dw 960 -dh 540 -dcc nv12 -composite compose.txt -o composition.yuv

The MadeaSDK ver is 1.17.

 

0 Kudos
Mark_L_Intel1
Moderator
940 Views

Thanks,

I can reproduce what you said, let me do some research and get back to you soon.

Mark

0 Kudos
Mark_L_Intel1
Moderator
940 Views

Hi Songgang,

First let me clarify the image file "composition.PNG" you posted, the artifacts happens in 3 positions: top-right, bottom-left, bottom-right; the image on the top-left doesn't have problem, do you agree?

I did a little bit more test and found the image without the artifact will always be the first input on in the compose.txt file, you can test this by moving around the other 3 inputs in the file to the first.

I think there should be bug there but I would suggest you to program this by yourself by referring to the following article:

https://software.intel.com/en-us/articles/video-composition-using-intel-media-sdk

Mark

0 Kudos
QS
Beginner
940 Views

Hi Mark:

I reproduced it on linux.

And fix the bug by modified the open souce media driver.

In media_driver/linux/common/vp/ddi/media_libva_vp.c

There are:

pVpHalSrcSurf->SurfType == SURF_IN_PRIMARY

When Composition, the value is SURF_IN_SUBSTREAM
 
Just changed it.
 
So question is, how to fix the problem in windows?
0 Kudos
Mark_L_Intel1
Moderator
940 Views

Hi Songgang,

A good test! Thanks so much.

I have report it although I am not sure if this is the root cause.

Mark

0 Kudos
Reply