GStreamer Camera Issue (Unsupported pixformat: 0x56595559 with mbus code: 0x3001)
#1
Hey Everyone,

I've been trying to use gstreamer to access the camera on my pinephone.
I am running the mobian image mobian-pinephone-phosh-20221016.img.gz with all updates applied.

I first ran into the issue "does not support 2:0:0:0 colorimetry" as detailed on the following thread.
https://gitlab.com/mobian1/issues/-/issues/439

I first applied the patch to not bother checking the colorspace and rebuilt libgstvideo4linux2.so.
Code:
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index 9851ffc83..72a5eb33b 100644
--- a/sys/v4l2/gstv4l2object.c
+++ b/sys/v4l2/gstv4l2object.c
@@ -3840,7 +3840,9 @@ gst_v4l2_object_set_format_full (GstV4l2Object * v4l2object, GstCaps\
* caps,
      gst_structure_remove_field (s, "interlace-mode");
  }

-  if (gst_v4l2_object_get_colorspace (v4l2object, &format, &info.colorimetry)) {
+  GST_DEBUG_OBJECT (v4l2object->dbg_obj, "Processing colorimetry");
+
+  if (0 && gst_v4l2_object_get_colorspace (v4l2object, &format, &info.colorimetry)) {
    if (gst_structure_has_field (s, "colorimetry")) {
      if (!gst_v4l2_video_colorimetry_matches (&info.colorimetry, caps))
        goto invalid_colorimetry;



With this change however I now get a different error.
Code:
[81273.661098] sun6i-csi 1cb0000.csi: Unsupported pixformat: 0x56595559 with mbus code: 0x3001!
[81388.258465] ov5640 3-004c: firmware upload success
[81388.562323] ov5640 3-004c: uploaded firmware didn't start, got to 0x7f, retrying...
[81388.878315] ov5640 3-004c: uploaded firmware didn't start, got to 0x7f
[81388.884938] ov5640 3-004c: ov5640_set_ctrl_focus: no autofocus firmware loaded
[81391.636730] ov5640 3-004c: firmware upload success
[81391.934322] ov5640 3-004c: uploaded firmware didn't start, got to 0x7f, retrying...
[81392.246315] ov5640 3-004c: uploaded firmware didn't start, got to 0x7f
[81392.252947] ov5640 3-004c: ov5640_set_ctrl_focus: no autofocus firmware loaded
[81392.297694] sun6i-csi 1cb0000.csi: Unsupported pixformat: 0x56595559 with mbus code: 0x3001!


Looking online I found references to this same error in the error log on the following post.

https://forum.pine64.org/showthread.php?...1#pid71121

I assume the user was getting this error when attempting to use megapixels.
In my case megapixels works perfectly fine I only get this kernel error when I attempt to use gstreamer.

Does anyone know the nature of the "sun6i-csi 1cb0000.csi: Unsupported pixformat: 0x56595559 with mbus code: 0x3001!" error?
The other user didn't get this error after applying their patch so I am wondering if something else changed in mobian since they made there patch.

Also is it possible this pixformat error is related to the patch I made to gstreamer related to not obtaining the colorspace?
To my unfamiliar eyes it looks like it might be related by the author of the patch didn't seem to think it was.

Has anyone else successfully been able to use the pinephone camera with gstreamer under mobian?

Thanks!
  Reply


Messages In This Thread
GStreamer Camera Issue (Unsupported pixformat: 0x56595559 with mbus code: 0x3001) - by sog8b - 10-26-2022, 07:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New camera app gnome-snapshot working on trixie? vusra 4 786 04-11-2025, 02:53 AM
Last Post: vusra
  Pebble Smartwatch (inc source code) biketool 1 2,327 03-13-2025, 07:16 AM
Last Post: biketool
  New keyboard issue sandspur 30 22,739 01-13-2025, 01:37 AM
Last Post: grump_fiddle_reinstall
  The program doesn`t detect the camera blag0rag 6 3,018 09-17-2024, 03:45 PM
Last Post: Kevin Kofler
  Nheko - Missing GStreamer plugins videoconvert freelectro 4 3,301 03-04-2023, 11:12 PM
Last Post: Kevin Kofler
  Possible solutions to the battery draining issue? 3x5co 5 4,450 11-28-2022, 10:58 AM
Last Post: 3x5co
  Wifi issue since last update and held back updates goku499 11 9,421 09-21-2022, 02:39 PM
Last Post: Katsujinken
  Trying the camera switch on my PinePhone gilwood 5 5,169 04-02-2022, 12:54 PM
Last Post: jhasler
  mobian, pinephone camera, and megapixels dawg161 32 39,635 05-01-2021, 02:34 PM
Last Post: NormandC
  no camera,streaming after update rvh 0 2,304 03-21-2021, 08:02 AM
Last Post: rvh

Forum Jump:


Users browsing this thread: 1 Guest(s)