[Bug 791385] New: RGB24: Broken behavior with non multiple of 4 frame width

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Dec 8 10:12:00 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=791385

            Bug ID: 791385
           Summary: RGB24: Broken behavior with non multiple of 4 frame
                    width
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: patcherwork at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

I have been testing some video capture hardware using v4l2src. One of the
devices I am working with can capture in non multiple of 4 widths. While
testing I noticed that RGB24 on a non *4 width, e.g. 1022, would cause the
frame to break. After some further investigation and testing I discovered that
if you input an RGB24 image with an odd format it would break the pipeline. I
would guess that the pipeline is expecting the video to be padded. Below is an
example, I am providing the reference images:

this works:
gst-launch-1.0 multifilesrc  location=1024x1024_rgb24_works ! rawvideoparse 
format=rgb  width=1024 height=1024 ! videoconvert  ! ximagesink

this breaks:
gst-launch-1.0 multifilesrc  location=1022x1024_rgb24_breaks ! rawvideoparse 
format=rgb  width=1022 height=1024 plane-strides='<3072>' ! videoconvert  !
ximagesink

For v4l2src I am doing the following:
gst-launch-1.0 v4l2src device=/dev/video1 io-mode=1 !
video/x-raw,format=RGB,width=1022,height=1024 ! videoconvert ! ximagesink

For io-mode RW and Usrptr the pipeline is broken, for mmap the pipeline
functions as intended.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list