[libcamera-devel] Video recording on PinePhone Re: libcamera on pinephone
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Tue Jul 5 00:30:43 CEST 2022
On Tue, Jul 05, 2022 at 12:10:38AM +0200, Pavel Machek wrote:
> Hi!
>
> > > For taking videos... is there possibility to do encoding without
> > > gstreamer? libcamerasrc does not work for me :-(.
> >
> > 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 ?
>
> It hangs at "requesting buffers" phase. (Yes, I added some debug
> prints). cam/qcam seems to work ok at the moment.
>
> If you have ideas, that would be welcome.
>
> [14:35:02.518919771] [14750] ERROR V4L2 v4l2_videodevice.cpp:1181
> /dev/video2[17:cap]: Unable to enumerate frame sizes: Inappropriate
> ioctl for device
> [14:35:02.519839224] [14750] ERROR SimplePipeline simple.cpp:1268
> Searching for device
I have on particular idea, this needs to be debugged, but I'd recommend
fixing the above two errors first (or at the very least ensuring they're
not the culprit).
> 0:00:07.496271506 14749 0x55bdd61000 INFO libcamerasrc
> gstlibcamerasrc.cpp:241:gst_libcamera_src_open:<libcamerasrc0> Using
> camera '/base/i2c-csi/rear-camera at 4c'
> Pipeline is live and does not need PREROLL ...
> 0:00:07.497367174 14749 0x55bde3a400 DEBUG libcamerasrc
> gstlibcamerasrc.cpp:391:gst_libcamera_src_task_enter:<libcamerasrc0>
> Streaming thread has started
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> 0:00:07.499074034 14749 0x55bde3a400 DEBUG libcamerasrc
> gstlibcamerasrc.cpp:422:gst_libcamera_src_task_enter:<libcamerasrc0>
> Srcpad config...
>
> (gst-launch-1.0:14749): GStreamer-Video-CRITICAL **: 00:08:37.503:
> gst_video_format_to_string: assertion 'format !=
> GST_VIDEO_FORMAT_UNKNOWN' failed
> [14:35:02.525362860] [14751] INFO Camera camera.cpp:1029 configuring
> streams: (0) 1280x720-YUYV
> 0:00:07.536242338 14749 0x55bde3a400 TRACE libcamerasrc
> gstlibcamerasrc.cpp:332:gst_libcamera_src_task_run:<libcamerasrc0>
> Requesting buffers
> ^Chandling interrupt.
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list