summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-nostream-pause-loop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts/ffmpeg/source-nostream-pause-loop.sh')
-rwxr-xr-xexample-scripts/ffmpeg/source-nostream-pause-loop.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/example-scripts/ffmpeg/source-nostream-pause-loop.sh b/example-scripts/ffmpeg/source-nostream-pause-loop.sh
index 65b7436..69ac366 100755
--- a/example-scripts/ffmpeg/source-nostream-pause-loop.sh
+++ b/example-scripts/ffmpeg/source-nostream-pause-loop.sh
@@ -1,8 +1,12 @@
#!/bin/sh
+. `dirname "$0"`/../config.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 \
+ -filter_complex "
+ [0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v]
+ " \
+ -map '[v]' \
-c:v rawvideo \
-pix_fmt yuv420p \
-f matroska \