aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-mjpg-framegrabber.sh
blob: 6b47bf76c50b9261eb9bca102b0a11da567ac5a8 (plain)
  1. #!/bin/sh
  2. ffmpeg -y \
  3. -i "http://10.73.5.2:1881/stream.mjpg" \
  4. -filter_complex "
  5. [0:v] scale=1920:1080,fps=25 [v] ;
  6. anullsrc=r=48000:cl=stereo [a]
  7. " \
  8. -map "[v]" \
  9. -map "[a]" \
  10. -c:a pcm_s16le \
  11. -c:v rawvideo \
  12. -pix_fmt yuv420p \
  13. -f matroska \
  14. tcp://localhost:10002