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