intel / media-driver

Intel Graphics Media Driver to support hardware decode, encode and video processing.
https://github.com/intel/media-driver/wiki
Other
996 stars 346 forks source link

[gstreamer-vaapi][encode][Jpeg] jpeg file show noise by using UYVY input format. #616

Closed feiwan1 closed 5 years ago

feiwan1 commented 5 years ago

When using UYVY format as the input for jpeg encode, the output file show noise. (This need the patch #615 )

cmdline: $ gst-launch-1.0 videotestsrc num-buffers=1 ! video/x-raw,format=UYVY ! vaapijpegenc ! jpegparse ! filesink location=out.uyvy.jpeg

And I used jpegenc from libva-utils got the same result: $ jpegenc 320 240 in.uyvy out.jpeg 2 50

Ps, when using YUY2, the output looks good.

Noise picture: out

Expected picture: gst yuy2

wangyan-intel commented 5 years ago

@feiwan1 I tried your command with #615 but no this issue on KBL. What platform do you run it on? My tried commit is 54a198dc79. Thanks.

feiwan1 commented 5 years ago

I am using SKL. @wangyan-intel

dnagasun commented 5 years ago

I tried the command with #615 in EHL Simics, can see this issue. it fails with UYVY, but looks good when tried with YUY2.

wangyan-intel commented 5 years ago

@feiwan1 Could you please try #648 ? Thanks.

feiwan1 commented 5 years ago

@wangyan-intel , with #615 and this patch, the issue is gone on SKL. Thanks.

wangyan42164 commented 5 years ago

For ICL platform, also need #658.