Created
May 18, 2020 07:18
-
-
Save AlekseyArh/f4fb37b3c4781daeea8b90fb213b628c to your computer and use it in GitHub Desktop.
live stream (eternal broadcast)
This file contains 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/bash | |
ffmpeg -re -i video.flv -c copy -f flv rtmp://%STREAM_URL% | |
ffmpeg -re -i video2.flv -c copy -f flv rtmp://%STREAM_URL% | |
bash stream.sh > /dev/null 2>&1 < /dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Если ошибки:
То добавить флаг
-flvflags no_duration_filesize
ffmpeg -re -i video.flv -c copy -f flv -flvflags no_duration_filesize rtmp://%STREAM_URL%