From 576688597b53fd507b282e0da9e4e7fe5e27920f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Jul 2021 10:47:51 +0800 Subject: [PATCH] Add ffmpeg push streaming script Author: Kevin --- scripts/ffmpeg_push_streaming.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/ffmpeg_push_streaming.sh diff --git a/scripts/ffmpeg_push_streaming.sh b/scripts/ffmpeg_push_streaming.sh new file mode 100755 index 0000000..6a222be --- /dev/null +++ b/scripts/ffmpeg_push_streaming.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +while ((1)) +do + curl http://localhost:8090/control/get?room=movie + ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/live/rfBd56ti2SMtYvSgD5xAV0YU99zampta7Z7S575KLkIZ9PYk + sleep 3 +done