https://gist.github.com/oneman/5394332 This is a little hack for sending -live encoded- WebM streams to Icecast from STDIN. An example (I was using libav from git, params likely different between libav, ffmpeg etc programs) avconv -v debug -f video4linux2 -s 320x240 -r 10 -i /dev/video0 -vcodec libvpx -threads 2 -vb 128k -r 10 -f webm pipe:1 | krad_pipe2 europa.kradradio.com 8008 /pipetest123.webm firefox Requires an Icecast 2.4 beta server. Testing on the above server is OK. gcc -Wall -o krad_pipe2 krad_pipe2.c sudo cp krad_pipe2 /usr/local/bin Incase you missed it, Krad Pipe (A different program from this one) can be used to ad-hoc restream from one Icecast server to another. https://gist.github.com/oneman/5074107 Happy Streaming, -D -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20130416/8f93bc7d/attachment.htm
David, Does this work with already-existing WebM files, as in, does it parse them to only output at the appropriate rate? Or, is this meant only for realtime sources that are already appropriately rate-limited by their nature? On 04/16/2013 07:20 AM, Krad Radio wrote:> https://gist.github.com/oneman/5394332 > > This is a little hack for sending -live encoded- WebM streams to > Icecast from STDIN. > > An example (I was using libav from git, params likely different > between libav, ffmpeg etc programs) > > avconv -v debug -f video4linux2 -s 320x240 -r 10 -i /dev/video0 > -vcodec libvpx -threads 2 -vb 128k -r 10 -f webm pipe:1 | krad_pipe2 > europa.kradradio.com <http://europa.kradradio.com> 8008 > /pipetest123.webm firefox > > Requires an Icecast 2.4 beta server. Testing on the above server is OK. > gcc -Wall -o krad_pipe2 krad_pipe2.c > sudo cp krad_pipe2 /usr/local/bin > > Incase you missed it, Krad Pipe (A different program from this one) > can be used to ad-hoc restream from one Icecast server to another. > > https://gist.github.com/oneman/5074107 > > Happy Streaming, > > -D > > > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast-- Libre Video http://librevideo.org
On 04/16/2013 03:57 PM, Basil Mohamed Gohar wrote:> David, > > Does this work with already-existing WebM files, as in, does it parse > them to only output at the appropriate rate? Or, is this meant only for > realtime sources that are already appropriately rate-limited by their > nature?Exactly the latter was implied by 'live encoded', as that means they are at the right rate (if the machine manages to keep up). For anything else I'd like to see libshout support for webm. Cheers Thomas> > On 04/16/2013 07:20 AM, Krad Radio wrote: >> https://gist.github.com/oneman/5394332 >> >> This is a little hack for sending -live encoded- WebM streams to >> Icecast from STDIN. >> >> An example (I was using libav from git, params likely different >> between libav, ffmpeg etc programs) >> >> avconv -v debug -f video4linux2 -s 320x240 -r 10 -i /dev/video0 >> -vcodec libvpx -threads 2 -vb 128k -r 10 -f webm pipe:1 | krad_pipe2 >> europa.kradradio.com <http://europa.kradradio.com> 8008 >> /pipetest123.webm firefox >> >> Requires an Icecast 2.4 beta server. Testing on the above server is OK. >> gcc -Wall -o krad_pipe2 krad_pipe2.c >> sudo cp krad_pipe2 /usr/local/bin >> >> Incase you missed it, Krad Pipe (A different program from this one) >> can be used to ad-hoc restream from one Icecast server to another. >> >> https://gist.github.com/oneman/5074107 >> >> Happy Streaming, >> >> -D >> >> >> >> _______________________________________________ >> Icecast mailing list >> Icecast at xiph.org >> http://lists.xiph.org/mailman/listinfo/icecast >