[libcamera-devel] Video recording on PinePhone Re: libcamera on pinephone

Nicolas Dufresne nicolas at ndufresne.ca
Tue Jul 5 19:10:43 CEST 2022


Le mardi 05 juillet 2022 à 18:14 +0300, Rafael Diniz via libcamera-devel a
écrit :
> Tested. I still get:
> 
> gst-launch-1.0 libcamerasrc camera-name="/base/i2c-csi/rear-camera at 4c" ! 
> videoconvert ! glimagesink
> (...)
> Pipeline is live and does not need PREROLL ...
> Got context from element 'sink': gst.gl.GLDisplay=context, 
> gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> 
> ** (gst-launch-1.0:3168): CRITICAL **: 18:07:44.336: 
> gst_video_format_to_string: assertion 'format != 
> GST_VIDEO_FORMAT_UNKNOWN' failed

This is a programming error clearly. You can help by capturing this assert in a debugger and sharing the backtrace:

G_DEBUG=fatal_criticals gdb --args gst-launch-1.0 libcamerasrc camera-name="/base/i2c-csi/rear-camera at 4c" ! 
> videoconvert ! glimagesink
gdb) r
gdb) thread apply backtrace all

> [7:47:57.606487929] [3176]  INFO Camera camera.cpp:1029 configuring 
> streams: (0) 1280x720-YUYV
> ^Chandling interrupt.
> Interrupt: Stopping pipeline ...
> 
> Other gst-launch samples give me:
> (...)
> New clock: GstSystemClock
> ERROR: from element 
> /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Internal data 
> stream error.
> Additional debug info:
> ../src/gstreamer/gstlibcamerasrc.cpp(483): gst_libcamera_src_task_enter 
> (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0:
> streaming stopped, reason not-negotiated (-4)
> (...)
> 
> Thanks,
> Rafael
> 
> On 7/5/22 10:52, Rafael Diniz via libcamera-devel wrote:
> > Thanks a a lot Rishikesh. I will test and let you know!
> > 
> > Rafael
> > 
> > On 7/5/22 10:02, Rishikesh Donadkar wrote:
> > > Hello Rafael,
> > > Yes, I have a github fork of libcamera. You can find the branch with 
> > > applied commits  here
> > > https://github.com/RISHI27-dot/libcamera/tree/colorspace_integration_patch 
> > > <https://github.com/RISHI27-dot/libcamera/tree/colorspace_integration_patch> 
> > > 
> > > 
> > > Regards,
> > > 
> > > Rishikesh Donadkar
> > > 
> > > On Tue, Jul 5, 2022 at 4:02 AM Laurent Pinchart 
> > > <laurent.pinchart at ideasonboard.com 
> > > <mailto:laurent.pinchart at ideasonboard.com>> wrote:
> > > 
> > >     Hi Rafael,
> > > 
> > >     On Mon, Jul 04, 2022 at 09:37:39PM +0300, Rafael Diniz wrote:
> > >      > Hi Laurent,
> > >      >
> > >      > > I'd like to fix libcamerasrc if it doesn't work on the 
> > > PinePhone.
> > >      > > There's ongoing work on colorimetry support by Rishikesh as
> > >     part of his
> > >      > > GSoC (initial patches are on the list) which should help. What
> > >     are the
> > >      > > other issues ?
> > >      >
> > >      > Where can I find these patches? If possible, a branch with such 
> > > work
> > >      > already committed would be even better. I can help debug
> > >     libcamerasrc.
> > >      > : )
> > > 
> > >     
> > > https://lists.libcamera.org/pipermail/libcamera-devel/2022-July/031906.html 
> > > 
> > >     
> > > <https://lists.libcamera.org/pipermail/libcamera-devel/2022-July/031906.html> 
> > > 
> > > 
> > >     Rishikesh may have a branch somewhere.
> > > 
> > >     --     Regards,
> > > 
> > >     Laurent Pinchart
> > > 



More information about the libcamera-devel mailing list