Skip to content
ivmech edited this page Dec 20, 2014 · 8 revisions

Also it is possible to switch camera while video streaming with Ivport. Streaming needs some special libraries that vlc has. Therefore vlc should be installed with sudo apt-get install vlc-nox.

Starting Video Streaming

raspivid -w 1280 -h 720 -fps 25 -b 1200000 -p 0,0,1280,720 -o - -t 0 -n | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264

Starting Ivport Switching

Therefore it can be started with sudo python ivport_test_A.py from another terminal;

It asks which camera wanted to use with Enter Selection (q for quit):

1,2,3,4 can be entered for selection camera. Let the script running.

Viewing Stream Over Network

You can open VLC Player and choose Media and Open Network Stream

rtsp://RASPBERRYPI_IP_ADDRESS:8554/

Video of manual switching stream with 4 camera modules

IVPort Manual Video Switching

Example 3