aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/source-nostream-music.sh
blob: 27df45ae52c3a134aec10a01b9d6f444fed4e32b (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://localhost:18000
  16. sleep 1;
  17. done