goodrobots / visiond

Python/Gstreamer based project to stream video from embedded system cameras in various ways
MIT License
9 stars 3 forks source link

rtsp not working on pi zero #29

Open fnoop opened 4 years ago

fnoop commented 4 years ago
➜  ~ gst-launch-1.0 rtspsrc location=rtsp://maverick-raspberrylite.local:6010/video ! queue ! decodebin ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayCocoa\)\ gldisplaycocoa0";
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://maverick-raspberrylite.local:6010/video
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
../gst/rtsp/gstrtspsrc.c(6318): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Timeout while waiting for server response)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
fnoop commented 4 years ago

Perhaps hardware issue:

[flight] [mav@maverick-raspberrylite ~]$ raspivid -r /var/tmp/test.avi
Camera control callback  cmd=0x4f525245mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board
SamuelDudley commented 4 years ago

I'll try it on my zero tomorrow if that would help.

fnoop commented 4 years ago

Yes please! I've tried it with two cables and two cameras, same problem. I suspect my pi0 w camera port is faulty.

SamuelDudley commented 4 years ago

Ah, I didn't know the camera interface cable was not the same at the 3b+... I need to order a new cable before I can test for you. Sorry.