summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
blob: c470a9135bc5d7675514659996d5ab139c19baa3 (plain)
  1. #!/bin/sh
  2. `dirname "$0"`/../config.sh
  3. ffmpeg -y \
  4. -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