Skip to content

Instantly share code, notes, and snippets.

@jci
Created July 27, 2018 03:02
Show Gist options
  • Save jci/197411532336780ab2a4b2e48b8daba4 to your computer and use it in GitHub Desktop.
Save jci/197411532336780ab2a4b2e48b8daba4 to your computer and use it in GitHub Desktop.
Reencode from RTSP from DVR, serve the video via OGG that can be opened using a browser.
cvlc "rtsp://IPADDR/user=username&password=password&channel=CHANNEL&stream=STREAMQLTY.sdp" --sout="#transcode{vcodec=theo,vb=1024}:http{dst=:8080/webcam.ogg}"
This will stream only video, not audio.
Be aware, your mileage may vary.
Change the fps by adding fps=FPS after the vcodec section. Be warned that the stream may take some time to catch up.
Feel free to adjust vb= for video bitrate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment