summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-05-08 13:08:44 +0200
committerMaZderMind <git@mazdermind.de>2016-05-08 13:08:44 +0200
commitf94b683a4677e1739a2a4c81d8616a7b41b40412 (patch)
tree74b9c303c7fe6c12b3fc5aaa3b40c784dc5e32fa /example-scripts/ffmpeg/source-mjpg-framegrabber.sh
parentbebb122c76dac7fad64dd0b1be569c92f6a63672 (diff)
add -use_wallclock_as_timestamps 1 and -f mjpeg to grabber-source to make it more stable
Diffstat (limited to 'example-scripts/ffmpeg/source-mjpg-framegrabber.sh')
-rwxr-xr-xexample-scripts/ffmpeg/source-mjpg-framegrabber.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/example-scripts/ffmpeg/source-mjpg-framegrabber.sh b/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
index babde08..1eeaea0 100755
--- a/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
+++ b/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
@@ -1,7 +1,7 @@
#!/bin/sh
. `dirname "$0"`/../config.sh
ffmpeg -y -nostdin -xerror \
- -timeout 3000000 -i "http://10.73.5.2:1881/stream.mjpg" \
+ -use_wallclock_as_timestamps 1 -timeout 3000000 -f mjpeg -i "http://10.73.5.2:1881/stream.mjpg" \
-filter_complex "
[0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v] ;
anullsrc=r=$AUDIORATE:cl=stereo [a]