Open vahid-dan opened 7 years ago
is your camera a webcam on usb or a raspberry pi camera? did you try with motionPie?
Hi @methodmath;
Thanks for your reply. I need to use Raspberry Pi Camera Module, and I have already tested several streaming methods on RPi camera, a USB webcam and my laptop webcams. Some of them work and some not. Unfortunately, the ones that work have not decent quality. That's why I am trying to find a better solution.
MotionPie seems an interesting project; But since I want a simple solution to just monitor two or three RPi cameras and run the face recognition application on them, it may be too detailed. I'd rather not to change my RPi OS.
Thanks, Vahid
i'm pretty sure the secret is in the format used to stream the video. i'm not referring to just encapsulation but actual codec too. I'm waiting for a rasp camera to come (ordered one last w-e). will keep you posted. Issues I had with webcam and rPI was that the usb port was not pushing enough electricity and my expensive webcam was not getting enough current. I will be testing for the next few days. i'll report back.
Hi;
I am streaming on Raspberry Pi 3 using GStreamer. This is my pipeline:
raspivid -t 999999 -h 240 -w 320 -fps 10 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=PI-IP-ADDRESS port=5000
and play the stream on my laptop using:
gst-launch-1.0 -v tcpclientsrc host=PI_IP_ADDRESS port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false
I want to add the camera to the home_surveillance Dashboard. Do you have any idea what URL should I use? I'd really appreciate it.
Thanks, Vahid