aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/stream-sd.sh
blob: 83db56a7a5e5694efc52a74c9ffd69f71264c698 (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/overlay_hd.png http://c3voc.mazdermind.de/testfiles/overlay_hd.png
  8. ffmpeg -y -nostdin \
  9. -i tcp://$MIXHOST:11000 \
  10. -threads:0 0 \
  11. -aspect 16:9 \
  12. -c:v libx264 \
  13. -filter_complex '
  14. [0:v] yadif=mode=2, hqdn3d, scale=720:576 [deinter];
  15. movie=/tmp/overlay_hd.png [logo];
  16. [deinter] [logo] overlay=0:0 [out]
  17. ' \
  18. -map '[out]' \
  19. -maxrate:v:0 800k -bufsize:v:0 8192k -crf:0 18 \
  20. -pix_fmt:0 yuv420p -profile:v:0 main -g:v:0 25 \
  21. -preset:v:0 veryfast \
  22. \
  23. -ac 1 -c:a libfdk_aac -b:a 96k -ar 44100 \
  24. -map 0:a -filter:a:0 pan=mono:c0=FL \
  25. -ac:a:2 2 \
  26. \
  27. -y -f flv rtmp://127.0.0.1:1935/stream/voctomix_hd