[LAU] stream from jack to icecast(2)

Peter P. peterparker at fastmail.com
Wed Mar 18 14:51:10 CET 2020

* Louis Foster <sludge at low.show> [2020-03-18 13:20]:
> I'm in the process of doing this (in python) with opus. Sending audio to icecast works with a PUT request to the source mount point along with the source password. So if you have an audio stream, like if you use opusenc (from the opus-tools package) and pipe it to something that can stream the data as an http request, either a small script or using oggfwd, then you'll have opus as your encoding format. Seems like you got it working with ffmpeg though too.

This sounds like a nice solution as well Louis!

Now that I have audio streaming working using
ffmpeg -f jack -ac 2 -i ffmpeg -acodec libmp3lame -ab 128k -f mp3 icecast://source:somePassword@some.server:8000/stream

I am wondering if I could forward my grabbed X11 desktop as a video
stream from ffmpeg to icecast.

I have already wasted almost a day with this and wasn't able.

I "should" work somehow, as the can grab the xwindow as its manpage
tells me that the following will grab the desktop and encode into a
video file.

$ ffmpeg -f x11grab -video_size cif -framerate 25 -i :0.0 /tmp/out.mpg

Did anyone ever try this?


More information about the Linux-audio-user mailing list