Skip to content

Instantly share code, notes, and snippets.

@renanccastro
Created July 13, 2016 00:32
Show Gist options
  • Save renanccastro/14ef2813666ed14686a15a4d508d85d5 to your computer and use it in GitHub Desktop.
Save renanccastro/14ef2813666ed14686a15a4d508d85d5 to your computer and use it in GitHub Desktop.
HTTPPort 8005
RTSPPort 8006
HTTPBindAddress SEU.IP.AQUI
RTSPBindAddress SEU.IP.AQUI
MaxClients 100
MaxBandwidth 10000
NoDefaults
<Feed webcam.ffm>
File /tmp/webcam.ffm
FileMaxSize 20M
</Feed>
<Stream webcam.mp4>
Feed webcam.ffm
Format rtp
VideoSize 640x480
NoAudio
</Stream>
#!/bin/bash
ffserver -d -f ffserver.conf &
ffmpeg -f avfoundation -i "0" http://127.0.0.1:8000/webcam.ffm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment