<div dir="ltr"><div><div><div><div><a href="https://gist.github.com/oneman/5394332">https://gist.github.com/oneman/5394332</a><br><br></div>This is a little hack for sending -live encoded- WebM streams to Icecast from STDIN.<br>
<br></div>An example (I was using libav from git, params likely different between libav, ffmpeg etc programs)<br><br>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 <a href="http://europa.kradradio.com">europa.kradradio.com</a> 8008 /pipetest123.webm firefox<br>
<br></div>Requires an Icecast 2.4 beta server. Testing on the above server is OK.<br><pre class=""><span class="">gcc -Wall -o krad_pipe2 krad_pipe2.c<br></span></pre><pre class=""><span class="">sudo cp krad_pipe2 /usr/local/bin<br>
</span></pre></div>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.<br><div><br><div><a href="https://gist.github.com/oneman/5074107">https://gist.github.com/oneman/5074107</a><br>
<br></div><div>Happy Streaming,<br><br></div><div>-D<br></div><div><br></div></div></div>