aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-nostream-pause-loop.sh
blob: 69ac366ef3d5aaedc9c0c21f42af74b8add255be (plain)
  1. #!/bin/sh
  2. `dirname "$0"`/../config.sh
  3. wget -nc -O /tmp/pause.ts http://c3voc.mazdermind.de/testfiles/pause.ts
  4. while true; do cat /tmp/pause.ts || exit 1; done |\
  5. ffmpeg -re -i - \
  6. -filter_complex "
  7. [0:v] scale=$WIDTH:$HEIGHT,fps=$FRAMERATE [v]
  8. " \
  9. -map '[v]' \
  10. -c:v rawvideo \
  11. -pix_fmt yuv420p \
  12. -f matroska \
  13. tcp://localhost:17000