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)

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 02:19 AM.