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

Rafael Diniz rafael at riseup.net
Sat Jul 9 23:10:07 CEST 2022


Thanks Nicolas.

So I need to track down why this stream_cfg.pixelFormat is coming 
without needed format data. Understood.

Rafael

On 7/8/22 23:15, Nicolas Dufresne wrote:
> Le mardi 05 juillet 2022 à 23:39 +0300, Rafael Diniz a écrit :
>> and indeed, reading stuff like this (in gstlibcamera-utils.cpp):
>>
>> 	} else if (gst_structure_has_name(s, "image/jpeg")) {
>> 		stream_cfg.pixelFormat = formats::MJPEG;
>> 	} else {
>>
>> makes me think twice if adding "JPEG" near "MJPEG" everywhere is a good
>> idea. Many hardcoded stuff which needs to be fixed I think.
> 
> I could not really understand this part of your comment. Though what your
> backtrace expose is that:
> 
> 
> void
> gst_libcamera_configure_stream_from_caps(StreamConfiguration &stream_cfg,
> 					 GstCaps *caps)
> {
> 	GstVideoFormat gst_format = pixel_format_to_gst_format(stream_cfg.pixelFormat);
> 
> gst_format is GST_VIDEO_FORMAT_UNKNOWN, probably because stream_cfg.pixelFormat
> is missing in the format_map[]. The return value should have been handled
> cleanly here, and skipped.
> 
> regards,
> Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220710/2d7445c8/attachment.sig>


More information about the libcamera-devel mailing list