I am trying to setup gstreamer to send a video feed between two raspberry pis but I get an error.
-“Could not decode stream” -“received buffer without first receiving caps”
This is the command I use to create the stream: raspivid -t 0 -h 720 -w 1080 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! udpsink host=YOUR_RPI_IP_ADDRESS port=5000
This is the one I use to try and watch the stream and the one that gives me the error: gst-launch-1.0 -v udpsrc port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! fbdevsink sync=false
Any help would be appreciated, Thanks!
Advertisement
Answer
This was solved by running the camera stream after. I had to start the receiving pipeline first. If you want to be able to connect anytime in any order, I think this is solved by adding the caps to the receiving pi. I didn’t know what caps were when I first opened this thread.
Hope this helps if someone stumbles across it.