Live data from Hacker News

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

nginx.com

11–20 of 58 posts

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

#11

This looks cool. I'm very interested in live video but can someone enlighten me on the creation side of this equation? How do I create an RTMP stream in the first place? What camera can/should I use? Can I use webcam? Is there an iOS app that can do it? What hardware/software is needed to create this RTMP stream that I'll be pushing to nginx?

ffmpeg, vlc, OBS Studio (this one is probably easiest; you can just add an image or add a webcam source etc then configure a rtmp url to push to)

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

#13

This looks cool. I'm very interested in live video but can someone enlighten me on the creation side of this equation? How do I create an RTMP stream in the first place? What camera can/should I use? Can I use webcam? Is there an iOS app that can do it? What hardware/software is needed to create this RTMP stream that I'll be pushing to nginx?

Streamers typically use something like [1] OBS, or [2] FMLE to stream their desktop or webcam to an RTMP ingest server like Twitch, Youtube, Streamup, Streamboat.tv, etc. Can even just use ffmpeg.

[1] https://obsproject.com/

[2] http://www.adobe.com/products/flash-media-encoder.html

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

#14

I wish there was a decent HTML5 low latency (< 2s) solution. Nothing comes close to RTMP + Flash still.

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/

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

#17
post #12

Is there a way to mux subtitles written on the fly? For example, I want to mux a subtitle stream, with the real time clock in it, into a video stream.

ffmpeg can do that fairly easily. To adjust the command in the example, you need to to take the srt file and pass it as a second -i input file. There's some helpful guides on how to do that if you search around.

e.g. https://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/s...

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

#18
post #11

This looks cool. I'm very interested in live video but can someone enlighten me on the creation side of this equation? How do I create an RTMP stream in the first place? What camera can/should I use? Can I use webcam? Is there an iOS app that can do it? What hardware/software is needed to create this RTMP stream that I'll be pushing to nginx?

ffmpeg, vlc, OBS Studio (this one is probably easiest; you can just add an image or add a webcam source etc then configure a rtmp url to push to)

Wirecast from Telestream is a good paid option as well.
Post reply on HN