aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-nostream-pause-loop.sh
blob: d65ffb7d93e104df0b130ea4b6c53021ba8ae784 (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 -y -nostdin -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