From d5ea92d23414a3868e48827a9089a20b3dbc1e82 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 8 Dec 2015 13:30:38 +0100 Subject: [example-scripts] add scripts for pause-loop and -music --- example-scripts/ffmpeg/source-nostream-music.sh | 11 +++++++++++ example-scripts/ffmpeg/source-nostream-pause-loop.sh | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100755 example-scripts/ffmpeg/source-nostream-music.sh create mode 100755 example-scripts/ffmpeg/source-nostream-pause-loop.sh (limited to 'example-scripts') diff --git a/example-scripts/ffmpeg/source-nostream-music.sh b/example-scripts/ffmpeg/source-nostream-music.sh new file mode 100755 index 0000000..71bc1ed --- /dev/null +++ b/example-scripts/ffmpeg/source-nostream-music.sh @@ -0,0 +1,11 @@ +#!/bin/sh +wget -nc -O /tmp/machine_lullaby_1.ogg http://c3voc.mazdermind.de/testfiles/machine_lullaby_1.ogg +while true; do + ffmpeg -y \ + -i "/tmp/machine_lullaby_1.ogg" \ + -ac 2 \ + -af aresample=48000 \ + -c:a pcm_s16le \ + -f matroska \ + tcp://localhost:18000 +done diff --git a/example-scripts/ffmpeg/source-nostream-pause-loop.sh b/example-scripts/ffmpeg/source-nostream-pause-loop.sh new file mode 100755 index 0000000..d88eb9d --- /dev/null +++ b/example-scripts/ffmpeg/source-nostream-pause-loop.sh @@ -0,0 +1,9 @@ +#!/bin/sh +wget -nc -O /tmp/pause.ts http://c3voc.mazdermind.de/testfiles/pause.ts +while true; do cat /tmp/pause.ts || exit 1; done |\ + ffmpeg -re -i - \ + -map 0:v \ + -c:v rawvideo \ + -pix_fmt uyvy422 \ + -f matroska \ + tcp://localhost:17000 -- cgit v1.2.3