Raspberry Pi ERR: path must end with a slash (cam) #675
Replies: 5 comments
-
In the log there are no traces of gst-launch-1.0 running - please make sure that
|
Beta Was this translation helpful? Give feedback.
-
I'm not using the Docker version and I followed the wiki instructions. I've gone back through and tried again but am running into the same problem. |
Beta Was this translation helpful? Give feedback.
-
I did some testing and found that this works: runOnInit: gst-launch-1.0 rpicamsrc preview=false bitrate=2000000 keyframe-interval=50 ! video/x-h264,width=1920,height=1080,framerate=25/1 ! rtspclientsink location=rtsp://localhost:$RTSP_PORT/$RTSP_PATH While this doesn't: The problem is with ! h264parse ! A little more digging and I learned that h264parse is part of GStreamer Bad Plug-ins Once I installed that, things worked fine. sudo apt-get install gstreamer1.0-plugins-bad |
Beta Was this translation helpful? Give feedback.
-
h264parse is necessary, since it extract two fundamental parameters from the stream (SPS and PPS) that are sent to the server through the RTSP handshake, then sent from the server to the readers through the RTSP handshake and are needed to correctly decode H264. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Which version are you using?
v0.17.6
Which operating system are you using?
OS
Architecture
Describe the issue
Unable to connect to stream from vlc log file shows
2021/10/15 13:16:40 I [0/0] [RTSP] [conn 192.168.1.156:64251] ERR: no one is publishing to path 'cam'
Describe how to replicate the issue
Raspberry pi zero running Buster with Pi camera module 2
I installed Gstreamer according to the wiki with:
sudo apt install -y gstreamer1.0-tools gstreamer1.0-rtsp
I also installed gst-rpicamsrc according to the documentation:
apt-get install autoconf automake libtool pkg-config libgstreamer1.0-dev
libgstreamer-plugins-base1.0-dev libraspberrypi-dev
and
./autogen.sh --prefix=/usr --libdir=/usr/lib/arm-linux-gnueabihf/
make
sudo make install
I also ran a test gst-inspect-1.0 rpicamsrc and did not get any errors. The output is attached as gst-inspect-results.txt
I also ran gst-launch-1.0 rpicamsrc bitrate=1000000 ! filesink location=test.h264.
Test.h264 was created and viewing the file in vlc confirmed that the camera is working.
Running this from the command line also works:
gst-launch-1.0 rpicamsrc preview=false bitrate=2000000 keyframe-interval=50 ! video/x-h264,width=640,height=480,framerate=25/1 ! filesink location=test.h264
Did you attach a network dump?
no
config-yml.txt
gst-inspect-results.txt
log-output.txt
Beta Was this translation helpful? Give feedback.
All reactions