I recently installed a Rabberry Pi camera and transmit frames over RTSP. Although this may not be entirely necessary, here is the command I use to broadcast the video:
raspivid -o - -t 0 -w 1280 -h 800 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/output.h264}' :demux=h264
It perfectly conveys the video.
Now I would like to analyze this stream using Python and read each frame separately. I would like to do some motion detection for observation purposes.
I completely lost where to start this task. Can someone point me to a good tutorial? If this is not possible for Python, what tools / languages ββcan I use for this?
python video-streaming video rtsp
fmorstatter
source share