summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-background-loop.sh
blob: 36138621402669c37f83ddcccdf6999a06179025 (plain)
  1. #!/bin/sh
  2. `dirname "$0"`/../config.sh
  3. wget -nc -O /tmp/bg.ts http://c3voc.mazdermind.de/testfiles/bg.ts
  4. while true; do cat /tmp/bg.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:16000