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

Pavel Machek pavel at ucw.cz
Tue Jul 5 00:10:38 CEST 2022


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
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.

Best regards,
								Pavel

-- 
People of Russia, stop Putin before his war on Ukraine escalates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220705/2d91555e/attachment.sig>


More information about the libcamera-devel mailing list