aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-background-loop.sh
blob: 00ff35c728d0bd10034766bb2fdddf7a68ed33a5 (plain)
  1. #!/bin/sh
  2. wget -nc -O /tmp/bg.ts http://c3voc.mazdermind.de/testfiles/bg.ts
  3. while true; do cat /tmp/bg.ts || exit 1; done |\
  4. ffmpeg -re -i - \
  5. -map 0:v \
  6. -c:v rawvideo \
  7. -pix_fmt yuv420p \
  8. -f matroska \
  9. tcp://localhost:16000