<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Thanks Tim and Nicolas!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
With the gst-device-monitor-1.0 Audio/Sink command I was able to figure it out.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
I am using the pipewiresink, I figured I had to use the path flag. But the thing is, when I ran "pw-cli list-objects" command I saw that it each device has id, name, and path. So I was using the path from the device, to set the path flag, but it is the id that
 needs to be used.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of Tim-Philipp Müller via gstreamer-devel <gstreamer-devel@lists.freedesktop.org><br>
<b>Sent:</b> Wednesday, February 15, 2023 6:07 PM<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org <gstreamer-devel@lists.freedesktop.org><br>
<b>Cc:</b> Tim-Philipp Müller <t.i.m@zen.co.uk><br>
<b>Subject:</b> Re: Chose audio device</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div>On Wed, 2023-02-15 at 15:43 +0000, Miguel Leão via gstreamer-devel wrote:</div>
<div><br>
</div>
<div>Hi,</div>
<div><br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid; padding-left:1ex">
<div class="x_elementToProof" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
I have a computer with 4 HDMI outputs, and I want to chose from which to play audio. How can I do that?</div>
</blockquote>
<div><br>
</div>
<div>A generic way to list available audio devices is the GstDeviceMonitor API.</div>
<div><br>
</div>
<div>You can check the available devices you would get with that via</div>
<div><br>
</div>
<div><span class="x_Apple-tab-span" style="white-space:pre"></span><font face="monospace">gst-device-monitor-1.0 Audio/Sink</font></div>
<div><br>
</div>
<div>and the output should also contain something you can paste into a gst-launch pipeline.</div>
<div><br>
</div>
<div>In an application you would use <font face="monospace">gst_device_create_element()</font> instead on a device that you get via the device monitor API.</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid; padding-left:1ex">
</blockquote>
<div><br>
</div>
<div>Cheers</div>
<div> Tim</div>
<div><span></span></div>
</div>
</body>
</html>