#!/bin/bash -p
# Stream via ffmpeg, crtmpserver and jwplayer
# ---------------------------------------------------

myip=0.0.0.0
port=6666
width=320
height=240
fr=10

# Works with ffserver
# ffmpeg -f video4linux2 -s ${width}x${height} -r $fr -i /dev/video0 http://localhost:8090/feed1.ffm

# RTP Streaming with crtmpserver
fr=25
ffmpeg -f video4linux2 -s ${width}x${height} -r $fr -i /dev/video0 -f flv -metadata streamName=myStream tcp://0.0.0.0:6666
