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-avsync-test-clip-looped-as-cam1.sh | |
parent | b3d585c78a3c8245232ddbd28a88f4130f8ca5a5 (diff) |
add a global resolution-config for all example-scripts
Diffstat (limited to 'example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh')
-rwxr-xr-x | example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh b/example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh index c454dd7..4de3f83 100755 --- a/example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh +++ b/example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh @@ -1,8 +1,13 @@ #!/bin/sh +. `dirname "$0"`/../config.sh wget -nc -O /tmp/avsync.ts http://c3voc.mazdermind.de/testfiles/avsync.ts (while true; do cat /tmp/avsync.ts || exit; done) | ffmpeg -y \ -i - \ - -vf scale=1920x1080 \ + -filter_complex " + [0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v] ; + [0:a] aresample=$AUDIORATE [a] + " \ + -map "[v]" -map "[a]" \ -c:v rawvideo \ -c:a pcm_s16le \ -pix_fmt yuv420p \ |