Skip to content

Instantly share code, notes, and snippets.

@freddymu
Forked from isaacgr/streamer.sh
Created May 27, 2021 06:16
Show Gist options
  • Save freddymu/12d25d548fdae0b7868f4fb2e49a21a4 to your computer and use it in GitHub Desktop.
Save freddymu/12d25d548fdae0b7868f4fb2e49a21a4 to your computer and use it in GitHub Desktop.

Revisions

  1. @isaacgr 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"