diff options
Diffstat (limited to 'example-scripts/ffmpeg/source-background-loop.sh')
-rwxr-xr-x | example-scripts/ffmpeg/source-background-loop.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/example-scripts/ffmpeg/source-background-loop.sh b/example-scripts/ffmpeg/source-background-loop.sh index 00ff35c..3613862 100755 --- a/example-scripts/ffmpeg/source-background-loop.sh +++ b/example-scripts/ffmpeg/source-background-loop.sh @@ -1,8 +1,12 @@ #!/bin/sh +. `dirname "$0"`/../config.sh wget -nc -O /tmp/bg.ts http://c3voc.mazdermind.de/testfiles/bg.ts while true; do cat /tmp/bg.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 \ |