Chose audio device
miguel.leao at bisect.pt
Thu Feb 16 10:52:56 UTC 2023
Thanks Tim and Nicolas!
With the gst-device-monitor-1.0 Audio/Sink command I was able to figure it out.
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.
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of Tim-Philipp Müller via gstreamer-devel <gstreamer-devel at lists.freedesktop.org>
Sent: Wednesday, February 15, 2023 6:07 PM
To: gstreamer-devel at lists.freedesktop.org <gstreamer-devel at lists.freedesktop.org>
Cc: Tim-Philipp Müller <t.i.m at zen.co.uk>
Subject: Re: Chose audio device
On Wed, 2023-02-15 at 15:43 +0000, Miguel Leão via gstreamer-devel wrote:
I have a computer with 4 HDMI outputs, and I want to chose from which to play audio. How can I do that?
A generic way to list available audio devices is the GstDeviceMonitor API.
You can check the available devices you would get with that via
and the output should also contain something you can paste into a gst-launch pipeline.
In an application you would use gst_device_create_element() instead on a device that you get via the device monitor API.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel