Skip to content

Instantly share code, notes, and snippets.

@isaacgr
Created June 2, 2019 22:09
Show Gist options
  • Select an option

  • Save isaacgr/b4b5ad45741ceb00681e4b26d3c5f9de to your computer and use it in GitHub Desktop.

Select an option

Save isaacgr/b4b5ad45741ceb00681e4b26d3c5f9de to your computer and use it in GitHub Desktop.

Revisions

  1. isaacgr created this gist Jun 2, 2019.
    4 changes: 4 additions & 0 deletions streamer.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/sh

    # Convert rtsp stream to hls and write to file
    ffmpeg -i "rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0" -c copy -hls_time 2 -hls_wrap 10 "/var/www/html/streaming.m3u8"