News for hackers. Stuff that matters.
Re:Show HN: DudelDu a simple SHOUTcast server in Go by speps on Friday September 16, 2016 @08:04AM (#12513407)
Can it handle streaming of videos? README only mentions mp3 files.
Re:Show HN: DudelDu a simple SHOUTcast server in Go by krotik on Friday September 16, 2016 @08:27AM (#12513516)
No, SHOUTcast is only about audio. It is quite simple and straight forward.

I did implement some time ago a basic video streaming server (in Java) using Adobe's Real Time Messaging Protocol (only a partial implementation). It worked well enough for jwplayer and flowplayer. However, Flash is now on the decline and also it was a real pain to implement it.

I would be interested in implementing a video streaming server in Go. Does anyone know a good streaming protocol for HTML5 video? It should support seeking though - this was one of the main points why I went through the RTMP implementation.

Re:Show HN: DudelDu a simple SHOUTcast server in Go by speps on Friday September 16, 2016 @09:19AM (#12513741)
I asked because of this from their FAQ[0]:

What is Icecast, the program?

Icecast is a streaming server, which can stream audio (and video) to listeners/viewers. It supports Ogg (Vorbis, Theora), Opus, FLAC and WebM (VP8/VP9), nonfree codecs/formats like MP4 (H.264, MPEG4), M4A, NSV, AAC and MP3 might work, but we do not officially support those.

EDIT: is your Java code for video streaming somewhere? I'm interested in streaming my Raspberry Pi camera as all existing solutions don't satisfy me at the moment.

[0] http://icecast.org/faq/

Re:Show HN: DudelDu a simple SHOUTcast server in Go by Thaxll on Friday September 16, 2016 @10:13AM (#12514115)
Re:Show HN: DudelDu a simple SHOUTcast server in Go by krotik on Friday September 16, 2016 @10:39AM (#12514294)
I am currently travelling but once I have a stable connection I can upload it.

If you just want streaming (unidirectional) then you could just write a simple server which streams the byte stream from the camera. I remember one of my colleagues at work did this for our foos table scoring system. I suspect this is also what Icecast does.

I went through the pain of RTMP because I wanted support for seeking which requires bidirectional communication.

Re:Show HN: DudelDu a simple SHOUTcast server in Go by krotik on Tuesday September 20, 2016 @01:44AM (#12537352)
Hi, I managed now to dig out my Java code. It is here:

http://devt.de/tmp/rtmp_example.zip

It is just an experiment so not much documentation and/or unit tests. I hope it helps.

Re:Show HN: DudelDu a simple SHOUTcast server in Go by toast0 on Friday September 16, 2016 @11:04AM (#12514481)
You could certainly send video with shoutcast framing, but you would need a client that knew how to handle that. It wouldn't be seekable, but that would be expected for live video. Adapting to available bandwidth is mostly expected for video, but not as much for audio.
Re:Show HN: DudelDu a simple SHOUTcast server in Go by mumphster on Friday September 16, 2016 @11:35AM (#12514716)
Shoutcast definitely supported video streaming using the nsv format. I used to run a server back in the day.

https://en.m.wikipedia.org/wiki/Nullsoft_Streaming_Video

Re:Show HN: DudelDu a simple SHOUTcast server in Go by krotik on Friday September 16, 2016 @12:10PM (#12515014)
Thanks, I stand corrected. So I guess I have to try to stream a video :-)

Though sadly, I understand that this will not allow seeking.

Re:Show HN: DudelDu a simple SHOUTcast server in Go by krotik on Tuesday September 20, 2016 @05:05AM (#12538112)
My previous comment was wrong. After some more testing I can confirm that it does indeed support streaming of video. I've added a small video to the demo.
Re:Show HN: DudelDu a simple SHOUTcast server in Go by voltagex_ on Friday September 16, 2016 @08:16AM (#12513467)
Shoutcast only ever did audio, I think