summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh')
-rwxr-xr-xexample-scripts/ffmpeg/source-avsync-test-clip-looped-as-cam1.sh7
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 \