Live data from Hacker News

Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS

nginx.com

41–50 of 58 posts

Re: Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS

#41
post #39
post #35

Earlier quoted context omitted.

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…

Is there an advantage that an nginx process like that has over streaming servers like liquidsoap?

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

#42
post #14

Earlier quoted context omitted.

The scalability of DASH/HLS comes from the fact that the video segments are just static files sitting on a http server so they can be cached and distributed with the many techniques for serving static files over http. If you don't need the scalability of DASH/HLS you can use the WebRTC apis for low latency streaming, usually [1] https://janus.conf.meetecho.com/

Yer I've looked into WebRTC before but the browser support isn't good enough yet :(

What browser doesn't support WebRTC but does support flash/RTMP ?

Re: Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS

#43
post #42

Earlier quoted context omitted.

Yer I've looked into WebRTC before but the browser support isn't good enough yet :(

What browser doesn't support WebRTC but does support flash/RTMP ?

Internet Explorer 9, 10, 11...

Re: Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS

#44
post #41
post #39

Earlier quoted context omitted.

Is there an advantage that an nginx process like that has over streaming servers like liquidsoap?

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.

Nope, liquidsoap does video. http://liquidsoap.fm/doc-svn/video.html

Re: Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS

#47
post #21
post #19

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.

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.

iOS still doesn't support webrtc...

Re: Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS

#48
post #47
post #21

Earlier quoted context omitted.

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.

iOS still doesn't support webrtc...

Neither does a lot of Android! Luckily the product I'm using uses https://crosswalk-project.org/ -- that sounded like an ad!
Post reply on HN