aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts/ffmpeg/source-mjpg-framegrabber.sh')
-rwxr-xr-xexample-scripts/ffmpeg/source-mjpg-framegrabber.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/example-scripts/ffmpeg/source-mjpg-framegrabber.sh b/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
index 6b47bf7..c470a91 100755
--- a/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
+++ b/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
@@ -1,12 +1,12 @@
#!/bin/sh
+. `dirname "$0"`/../config.sh
ffmpeg -y \
-i "http://10.73.5.2:1881/stream.mjpg" \
-filter_complex "
- [0:v] scale=1920:1080,fps=25 [v] ;
- anullsrc=r=48000:cl=stereo [a]
+ [0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v] ;
+ anullsrc=r=$AUDIORATE:cl=stereo [a]
" \
- -map "[v]" \
- -map "[a]" \
+ -map "[v]" -map "[a]" \
-c:a pcm_s16le \
-c:v rawvideo \
-pix_fmt yuv420p \