aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-nostream-music.sh
blob: 5f10cafbb4b53031394ec1567ad3bc186cd4bd53 (plain)
  1. #!/bin/sh
  2. `dirname "$0"`/../config.sh
  3. wget -nc -O /tmp/machine_lullaby_1.ogg http://c3voc.mazdermind.de/testfiles/machine_lullaby_1.ogg
  4. while true; do
  5. ffmpeg -y -nostdin \
  6. -i "/tmp/machine_lullaby_1.ogg" \
  7. -ac 2 \
  8. -af aresample=$AUDIORATE \
  9. -c:a pcm_s16le \
  10. -f matroska \
  11. tcp://localhost:18000
  12. done