-
Notifications
You must be signed in to change notification settings - Fork 17
Example 2
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
.
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
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.
You can open VLC Player
and choose Media
and Open Network Stream
rtsp://RASPBERRYPI_IP_ADDRESS:8554/