aboutsummaryrefslogtreecommitdiff
path: root/example-scripts
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-11-26 20:11:14 +0100
committerMaZderMind <git@mazdermind.de>2015-11-26 20:12:28 +0100
commit3579a052ae3ace1f67d816fd9bfdffc66c8168d4 (patch)
tree43d26a41ddb422070778080a37ab881f483c9134 /example-scripts
parentfbc33a1e169fdcd55b8177d1d524da9b06f52d99 (diff)
[example scripts] use anullsrc instead of /div/zero which seems to be more robust
Diffstat (limited to 'example-scripts')
-rwxr-xr-xexample-scripts/av-source-grabber.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/example-scripts/av-source-grabber.sh b/example-scripts/av-source-grabber.sh
index 8329dc4..2d646a9 100755
--- a/example-scripts/av-source-grabber.sh
+++ b/example-scripts/av-source-grabber.sh
@@ -1,11 +1,9 @@
#!/bin/sh
ffmpeg -y \
-i "http://10.73.5.2:1881/stream.mjpg" \
- -filter_complex "scale=1920:1080,fps=25" \
- -ar 48000 \
- -ac 2 \
- -f s16le \
- -i "/dev/zero" \
+ -filter_complex " [0:v] scale=1920:1080,fps=25 [v] ; anullsrc=r=48000:cl=stereo [a] " \
+ -map "[v]" \
+ -map "[a]" \
-c:a pcm_s16le \
-c:v rawvideo \
-f matroska \