<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Thanks, I'll give this a try. Hopefully it will allow me to select the specific capture port I want to stream from.<br></div><div><br></div><div>On Tue, 7 Apr 2020, at 23:09, Sam Mulvey wrote:<br></div><blockquote type="cite" id="qt"><div><br></div><div>On 4/7/20 2:02 PM, Louis Foster wrote:<br></div><div>> I've been trying to find a good way to a stream of audio from jack <br></div><div>> into opusenc (the official opus encoder tool) and then pass it to <br></div><div>> something like oggfwd to send to Icecast. However, a few different <br></div><div>> things I've tried in python haven't worked out, and I'm trying to not <br></div><div>> have to rely on an "audio file player" (like sox or pyaudio) to sit in <br></div><div>> the middle. Now I'm wondering if there's a way I can get the raw pcm <br></div><div>> data from jack. Is this possible? Is there an existing tool?<br></div><div><br></div><div><br></div><div>I use ffmpeg to stream Opus to icecast:<br></div><div><br></div><div>/usr/bin/ffmpeg -f jack -i opus -vn -acodec libopus -ar 48000 -ac 2 -ab <br></div><div>64k -content_type audio/ogg -f ogg <br></div><div>icecast://source:password@127.0.0.1:8000/opus<br></div><div><br></div><div>It's not the new flags, but it'd be straightforward to update.<br></div><div><br></div><div>-Sam<br></div><div><br></div><div><br></div></blockquote><div><br></div></body></html>