summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-nostream-music.sh
blob: 9a8c8774ebdc989411a2745ca969107d3616b77a (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 \
  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