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