After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776311 - result of mjpeg decoding using omxmjpegdec has many artifacts
result of mjpeg decoding using omxmjpegdec has many artifacts
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-omx
1.2.0
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-20 14:34 UTC by sonntex
Modified: 2018-05-07 15:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
image-00.jpeg (7.14 KB, image/jpeg)
2016-12-20 14:35 UTC, sonntex
Details
image-00.yuv (450.00 KB, video/x-raw-yuv)
2016-12-20 14:36 UTC, sonntex
Details
image-00-omx.yuv (450.00 KB, video/x-raw-yuv)
2016-12-20 14:37 UTC, sonntex
Details
gst.log (2.76 MB, application/octet-stream)
2016-12-20 14:37 UTC, sonntex
Details
gst-omx.log (1.85 MB, application/octet-stream)
2016-12-20 14:38 UTC, sonntex
Details

Description sonntex 2016-12-20 14:34:36 UTC
I have usb camera that produces sequence of jpeg images that can not be decoded by omxmjpegdec correctly.

# ls -l
total 104
-rw-r--r-- 1 root root  7313 Jan  3 18:43 image-00.jpeg
-rw-r--r-- 1 root root  7339 Jan  3 18:43 image-01.jpeg
-rw-r--r-- 1 root root  7345 Jan  3 18:43 image-02.jpeg
-rw-r--r-- 1 root root  6835 Jan  3 18:43 image-03.jpeg
-rw-r--r-- 1 root root  6835 Jan  3 18:43 image-04.jpeg
-rw-r--r-- 1 root root  6835 Jan  3 18:43 image-05.jpeg
-rw-r--r-- 1 root root  6840 Jan  3 18:43 image-06.jpeg
-rw-r--r-- 1 root root 15832 Jan  3 18:43 image-07.jpeg
-rw-r--r-- 1 root root 15832 Jan  3 18:43 image-08.jpeg
-rw-r--r-- 1 root root 15862 Jan  3 18:43 image-09.jpeg

Pipeline with jpegdec (libjpeg or libjpeg-turbo backend) produces correct result that can be viewed by imagemagick.

# GST_DEBUG=6 gst-launch-1.0 -qe multifilesrc location="image-%02d.jpeg" caps="image/jpeg,framerate=30/1" ! jpegdec ! multifilesink location="image-%02d.yuv" 2>gst.log

# display -size 640x480 -depth 8 -sampling-factor 4:2:0 -colorspace srgb image-00.yuv

Pipeline with omxmjpegdec (rpi-userland backend) produces incorrect result that can be viewed by imagemagick and has many artifacts.

# GST_DEBUG=6 gst-launch-1.0 -e multifilesrc location="image-%02d.jpeg" caps="image/jpeg,framerate=30/1" ! omxmjpegdec ! multifilesink location="image-%02d-omx.yuv" 2>gst-omx.log

# display -size 640x480 -depth 8 -sampling-factor 4:2:0 -colorspace srgb image-00-omx.yuv

Is it problem of gst-omx or rpi-userland?
Comment 1 sonntex 2016-12-20 14:35:38 UTC
Created attachment 342262 [details]
image-00.jpeg
Comment 2 sonntex 2016-12-20 14:36:17 UTC
Created attachment 342263 [details]
image-00.yuv
Comment 3 sonntex 2016-12-20 14:37:05 UTC
Created attachment 342264 [details]
image-00-omx.yuv
Comment 4 sonntex 2016-12-20 14:37:53 UTC
Created attachment 342265 [details]
gst.log
Comment 5 sonntex 2016-12-20 14:38:23 UTC
Created attachment 342266 [details]
gst-omx.log
Comment 6 Julien Isorce 2017-08-30 14:01:15 UTC
Can you try setting width and height as well instead of just: caps="image/jpeg,framerate=30/1"

so caps="image/jpeg,framerate=30/1,width=640,height=480".
Comment 7 Sebastian Dröge (slomo) 2018-05-07 15:52:21 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!