Skip to content

Commit

Permalink
Merge branch 'dev' into pr/1
Browse files Browse the repository at this point in the history
  • Loading branch information
DispatchCommit committed Jan 23, 2020
2 parents 8c53e33 + 3bf7523 commit baf3e18
Show file tree
Hide file tree
Showing 51 changed files with 5,600 additions and 480 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.idea
/.settings
/.project
/.cproject
/.vscode
7 changes: 7 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ Project author:
Contacts:
[email protected]
[email protected]

Fork author:
Sergey Dryanzhinsky
Moscow, Russia

Contacts:
[email protected]
48 changes: 26 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
# NGINX-based Media Streaming Server
## nginx-rtmp-module

## nginx-rtmp-module

### Project blog

http://nginx-rtmp.blogspot.com

### Wiki manual
### Documentation

* [Home](doc/README.md)
* [Control module](doc/control_modul.md)
* [Debug log](doc/debug_log.md)
* [Directives](doc/directives.md)
* [Examples](doc/examples.md)
* [Exec wrapper in bash](doc/exec_wrapper_in_bash.md)
* [FAQ](doc/faq.md)
* [Getting number of subscribers](doc/getting_number_of_subscribers.md)
* [Getting started with nginx rtmp](doc/getting_started.md)
* [Installing in Gentoo](doc/installing_in_gentoo.md)
* [Installing on Ubuntu using PPAs](doc/installing_ubuntu_using_ppas.md)
* [Tutorial](doc/tutorial.md)

https://github.com/arut/nginx-rtmp-module/wiki/Directives
*Source: https://github.com/arut/nginx-rtmp-module/wiki*

* [Latest updates](doc/README.md#updates)

### Google group

Expand Down Expand Up @@ -76,6 +91,12 @@ For building debug version of nginx add `--with-debug`

[Read more about debug log](https://github.com/arut/nginx-rtmp-module/wiki/Debug-log)

### Contributing and Branch Policy

The "dev" branch is the one where all contributions will be merged before reaching "master".
If you plan to propose a patch, please commit into the "dev" branch or its own feature branch.
Direct commit to "master" are not permitted.

### Windows limitations

Windows support is limited. These features are not supported
Expand All @@ -97,10 +118,8 @@ name - interpreted by each application

### Multi-worker live streaming

Module supports multi-worker live
streaming through automatic stream pushing
to nginx workers. This option is toggled with
rtmp_auto_push directive.
This NGINX-RTMP module does not support multi-worker live
streaming. While this feature can be enabled through rtmp_auto_push on|off directive, it is ill advised because it is incompatible with NGINX versions starting 1.7.2 and up, there for it should not be used.


### Example nginx.conf
Expand Down Expand Up @@ -315,18 +334,3 @@ rtmp_auto_push directive.
}
}
}


### Multi-worker streaming example

rtmp_auto_push on;

rtmp {
server {
listen 1935;

application mytv {
live on;
}
}
}
54 changes: 40 additions & 14 deletions config
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ngx_addon_name="ngx_rtmp_module"

CORE_MODULES="$CORE_MODULES
RTMP_CORE_MODULES=" \
ngx_rtmp_module \
ngx_rtmp_core_module \
ngx_rtmp_cmd_module \
Expand All @@ -15,21 +14,18 @@ CORE_MODULES="$CORE_MODULES
ngx_rtmp_relay_module \
ngx_rtmp_exec_module \
ngx_rtmp_auto_push_module \
ngx_rtmp_auto_push_index_module \
ngx_rtmp_notify_module \
ngx_rtmp_log_module \
ngx_rtmp_limit_module \
ngx_rtmp_hls_module \
ngx_rtmp_dash_module \
"


HTTP_MODULES="$HTTP_MODULES \
RTMP_HTTP_MODULES=" \
ngx_rtmp_stat_module \
ngx_rtmp_control_module \
"


NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
RTMP_DEPS=" \
$ngx_addon_dir/ngx_rtmp_amf.h \
$ngx_addon_dir/ngx_rtmp_bandwidth.h \
$ngx_addon_dir/ngx_rtmp_cmd_module.h \
Expand All @@ -48,9 +44,7 @@ NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
$ngx_addon_dir/hls/ngx_rtmp_mpegts.h \
$ngx_addon_dir/dash/ngx_rtmp_mp4.h \
"


NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
RTMP_CORE_SRCS=" \
$ngx_addon_dir/ngx_rtmp.c \
$ngx_addon_dir/ngx_rtmp_init.c \
$ngx_addon_dir/ngx_rtmp_handshake.c \
Expand All @@ -70,8 +64,6 @@ NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
$ngx_addon_dir/ngx_rtmp_flv_module.c \
$ngx_addon_dir/ngx_rtmp_mp4_module.c \
$ngx_addon_dir/ngx_rtmp_netcall_module.c \
$ngx_addon_dir/ngx_rtmp_stat_module.c \
$ngx_addon_dir/ngx_rtmp_control_module.c \
$ngx_addon_dir/ngx_rtmp_relay_module.c \
$ngx_addon_dir/ngx_rtmp_bandwidth.c \
$ngx_addon_dir/ngx_rtmp_exec_module.c \
Expand All @@ -84,9 +76,43 @@ NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
$ngx_addon_dir/hls/ngx_rtmp_hls_module.c \
$ngx_addon_dir/dash/ngx_rtmp_dash_module.c \
$ngx_addon_dir/hls/ngx_rtmp_mpegts.c \
$ngx_addon_dir/hls/ngx_rtmp_mpegts_crc.c \
$ngx_addon_dir/dash/ngx_rtmp_mp4.c \
"
CFLAGS="$CFLAGS -I$ngx_addon_dir"
RTMP_HTTP_SRCS=" \
$ngx_addon_dir/ngx_rtmp_stat_module.c \
$ngx_addon_dir/ngx_rtmp_control_module.c \
"
ngx_module_incs=$ngx_addon_dir
ngx_module_deps=$RTMP_DEPS

if [ "$ngx_module_link" = "" ] ; then
# Old nginx version
ngx_module_link=NONE

EVENT_MODULES="$EVENT_MODULES $RTMP_CORE_MODULES"
HTTP_MODULES="$HTTP_MODULES $RTMP_HTTP_MODULES"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $RTMP_DEPS"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $RTMP_CORE_SRCS $RTMP_HTTP_SRCS"
fi

if [ $ngx_module_link = DYNAMIC ] ; then
ngx_module_name="$RTMP_CORE_MODULES $RTMP_HTTP_MODULES"
ngx_module_srcs="$RTMP_CORE_SRCS $RTMP_HTTP_SRCS"
. auto/module
elif [ $ngx_module_link = ADDON ] ; then
ngx_module_type=EVENT
ngx_module_name=$RTMP_CORE_MODULES
ngx_module_srcs=$RTMP_CORE_SRCS
. auto/module
ngx_module_type=HTTP
ngx_module_name=$RTMP_HTTP_MODULES
ngx_module_srcs=$RTMP_HTTP_SRCS
. auto/module
fi

USE_OPENSSL=YES

CFLAGS="$CFLAGS -I$ngx_addon_dir"
# Debug build with all warnings as errors
# CFLAGS="$CFLAGS -I$ngx_addon_dir -Wall -Wpointer-arith -Wno-unused-parameter -Werror"
Loading

0 comments on commit baf3e18

Please sign in to comment.