Skip to content

Instantly share code, notes, and snippets.

@vido89
Forked from dachande/stream.sh
Created December 17, 2020 20:13
Show Gist options
  • Save vido89/70e4e083c1f925480892a4e523450a1c to your computer and use it in GitHub Desktop.
Save vido89/70e4e083c1f925480892a4e523450a1c to your computer and use it in GitHub Desktop.
Video Live Streaming with FFMpeg to Icecast2
#!/bin/bash
# Stream Desktop (1920x1200) at 25fps scaled down to 1280x800
ffmpeg -video_size 1920x1200 -framerate 25 -f x11grab -i :0.0 -f webm -r 25 -s 1280x800 -cluster_size_limit 2M -cluster_time_limit 5100 -content_type video/webm -c:v libvpx -b:v 1M -crf 30 -g 125 -deadline good -threads 4 icecast://source:supersecretpassword@host.example.com:8000/video.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment