summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
blob: 1eeaea02e275fe53e6b09356779c7dba4a6b347e (plain)
  1. #!/bin/sh
  2. `dirname "$0"`/../config.sh
  3. ffmpeg -y -nostdin -xerror \
  4. -use_wallclock_as_timestamps 1 -timeout 3000000 -f mjpeg -i "http://10.73.5.2:1881/stream.mjpg" \
  5. -filter_complex "
  6. [0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v] ;
  7. anullsrc=r=$AUDIORATE:cl=stereo [a]
  8. " \
  9. -map "[v]" -map "[a]" \
  10. -c:a pcm_s16le \
  11. -c:v rawvideo \
  12. -pix_fmt yuv420p \
  13. -f matroska \
  14. tcp://localhost:10002