Skip to content

Instantly share code, notes, and snippets.

@codecats
Last active November 20, 2016 17:06
Show Gist options
  • Save codecats/86154fc3f0e1a04b1e055411001050cb to your computer and use it in GitHub Desktop.
Save codecats/86154fc3f0e1a04b1e055411001050cb to your computer and use it in GitHub Desktop.
Stream to Icecast Ubuntu 16.04
#http://www.catswhocode.com/blog/19-ffmpeg-commands-for-all-needs
#webcam:
ffmpeg -f v4l2 -video_size 640x480 -framerate 3 -i /dev/video0 -f alsa -i default -f webm -cluster_size_limit 2M -cluster_time_limit 5100 -content_type video/webm -c:a libvorbis -b:a 96K -c:v libvpx -b:v 1.5M -crf 30 -g 150 -deadline good -threads 4 icecast://source:hackme@192.168.100.102:8111/stream_name
#mic:
ffmpeg -stats -report -f alsa -i hw:0 -c:a libmp3lame -b:a 320k -legacy_icecast 1 -content_type audio/mpeg -ice_name "DemoStream" -f mp3 icecast://source:hackme@192.168.100.102:8111:8000/stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment