Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Streaming servers (http://stream-recorder.com/forum/forumdisplay.php?f=27)
-   -  

NGINX-based RTMP server

(http://stream-recorder.com/forum/showthread.php?t=11384)

StreamRecorder 04-11-2012 01:23 AM

NGINX-based RTMP server


 
NGINX-based RTMP server is a free open source software. It is an NGINX module creating an RTMP server.

Features:
  • Live streaming of video/audio
  • Recording published streams in FLV file
  • HTTP callbacks on publish/play/record
  • Advanced buffering techniques to keep memory allocations at a minimum level for faster streaming and low memory footprint
  • Works with Flash RTMP clients as well as ffmpeg/rtmpdump/flvstreamer etc

arut 04-15-2012 03:23 PM

Re: NGINX-based RTMP server


 
Hello,

I'm the author of nginx-rtmp-module.
Feel free to ask questions or post feature requests.

--
Roman

Stream Ripper 04-16-2012 01:20 AM

Re: NGINX-based RTMP server


 
Quote:

Originally Posted by arut (Post 43495)
Hello,

I'm the author of nginx-rtmp-module.
Feel free to ask questions or post feature requests.

--
Roman

Thanks Roman - glad to have you on board :)

moe007 04-16-2012 12:11 PM

Re: NGINX-based RTMP server


 
Hey Roman, have a couple of questions for you:
1. How does your RTMP module compare to Adobe FMS, Wowza, and Red5

2. What is the max concurrent connections this server can handle

3. and does this support any other protocols besides just rtmp?

4. And would this be a good replacement or a better low cost solution to Red5 perhaps?

I've been looking at red5 as a low cost solution but its so buggy that I maybe rethinking this strategy. So any advise would be greatly appreciated.

folovr 04-19-2012 10:56 AM

Re: NGINX-based RTMP server


 
Quote:

Originally Posted by arut (Post 43495)
Hello,

I'm the author of nginx-rtmp-module.
Feel free to ask questions or post feature requests.

--
Roman

Hello Roman,

I had problems with FMS working as reverse proxy : http://forums.adobe.com/message/4338378

I found your nginx-rtmp module, but I couldn't configure fine, I'm trying to put nginx as reverse proxy in port 80, if there is a HTTP request pass to apache port, if there is a RTMP request pass to 1935 port.

Could you give me a configuration example for that case ?

Regards,
Luis.

arut 04-23-2012 03:24 PM

Re: NGINX-based RTMP server


 
Quote:

Originally Posted by moe007 (Post 43538)
Hey Roman, have a couple of questions for you:

nice, I'll try to answer
Quote:

1. How does your RTMP module compare to Adobe FMS, Wowza, and Red5
The module was developed as a replacement for PyFMS. It's being actively developed and will include many features from the products you have mentioned.
Quote:

2. What is the max concurrent connections this server can handle
The module makes use of single-threaded event-based architecture. So the number of connections is only limited by your OS' open descriptors number setting as well as network bandwidth and network driver performance. In tests we have conducted userspace cpu usage was always near zero point when broadcasting to 2000 users (we have Xeon machine, the test only used one core out of 8).
Quote:

3. and does this support any other protocols besides just rtmp?
The module does not support any other protocols. However NGINX obviously supports HTTP and can play FLVs with random seeking.
Quote:

4. And would this be a good replacement or a better low cost solution to Red5 perhaps?
I'm doing my best for that :)

zzldccpro 05-04-2012 06:01 AM

Re: NGINX-based RTMP server


 
Hello Roman

I need nginx use rtmp support flv files.
but I dont know how to configration the module.

Could you give me a configuration example for that case ?

Thank you very much!:D

igabo 10-05-2012 07:23 AM

Re: NGINX-based RTMP server


 
Hy, nice job. Authentication supported? I mean Streamer/Reader auth.

alexthunder 12-14-2012 12:58 PM

Re: NGINX-based RTMP server


 
The Getting Started Guide: https://github.com/arut/nginx-rtmp-m...ith-nginx-rtmp

Wiki Manual: https://github.com/arut/nginx-rtmp-m...iki/Directives

arut 02-12-2013 12:50 AM

Re: NGINX-based RTMP server


 
The project is being actively developed. Many new features were added like HLS, advanced recorder, stream transcoding, distributed streaming etc. Please post questions here or visit project blog for more details.

adrianmay 03-27-2013 08:44 PM

Re: NGINX-based RTMP server


 
Hi Roman,

I'm a video noob so I need a few basics explaining to me. I want to stash some pre-recorded videos on my amazon server (they're free right now BTW) and embed them in some web page served up by the same server.

1) Can I deliver the videos over port 80 or do I have to assume the viewer isn't behind a firewall?

2) If the former, how do I configure nginx and your plugin to have everything coming over 80, presumably with the videos under some URL directory?

3) What do I put in the web page to show the video on any browser on any device?

4) Do I need any other SW, and if so, is any of it proprietory?

5) To get the best cross-browser support without spending money, and to optimise speed and resolution, how should I encode the videos?

6) Can I do any adaptive bit rate tricks?

Thanks in advance,
Adrian.

arut 03-29-2013 11:55 PM

Re: NGINX-based RTMP server


 
Hi
Quote:

Originally Posted by adrianmay (Post 61052)
Hi Roman,

I'm a video noob so I need a few basics explaining to me. I want to stash some pre-recorded videos on my amazon server (they're free right now BTW) and embed them in some web page served up by the same server.

that's VOD (video on demand)
nginx-rtmp supports mp4 & flv formats

Quote:

1) Can I deliver the videos over port 80 or do I have to assume the viewer isn't behind a firewall?
you can use any port

Quote:

2) If the former, how do I configure nginx and your plugin to have everything coming over 80, presumably with the videos under some URL directory?
use "listen 80" directive

Quote:

3) What do I put in the web page to show the video on any browser on any device?
for watching on desktop use any flash video player (JWPlayer, FlowPLayer, OSMF etc) or write your own flash app. For mobile devices you need HLS. VOD HLS is not supported in nginx-rtmp. I'm now writing such a module, it will be a proprietary module, I'll post more details later. You can escape using HLS and play mp4 on device.

Quote:

4) Do I need any other SW, and if so, is any of it proprietory?
you might need ffmpeg, it's free

Quote:

5) To get the best cross-browser support without spending money, and to optimise speed and resolution, how should I encode the videos?
transcode videos to H264 & AAC with ffmpeg/libx264/libfaac.

Quote:

6) Can I do any adaptive bit rate tricks?
with JWPlayer6 it's possible to have several bitrates for a single stream.

Thanks in advance,
Adrian.[/quote]

leleo222 02-05-2014 06:58 AM

Re: NGINX-based RTMP server


 
Hello! I'm trying to record a stream using this module, but the .flv file doesn't actually appears on the recorded_path I've set. Any ideas why?

jasiek08 04-05-2014 07:08 AM

Re: NGINX-based RTMP server


 
Hey Roman,
I'm trying to compile the nginx with module. I'm doing steps from this tutorial:

HTML Code:

https://github.com/arut/nginx-rtmp-module/wiki/Getting-started-with-nginx-rtmp
but after compile, there is no nginx in my sbin..
Quote:

-bash: /usr/sbin/nginx: No such file or directory
what should i do?

89neuron 09-21-2014 12:22 PM

Re: NGINX-based RTMP server


 
Is there any way as of now that I can play mp3/audio files with rtmp ?

If not possible solutions to it, red5 is really a mess when i try to play mp3 files.

Cheers!:D

sonnvl 01-03-2016 05:08 PM

Re: NGINX-based RTMP server


 
How to fix this?
When I use rtmpdump, it never starts at 0.0 second,
And after dumping for a while, it auto reconnect, and the obtain video is break !

Code:

rtmpdump -v -r "rtmp://123.30.238.125/live/_definst_/vtv7-high" -f "WIN 20,0,0,267" -W "http://vtvgo.vn/skin/js/jwplayer/jwplayer.flash.swf" -o "V7.flv"
RTMPDump v2.4 GIT-2015-12-14 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  Server                  NGINX RTMP (github.com/arut/nginx-rtmp-module)
INFO:  width                  1280.00
INFO:  height                  720.00
INFO:  displayWidth            1280.00
INFO:  displayHeight          720.00
INFO:  duration                0.00
INFO:  framerate              25.00
INFO:  fps                    25.00
INFO:  videodatarate          1562.00
INFO:  videocodecid            7.00
INFO:  audiodatarate          125.00
INFO:  audiocodecid            10.00
37702.245 kB / 262.42 sec
INFO: Metadata:
INFO:  Server                  NGINX RTMP (github.com/arut/nginx-rtmp-module)
INFO:  width                  1280.00
INFO:  height                  720.00
INFO:  displayWidth            1280.00
INFO:  displayHeight          720.00
INFO:  duration                0.00
INFO:  framerate              25.00
INFO:  fps                    25.00
INFO:  videodatarate          1562.00
INFO:  videocodecid            7.00
INFO:  audiodatarate          125.00
INFO:  audiocodecid            10.00
38548.455 kB / 5.00 sec


ashleyjohn1189 06-12-2017 05:17 AM

Re: NGINX-based RTMP server


 
Streamhash streaming software has also a NGINX based RTMP server.


All times are GMT -6. The time now is 11:03 AM.