aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/ffmpeg/stream-hd.sh
blob: d2f23759f04cfb0567763bb783989029773cf05f (plain)
  1. #!/bin/sh
  2. wget -nc -O /tmp/overlay_hd.png http://c3voc.mazdermind.de/testfiles/overlay_hd.png
  3. ffmpeg -y \
  4. -i tcp://localhost:15000 \
  5. -threads:0 0 \
  6. -aspect 16:9 \
  7. -c:v libx264 \
  8. -filter_complex '
  9. [0:v] yadif=mode=2, hqdn3d [deinter];
  10. movie=/tmp/overlay_hd.png [logo];
  11. [deinter] [logo] overlay=0:0 [out]
  12. ' \
  13. -map '[out]' \
  14. -maxrate:v:0 3000k -bufsize:v:0 8192k -crf:0 21 \
  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