-
-
Save freddymu/12d25d548fdae0b7868f4fb2e49a21a4 to your computer and use it in GitHub Desktop.
Use FFMPEG to convert an rtsp stream to hls and write output to m3u8 file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment