Advertisement
metalx1000

Stream Webcam Video RTSP

Nov 11th, 2020
3,003
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #Stream Webcam Video
  2.  
  3. #Server
  4. vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout="#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/live.ts}" -I dummy
  5.  
  6. #Client
  7. vlc rtsp://<IP-ADDRESS>:8554/live.ts
  8. ffplay rtsp://<IP-ADDRESS>:8554/live.ts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement