Dear all,
I installed and ran test pipeline for libcamera API on Raspberry Pi: gst-launch-1.0 libcamerasrc ! videoconvert ! autovideosink I am getting the following output: Setting pipeline to PAUSED ... 0:00:00.258118640 4111 0x33db60 WARN xcontext xvcontext.c:534:gst_xvcontext_check_xshm_calls: MIT-SHM extension check failed at XShmAttach. Not using shared memory. 0:00:00.333581316 4111 0x33db60 WARN xcontext xvcontext.c:534:gst_xvcontext_check_xshm_calls: MIT-SHM extension check failed at XShmAttach. Not using shared memory. [0:59:04.193116583] [4111] INFO Camera camera_manager.cpp:277 libcamera v0.0.0+1424-b60a7d70 [0:59:04.201687352] [4114] INFO IPAManager ipa_manager.cpp:124 libcamera is not installed. Adding '/home/pi/libcamera/build/src/ipa' to the IPA search path [0:59:04.348749892] [4114] INFO IPAProxy ipa_proxy.cpp:122 libcamera is not installed. Loading IPA configuration from '/home/pi/libcamera/src/ipa/raspberrypi/data' Pipeline is live and does not need PREROLL ... 0:00:00.511895880 4111 0x3fa800 FIXME default gstutils.c:3981:gst_pad_create_stream_id_internal:<libcamerasrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id Setting pipeline to PLAYING ... 0:00:00.512812847 4111 0x3fa800 WARN libcamerasrc gstlibcamerasrc.cpp:461:gst_libcamera_src_task_enter:<libcamerasrc0> error: Internal data stream error. 0:00:00.512856961 4111 0x3fa800 WARN libcamerasrc gstlibcamerasrc.cpp:461:gst_libcamera_src_task_enter:<libcamerasrc0> error: streaming stopped, reason not-negotiated (-4) New clock: GstSystemClock ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Internal data stream error. Additional debug info: ../src/gstreamer/gstlibcamerasrc.cpp(461): gst_libcamera_src_task_enter (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: streaming stopped, reason not-negotiated (-4) Execution ended after 0:00:00.000340256 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ... Does anyone know what the problem might be? I followed these guides: https://www.raspberrypi.org/documentation/linux/software/libcamera/README.md https://libcamera.org/getting-started.html Thank you -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Qcam seems to work with libcamera API
-- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by horai
Le ven. 5 juin 2020 15 h 15, horai <[hidden email]> a écrit : Dear all, There is a format negotiation, like if non of the video formats is video/x-raw. Have you tried with different roles (a pad configuration) ? Also, perhaps you could share more debug, you may set the env: GST_DEBUG="libcam*:7,3" Execution ended after 0:00:00.000340256 _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Yes, I tried all the roles, I guess there is 0,2,3 for different formats
-- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le samedi 06 juin 2020 à 12:12 -0500, horai a écrit :
> Yes, I tried all the roles, I guess there is 0,2,3 for different formats Not sure what you mean with 0, 2 and 3 here, can you share a log as per: Also, perhaps you could share more debug, you may set the env: GST_DEBUG="libcam*:7,3" _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Dear sir,
sorry for delay, I am sending output with GST_DEBUG="libcam*:7,3": Setting pipeline to PAUSED ... 0:00:00.233291908 902 0x17c93c0 WARN xcontext xvcontext.c:534:gst_xvcontext_check_xshm_calls: MIT-SHM extension check failed at XShmAttach. Not using shared memory. 0:00:00.358138216 902 0x17c93c0 WARN xcontext xvcontext.c:534:gst_xvcontext_check_xshm_calls: MIT-SHM extension check failed at XShmAttach. Not using shared memory. 0:00:00.381396283 902 0x17c93c0 DEBUG libcamerasrc gstlibcamerasrc.cpp:209:gst_libcamera_src_open:<libcamerasrc0> Opening camera device ... [0:06:11.901263743] [902] INFO Camera camera_manager.cpp:277 libcamera v0.0.0+1424-b60a7d70-dirty [0:06:11.910147364] [905] INFO IPAManager ipa_manager.cpp:124 libcamera is not installed. Adding '/home/pi/libcamera/build/src/ipa' to the IPA search path [0:06:12.058717667] [905] INFO IPAProxy ipa_proxy.cpp:122 libcamera is not installed. Loading IPA configuration from '/home/pi/libcamera/src/ipa/raspberrypi/data' 0:00:00.540119140 902 0x17c93c0 INFO libcamerasrc gstlibcamerasrc.cpp:244:gst_libcamera_src_open:<libcamerasrc0> Using camera named 'imx219' Pipeline is live and does not need PREROLL ... 0:00:00.540911832 902 0x17c1580 DEBUG libcamerasrc gstlibcamerasrc.cpp:349:gst_libcamera_src_task_enter:<libcamerasrc0> Streaming thread has started 0:00:00.541440050 902 0x17c1580 FIXME default gstutils.c:3981:gst_pad_create_stream_id_internal:<libcamerasrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id Setting pipeline to PLAYING ... New clock: GstSystemClock 0:00:00.543407927 902 0x17c1580 INFO libcamerasrc gstlibcamerasrc.cpp:380:gst_libcamera_src_task_enter:<libcamerasrc0> caps empty! 0:00:00.544145881 902 0x17c1580 INFO libcamerasrc gstlibcamerasrc.cpp:391:gst_libcamera_src_task_enter:<libcamerasrc0> GST_FLOW_NOT_OK! 0:00:00.544816231 902 0x17c1580 WARN libcamerasrc gstlibcamerasrc.cpp:463:gst_libcamera_src_task_enter:<libcamerasrc0> error: Internal data stream error. 0:00:00.545181589 902 0x17c1580 WARN libcamerasrc gstlibcamerasrc.cpp:463:gst_libcamera_src_task_enter:<libcamerasrc0> error: streaming stopped, reason not-negotiated (-4) 0:00:00.545736161 902 0x17c1580 DEBUG libcamerasrc gstlibcamerasrc.cpp:477:gst_libcamera_src_task_leave:<libcamerasrc0> Streaming thread is about to stop ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Internal data stream error. Additional debug info: ../src/gstreamer/gstlibcamerasrc.cpp(463): gst_libcamera_src_task_enter (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: streaming stopped, reason not-negotiated (-4) Execution ended after 0:00:00.003678987 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... 0:00:00.583975329 902 0x17c93c0 DEBUG libcamerasrc gstlibcamerasrc.cpp:495:gst_libcamera_src_close:<libcamerasrc0> Releasing resources Freeing pipeline ... With roles, I meant: gst-launch-1.0 libcamerasrc camera-name="imx219" ! video/x-raw, stream-role=0 ! videoconvert ! autovideosink gst-launch-1.0 libcamerasrc camera-name="imx219" ! video/x-raw, stream-role=2 ! videoconvert ! autovideosink gst-launch-1.0 libcamerasrc camera-name="imx219" ! video/x-raw, stream-role=3 ! videoconvert ! autovideosink -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by horai
According to the source code and also the printout CAPS are empty, but I
don't know how to set up CAPS properly, I assumed video/x-raw is enough. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le sam. 13 juin 2020 17 h 15, horai <[hidden email]> a écrit : According to the source code and also the printout CAPS are empty, but I It looks like you are trying to use ximagesink, and that this does not work properly on RPi. Try glimagesink perhaps ?
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
After this command:
export GST_DEBUG="libcam*:7,3" gst-launch-1.0 libcamerasrc camera-name=imx219 ! video/x-raw ! videoconvert ! glupload ! glimagesink I got this: Setting pipeline to PAUSED ... 0:00:00.903512270 1008 0x1fb1280 DEBUG libcamerasrc gstlibcamerasrc.cpp:209:gst_libcamera_src_open:<libcamerasrc0> Opening camera device ... [0:10:34.468812208] [1008] INFO Camera camera_manager.cpp:277 libcamera v0.0.0+1424-b60a7d70-dirty [0:10:34.477662398] [1021] INFO IPAManager ipa_manager.cpp:124 libcamera is not installed. Adding '/home/pi/libcamera/build/src/ipa' to the IPA search path [0:10:34.630208543] [1021] INFO IPAProxy ipa_proxy.cpp:122 libcamera is not installed. Loading IPA configuration from '/home/pi/libcamera/src/ipa/raspberrypi/data' 0:00:01.066208186 1008 0x1fb1280 INFO libcamerasrc gstlibcamerasrc.cpp:244:gst_libcamera_src_open:<libcamerasrc0> Using camera named 'imx219' 0:00:01.067078965 1008 0x2003060 DEBUG libcamerasrc gstlibcamerasrc.cpp:349:gst_libcamera_src_task_enter:<libcamerasrc0> Streaming thread has started Pipeline is live and does not need PREROLL ... 0:00:01.067203496 1008 0x2003060 FIXME default gstutils.c:3981:gst_pad_create_stream_id_internal:<libcamerasrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id Got context from element 'sink': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0"; 0:00:01.068231046 1008 0x2003060 INFO libcamerasrc gstlibcamerasrc.cpp:380:gst_libcamera_src_task_enter:<libcamerasrc0> caps empty! 0:00:01.068277088 1008 0x2003060 INFO libcamerasrc gstlibcamerasrc.cpp:391:gst_libcamera_src_task_enter:<libcamerasrc0> GST_FLOW_NOT_OK! 0:00:01.068321202 1008 0x2003060 WARN libcamerasrc gstlibcamerasrc.cpp:463:gst_libcamera_src_task_enter:<libcamerasrc0> error: Internal data stream error. 0:00:01.068351775 1008 0x2003060 WARN libcamerasrc gstlibcamerasrc.cpp:463:gst_libcamera_src_task_enter:<libcamerasrc0> error: streaming stopped, reason not-negotiated (-4) 0:00:01.068570212 1008 0x2003060 DEBUG libcamerasrc gstlibcamerasrc.cpp:477:gst_libcamera_src_task_leave:<libcamerasrc0> Streaming thread is about to stop ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Internal data stream error. Additional debug info: ../src/gstreamer/gstlibcamerasrc.cpp(463): gst_libcamera_src_task_enter (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: streaming stopped, reason not-negotiated (-4) ERROR: pipeline doesn't want to preroll. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... 0:00:01.071556560 1008 0x1fb1280 DEBUG libcamerasrc gstlibcamerasrc.cpp:495:gst_libcamera_src_close:<libcamerasrc0> Releasing resources Freeing pipeline ... -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le dimanche 14 juin 2020 à 08:03 -0500, horai a écrit :
> After this command: > export GST_DEBUG="libcam*:7,3" > gst-launch-1.0 libcamerasrc camera-name=imx219 ! video/x-raw ! videoconvert > ! glupload ! glimagesink Perhaps add fakevideosink right after libcamerasrc, just to confirm that libcamera is actually working at all. Then use -v to see which caps is being used, that would maybe give you a hint. Of course, this is all so recent that you could also not have the right latest version of one of the numeros work in progress project involved. > I got this: > Setting pipeline to PAUSED ... > 0:00:00.903512270 1008 0x1fb1280 DEBUG libcamerasrc > gstlibcamerasrc.cpp:209:gst_libcamera_src_open:<libcamerasrc0> Opening > camera device ... > [0:10:34.468812208] [1008] INFO Camera camera_manager.cpp:277 libcamera > v0.0.0+1424-b60a7d70-dirty > [0:10:34.477662398] [1021] INFO IPAManager ipa_manager.cpp:124 libcamera is > not installed. Adding '/home/pi/libcamera/build/src/ipa' to the IPA search > path > [0:10:34.630208543] [1021] INFO IPAProxy ipa_proxy.cpp:122 libcamera is not > installed. Loading IPA configuration from > '/home/pi/libcamera/src/ipa/raspberrypi/data' > 0:00:01.066208186 1008 0x1fb1280 INFO libcamerasrc > gstlibcamerasrc.cpp:244:gst_libcamera_src_open:<libcamerasrc0> Using camera > named 'imx219' > 0:00:01.067078965 1008 0x2003060 DEBUG libcamerasrc > gstlibcamerasrc.cpp:349:gst_libcamera_src_task_enter:<libcamerasrc0> > Streaming thread has started > Pipeline is live and does not need PREROLL ... > 0:00:01.067203496 1008 0x2003060 FIXME default > gstutils.c:3981:gst_pad_create_stream_id_internal:<libcamerasrc0:src> > Creating random stream-id, consider implementing a deterministic way of > creating a stream-id > Got context from element 'sink': gst.gl.GLDisplay=context, > gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0"; > 0:00:01.068231046 1008 0x2003060 INFO libcamerasrc > gstlibcamerasrc.cpp:380:gst_libcamera_src_task_enter:<libcamerasrc0> caps > empty! > > 0:00:01.068277088 1008 0x2003060 INFO libcamerasrc > gstlibcamerasrc.cpp:391:gst_libcamera_src_task_enter:<libcamerasrc0> > GST_FLOW_NOT_OK! > > 0:00:01.068321202 1008 0x2003060 WARN libcamerasrc > gstlibcamerasrc.cpp:463:gst_libcamera_src_task_enter:<libcamerasrc0> error: > Internal data stream error. > 0:00:01.068351775 1008 0x2003060 WARN libcamerasrc > gstlibcamerasrc.cpp:463:gst_libcamera_src_task_enter:<libcamerasrc0> error: > streaming stopped, reason not-negotiated (-4) > 0:00:01.068570212 1008 0x2003060 DEBUG libcamerasrc > gstlibcamerasrc.cpp:477:gst_libcamera_src_task_leave:<libcamerasrc0> > Streaming thread is about to stop > ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: > Internal data stream error. > Additional debug info: > ../src/gstreamer/gstlibcamerasrc.cpp(463): gst_libcamera_src_task_enter (): > /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: > streaming stopped, reason not-negotiated (-4) > ERROR: pipeline doesn't want to preroll. > Setting pipeline to PAUSED ... > Setting pipeline to READY ... > Setting pipeline to NULL ... > 0:00:01.071556560 1008 0x1fb1280 DEBUG libcamerasrc > gstlibcamerasrc.cpp:495:gst_libcamera_src_close:<libcamerasrc0> Releasing > resources > Freeing pipeline ... > > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |