Thanks for this option listing.
I tried to tell gstreamer about h264 format, and was partially successful -- I was able to play a raspivid video file with gstreamer. But I was not able to make it work with "raspistill ... -o - | gst-launch-1.0 -v fdsrc ...".
Then I tried "sudo modprobe bcm2835-v4l2" -- it was so simple, worked immediately!
Next I did setup a scenario with streaming video. I needed something that moves and took a small solar toy for that. I used my own "sun" to power the solar toy. I had removed some plastic on toy back in order to see how the small solar power did make the toy move (LC circuit plus magnet), click photo for details:
This is youtube video showing the video streamed from Pi Zero W on laptop, and the Pi and laptop command lines:
https://www.youtube.com/watch?v=re1PC5a ... e=youtu.be
This command starts streaming 640x480 @30fps video via UDP on the Pi:
Code: Select all
pi@raspberrypi03:~ $ cat stream.txt
pi@raspberrypi03:~ $ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! jpegenc ! rtpjpegpay ! udpsink host=192.168.178.139 port=5200
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
This command displays video stream from port 5200 on the laptop:
Code: Select all
$ gst-launch-1.0 udpsrc port=5200 ! application/x-rtp, encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
This is what camera displays after powering off my "selfmade" sun in darkness, thanks to 3W infrared LED mounted with NoIR camera:
Hermann.
P.S:
(Moving) "Caterpillar robot Raspberry Pi Zero W NoIR camera streams video to laptop (640x480 @30fps)"
https://www.youtube.com/watch?v=nWJXXmk ... e=youtu.be
"Caterpillar robot in darkness, navigated by infrared streaming video on laptop (640x480 @30fps)"
https://www.youtube.com/watch?v=uo94frZ ... e=youtu.be
