aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-background-loop.sh
blob: d88164d8e2359b57b9859d03148a76238c14da63 (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 -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:16000