Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
feiwan1 opened this issue Apr 30, 2019 · 6 comments · Fixed by #648
Closed

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

feiwan1 opened this issue Apr 30, 2019 · 6 comments · Fixed by #648
Labels
Encode video encode related

Comments

@feiwan1
Copy link
Contributor

feiwan1 commented Apr 30, 2019

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
Copy link

wangyan-intel commented May 9, 2019

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

@feiwan1
Copy link
Contributor Author

feiwan1 commented May 9, 2019

I am using SKL. @wangyan-intel

@dnagasun
Copy link

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

wangyan42164 added a commit to wangyan42164/media-driver that referenced this issue Jun 14, 2019
Fixes intel#616.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
@wangyan-intel
Copy link

@feiwan1 Could you please try #648 ? Thanks.

@wangyan-intel wangyan-intel added the Encode video encode related label Jun 19, 2019
@feiwan1
Copy link
Contributor Author

feiwan1 commented Jun 19, 2019

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

@wangyan42164
Copy link
Contributor

For ICL platform, also need #658.

intel-mediadev pushed a commit that referenced this issue Jun 26, 2019
Fixes #616.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Encode video encode related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants