aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/stream-hd.sh
blob: 1210ecf69e09b9b66f31d3040e151696f03b44de (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:15000 \
  10. -threads:0 0 \
  11. -aspect 16:9 \
  12. -c:v libx264 \
  13. -filter_complex '
  14. [0:v] yadif=mode=2, hqdn3d [deinter];
  15. movie=/tmp/overlay_hd.png [logo];
  16. [deinter] [logo] overlay=0:0 [out]
  17. ' \
  18. -map '[out]' \
  19. -maxrate:v:0 3000k -bufsize:v:0 8192k -crf:0 21 \
  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