Project

General

Profile

Feature #193 ยป camff.sh

Hammel, 07 Jul 2013 17:38

 
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
fr=25
15
# RTP Streaming with crtmpserver
16
ffmpeg -f video4linux2 -s ${width}x${height} -r $fr -i /dev/video0 -f flv -metadata streamName=myStream tcp://0.0.0.0:6666
    (1-1/1)