Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
laptop - sigurnosna kamera?
#15
Evo i par primera, prvi je za strimovanje USB kamere putem RTSP protokola:

Code:
root@ox:~/videonadzor# cat start-rtsp.sh
#!/bin/sh

# Kill VLC
ps ax | grep -i vlc | awk '{print $1}' | xargs kill -9
rm nohup.out

# Stream webcam 1
nohup /usr/bin/cvlc -vvv v4l2:///dev/video0 --sout-rtsp-user="username" --sout-rtsp-pwd="password" --sout="#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},vb=384,scale=1,width=640,height=480,acodec=none}:rtp{sdp=rtsp://:15000/0.sdp}" &

# Stream webcam 2
nohup /usr/bin/cvlc -vvv v4l2:///dev/video1 --sout-rtsp-user="username" --sout-rtsp-pwd="password" --sout="#transcode{vcodec=h264,venc=x264{no-cabac,level=12,vbv-maxrate=384,vbv-bufsize=1000,keyint=75,ref=3,bframes=0},vb=384,scale=1,width=640,height=480,acodec=none}:rtp{sdp=rtsp://:16000/0.sdp}" &

# Exit
exit

Zatim strimovanje putem HTTP protokola:

Code:
root@ox:~/videonadzor# cat start-http-1.sh 
#!/bin/sh

# Stream webcam
nohup /usr/bin/cvlc -v v4l2:///dev/video0 --sout-http-user="username" --sout-http-pwd="password" --network-caching=1500 --http-host="192.168.xxx.xxx" --sout="#transcode{vcodec=MPEG4,width=800,height=600,scale=1}:http{dst=192.168.xxx.xxx:15000/stream.ogg}" &

# Exit
exit
“If you think you are too small to make a difference, try sleeping with a mosquito.” - Dalai Lama XIV
Reply


Messages In This Thread
RE: laptop - sigurnosna kamera? - by Dackotronic - 07-10-2017, 07:56 PM
RE: laptop - sigurnosna kamera? - by BeliNinja - 07-11-2017, 05:42 AM
RE: laptop - sigurnosna kamera? - by TDA - 07-11-2017, 12:08 PM
RE: laptop - sigurnosna kamera? - by 1van - 08-08-2017, 02:32 PM
RE: laptop - sigurnosna kamera? - by pakonja - 08-08-2017, 03:33 PM
RE: laptop - sigurnosna kamera? - by pakonja - 08-08-2017, 08:43 PM
RE: laptop - sigurnosna kamera? - by PeceMK - 08-09-2017, 12:27 PM
RE: laptop - sigurnosna kamera? - by vsavic - 08-09-2017, 01:49 PM
RE: laptop - sigurnosna kamera? - by 1van - 08-09-2017, 02:37 PM
RE: laptop - sigurnosna kamera? - by 1van - 09-01-2017, 12:06 PM
RE: laptop - sigurnosna kamera? - by 1van - 09-01-2017, 12:14 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)