Community
cancel
Showing results for 
Search instead for 
Did you mean: 
songgang__zhao
Beginner
55 Views

auxiliary streams' quality is bad after Vpp Composition

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
55 Views

Hi SongGang,

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

I will try to reproduce it.

Mark

songgang__zhao
Beginner
55 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.

 

Mark_L_Intel1
Moderator
55 Views

Thanks,

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

Mark

Mark_L_Intel1
Moderator
55 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

QS
Beginner
55 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?
Mark_L_Intel1
Moderator
55 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

Reply