Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by bcryptd on Wednesday June 01, 2016 @01:36PM
(#11816431)
The one thing I've always wanted from nginx-rtmp was the ability to pull from a source input instead of running a separate process with ffmpeg to push the stream over. If they could get that working my life would become less complicated quickly.
[ Parent
| on HN ]
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by jc4p on Wednesday June 01, 2016 @01:54PM
(#11816622)
yeah I use nginx-rtmp for local video capturing (basically the functionality of a mirror) and the lag that needing to re-encode + chunk + starting off at the beginning of the chunks in the playlist introduces is meh. I think I'm going to transition my project over to WebRTC though, since the mobile device I'm using to display the video can handle that now.
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by rawnlq on Wednesday June 01, 2016 @10:39PM
(#11819991)
iOS still doesn't support webrtc...
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by jc4p on Thursday June 02, 2016 @01:45AM
(#11820615)
Neither does a lot of Android! Luckily the product I'm using uses https://crosswalk-project.org/ -- that sounded like an ad!
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by nickysielicki on Wednesday June 01, 2016 @04:05PM
(#11817694)
> [I'd prefer] the ability to pull from a source input instead of running a separate process with ffmpeg to push the stream over.
Could you elaborate on this? I don't understand what you mean by 'push' and 'pull' in this context.
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by bcryptd on Wednesday June 01, 2016 @04:58PM
(#11818113)
Currently to get the stream from ffmpeg into nginx you have to do the following:
ffmpeg -re -i input_file -c copy -f flv rtmp://nginx_server_url:1935/app
It would be nice to have the ability to set up an app block that looked kind of like this
application source1 { exec fffmpeg -f decklink -i 'DeckLink Quad (1)@8' -f flv rtmp://localhost/app/$name }
ffmpeg is still pushing the stream to nginx, but nginx is in charge of starting that process.
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by benwilber0 on Wednesday June 01, 2016 @05:23PM
(#11818283)
I think you might be looking for the exec_pull (or exex_static) directive
https://github.com/arut/nginx-rtmp-module/wiki/Directives#ex...
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by bcryptd on Wednesday June 01, 2016 @05:27PM
(#11818319)
I've tried, and it doesn't work so well. I don't think it works for every OS either.
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by rhizome on Wednesday June 01, 2016 @05:25PM
(#11818295)
Is there an advantage that an nginx process like that has over streaming servers like liquidsoap?
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by bcryptd on Wednesday June 01, 2016 @05:35PM
(#11818389)
liquidsoap is audio only right?
Most streaming servers are bloated and slow. If nginx can do for video streaming what they've done for web servers it would be great.
Re:Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS
by vertex-four on Wednesday June 01, 2016 @05:58PM
(#11818573)
Nope, liquidsoap does video. http://liquidsoap.fm/doc-svn/video.html