summaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/stream-sd.sh
blob: 26a7cfbbe1a941e6b586a748d007c35be87449c6 (plain)
  1. #!/bin/sh
  2. wget -nc -O /tmp/overlay_hd.png http://c3voc.mazdermind.de/testfiles/overlay_hd.png
  3. ffmpeg -y -nostdin \
  4. -i tcp://localhost:11000 \
  5. -threads:0 0 \
  6. -aspect 16:9 \
  7. -c:v libx264 \
  8. -filter_complex '
  9. [0:v] yadif=mode=2, hqdn3d, scale=720:576 [deinter];
  10. movie=/tmp/overlay_hd.png [logo];
  11. [deinter] [logo] overlay=0:0 [out]
  12. ' \
  13. -map '[out]' \
  14. -maxrate:v:0 800k -bufsize:v:0 8192k -crf:0 18 \
  15. -pix_fmt:0 yuv420p -profile:v:0 main -g:v:0 25 \
  16. -preset:v:0 veryfast \
  17. \
  18. -ac 1 -c:a libfdk_aac -b:a 96k -ar 44100 \
  19. -map 0:a -filter:a:0 pan=mono:c0=FL \
  20. -ac:a:2 2 \
  21. \
  22. -y -f flv rtmp://127.0.0.1:1935/stream/voctomix_hd