Thanks, I'll give this a try. Hopefully it will allow me to select the specific capture port I want to stream from.

On Tue, 7 Apr 2020, at 23:09, Sam Mulvey wrote:

On 4/7/20 2:02 PM, Louis Foster wrote:
> I've been trying to find a good way to a stream of audio from jack 
> into opusenc (the official opus encoder tool) and then pass it to 
> something like oggfwd to send to Icecast. However, a few different 
> things I've tried in python haven't worked out, and I'm trying to not 
> have to rely on an "audio file player" (like sox or pyaudio) to sit in 
> the middle. Now I'm wondering if there's a way I can get the raw pcm 
> data from jack. Is this possible? Is there an existing tool?


I use ffmpeg to stream Opus to icecast:

/usr/bin/ffmpeg -f jack -i opus -vn -acodec libopus -ar 48000 -ac 2 -ab 
64k -content_type audio/ogg -f ogg 
icecast://source:password@127.0.0.1:8000/opus

It's not the new flags, but it'd be straightforward to update.

-Sam