This commit is contained in:
Roman Arutyunyan 2012-03-24 10:26:07 +04:00
parent 7f0f9f6ba3
commit fa6d9fc84f
6 changed files with 50 additions and 14 deletions

25
README
View file

@ -1,4 +1,4 @@
==nginx-rtmp-module==
== nginx-rtmp-module ==
NGINX-based RTMP server
@ -25,7 +25,7 @@ make
make install
RMTP URL format:
RTMP URL format:
rtmp://rtmp.example.com/<app>[/<name>]
@ -47,8 +47,6 @@ rtmp {
max_buf 1000000;
#timestamp_fix off;
# TV mode: one publisher, many subscribers
application mytv {
@ -81,3 +79,22 @@ rtmp {
}
}
Compatibility:
Two time fix options exist in server{} block:
play_time_fix on|off;
publish_time_fix on|off;
Both are on by default.
These time fixes need to be turned off
when playing with non-Adobe software
(like ffmpeg) or publishing longer
streams (>4 hours) with such software.
Streams generated/expected by Adobe software
do not satisfy the spec (written by them!).
Third-party software does.

2
TODO
View file

@ -11,3 +11,5 @@
- fix '..greeing line..' in log
- play only streams being published

View file

@ -1,2 +1,2 @@
ffmpeg -loglevel verbose -re -i /mnt/home/rarutyunyan/Videos/anything_else-solaris.giga.su.avi -f flv rtmp://localhost/helo
ffmpeg -loglevel verbose -re -i /mnt/home/rarutyunyan/Videos/anything_else-solaris.giga.su.avi -f flv rtmp://localhost/helo/movie
#ffmpeg -loglevel verbose -re -i /mnt/home/rarutyunyan/Videos/the_changeup-solaris.giga.su.avi -an -f flv rtmp://localhost/helo

View file

@ -24,7 +24,7 @@ rtmp {
max_buf 1000000;
#timestamp_fix off;
publish_time_fix off;
application helo {
@ -32,14 +32,14 @@ rtmp {
record /tmp/av;
record_size 3000000;
record_size 10000000;
#wait_key_frame on;
# publish only from localhost
allow publish 127.0.0.1;
#allow publish 127.0.0.1;
deny publish all;
#deny publish all;
}
}

View file

@ -9,9 +9,26 @@
{ type: "flash",
src: "/jwplayer/player.swf",
config: {
bufferlength: 3,
file: "online",
streamer: "rtmp://10.31.1.78/helo",
bufferlength: 1,
file: "webcam",
streamer: "rtmp://192.168.0.100/helo",
provider: "rtmp",
}
}
]
});
</script>
<div id="container2">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container2").setup({
modes: [
{ type: "flash",
src: "/jwplayer/player.swf",
config: {
bufferlength: 1,
file: "movie",
streamer: "rtmp://192.168.0.100/helo",
provider: "rtmp",
}
}

View file

@ -4,8 +4,8 @@
<script type="text/javascript">
var flashvars =
{
'streamer': 'rtmp://10.31.1.78/helo',
'file': 'livestream',
'streamer': 'rtmp://192.168.0.100/helo',
'file': 'webcam',
'type': 'camera',
'controlbar': 'bottom',
'stretching': 'none',