Xabe.FFmpeg
Xabe.FFmpeg copied to clipboard
Live audio streamingto Icecast
I would be interested in implementing the possibility to stream from a live audio source to an icecast server Currently, this seems to be impossible with the current state of this package, unless you build your commands manually.
What would be the best way to implement this functionality in such a way that this project can benefit from it?
Hi @leonardder We did not consider adding Icecast support to library, but it would be great if you want to participate :) I think best way to implementing that would be create a new project (Xabe.FFmpeg.Icecast or similar) with additional snippets and whole functionality to stream to Icecast. It should change as little as possible in the main package because most people do not need that. It will be some work with that but of course I can help.
Thanks for your quick reply.
I think best way to implementing that would be create a new project (Xabe.FFmpeg.Icecast or similar) with additional snippets and whole functionality to stream to Icecast.
MM that would be pretty specific may be, there are other streaming server techniques that would fall out of scope with such a name.
It should change as little as possible in the main package because most people do not need that.
Having been able to look more into how the main package is constructed, it looks like input and output file support is mainly written around the assumption that the files are local, while FFMPeg is perfectly able to stream static or streaming content from a web server.
For example, the MediaInfo class can only be generated from a local path, relies on a FileInfo structure, etc. If we could make MediaInfo more versatile that it also supports remote content, that would be a huge step forward, at least for what input is concerned.
As for output, it might even be enough to add a helper for Icecast to the main package.