summaryrefslogtreecommitdiff
path: root/example-scripts/av-stream-hd.sh
blob: e273a025e14a8a0f49b420661905efaefd9b2aaf (plain)
  1. #!/bin/sh
  2. ffmpeg -i tcp://localhost:11000 -aspect 16:9 -threads:0 0 \
  3. -c:v libx264 \
  4. -filter_complex "
  5. yadif=mode=2, hqdn3d [deinter];
  6. movie=$HOME/overlay_hd.png [logo];
  7. [deinter] [logo] overlay=0:0 [out]
  8. " -map '[out]' -maxrate:v:0 3000k -bufsize:v:0 8192k -crf:0 21 -pix_fmt:0 yuv420p -profile:v:0 main -g:v:0 25 -preset:v:0 veryfast \
  9. -ac 1 -c:a libfdk_aac -b:a 96k -ar 44100 \
  10. -map 0:a -filter:a:0 pan=mono:c0=FL \
  11. -ac:a:2 2 \
  12. -y -f flv rtmp://127.0.0.1:1935/stream/voctomix