diff options
author | MaZderMind <git@mazdermind.de> | 2016-01-29 17:59:34 +0100 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2016-01-29 17:59:34 +0100 |
commit | 4ddbb55eac513c1863a453a8d21cd6c8dc167661 (patch) | |
tree | 29e31ec4e17f3929342deffbbd611494934d19d8 /example-scripts/ffmpeg/source-background-loop.sh | |
parent | b3d585c78a3c8245232ddbd28a88f4130f8ca5a5 (diff) |
add a global resolution-config for all example-scripts
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 \ |