Feature #220 » camff.sh
1 |
#!/bin/bash -p
|
---|---|
2 |
# Stream via ffmpeg, crtmpserver and jwplayer
|
3 |
# ---------------------------------------------------
|
4 |
|
5 |
myip=0.0.0.0 |
6 |
port=6666 |
7 |
width=320 |
8 |
height=240 |
9 |
fr=10 |
10 |
|
11 |
# Works with ffserver
|
12 |
# ffmpeg -f video4linux2 -s ${width}x${height} -r $fr -i /dev/video0 http://localhost:8090/feed1.ffm
|
13 |
|
14 |
# RTP Streaming with crtmpserver
|
15 |
fr=25 |
16 |
ffmpeg -f video4linux2 -s ${width}x${height} -r $fr -i /dev/video0 -f flv -metadata streamName=myStream tcp://0.0.0.0:6666 |