News for hackers. Stuff that matters.
Re:Show HN: Strimpack – roll your own livestreaming portal, ... by Sir_Cmpwn on Friday May 11, 2018 @03:25PM (#17050154)
I just did a side project at work dealing with live streaming, it's actually fairly simple if you understand ffmpeg. You can stream DASH like this:

    ffmpeg -i [...] -codec:v libx264 -profile:v baseline -pix_fmt yuv420p -codec:a aac -tune zerolatency -f dash -window_size 5 /tmp/live/live.mpd
Check out the ffmpeg-formats man page for a list of options you can use with -f dash. Then serve /tmp via nginx and point the reference client [0] at your mpd file. Tada!

You might want to use the nginx RTMP module, too, if you want to receive an RTMP stream from e.g. obs and wang-bang it into DASH.

[0] http://reference.dashif.org/dash.js/v2.6.8/samples/dash-if-r...

I'll write up a more detailed blog post at some point.

Re:Show HN: Strimpack – roll your own livestreaming portal, ... by j4pe on Friday May 11, 2018 @04:05PM (#17050434)
I would definitely read that post. I've had bad times in the past with video codecs.
Re:Show HN: Strimpack – roll your own livestreaming portal, ... by madeofpalk on Friday May 11, 2018 @03:34PM (#17050243)
Does Safari support DASH yet? Or, does Chrome support HLS?
Re:Show HN: Strimpack – roll your own livestreaming portal, ... by Sir_Cmpwn on Friday May 11, 2018 @03:40PM (#17050290)
Dash.js polyfills it in for unsupported browsers and it works fine, I suggest just using that and not worrying about it.
Re:Show HN: Strimpack – roll your own livestreaming portal, ... by melito on Friday May 11, 2018 @04:33PM (#17050611)
Safari doesn't support DASH and probably will not.

Chrome does not support HLS.

DASH isn't plug and play. It's an XML representation describing how to ingest media streams using something like Media Source Extensions.

There are a lot of players out there that will do this heavy lifting for you.