我有一个ReSpeaker 4麦克风阵列,我试图将其用于自定义应用程序。但是,似乎gstreamer找不到该设备为Src。尽管它检测到设备的输出扬声器。有谁知道如何在macOS Mojave中的gstreamer上使用usb麦克风?
下面是我的gst-device-monitor-1.0
Probing devices...
Device found:
name : FaceTime HD Camera
class : Video/Source
caps : video/x-raw, width=(int)1280, height=(int)720, format=(string)UYVY, framerate=(fraction){ 10000000/333333, 10000000/344827, 5000000/178571, 1000000/37037, 2000000/76923, 25/1, 5000000/208333, 5000000/217391, 2000000/90909, 1000000/47619, 20/1, 2000000/105263, 2000000/111111, 2000000/117647, 16/1, 5000000/333333, 2000000/142857, 1000000/76923, 10000000/833333, 1000000/90909, 10/1, 10000000/1111111, 8/1, 10000000/1428571, 5000000/833333, 5/1, 4/1, 10000000/3333333, 2/1, 1/1 }, texture-target=(string)rectangle;
video/x-raw, width=(int)640, height=(int)480, format=(string)UYVY, framerate=(fraction){ 10000000/333333, 10000000/344827, 5000000/178571, 1000000/37037, 2000000/76923, 25/1, 5000000/208333, 5000000/217391, 2000000/90909, 1000000/47619, 20/1, 2000000/105263, 2000000/111111, 2000000/117647, 16/1, 5000000/333333, 2000000/142857, 1000000/76923, 10000000/833333, 1000000/90909, 10/1, 10000000/1111111, 8/1, 10000000/1428571, 5000000/833333, 5/1, 4/1, 10000000/3333333, 2/1, 1/1 }, texture-target=(string)rectangle;
video/x-raw, width=(int)1280, height=(int)720, format=(string){ UYVY, YUY2, NV12, BGRA }, framerate=(fraction){ 1/1, 2/1, 10000000/3333333, 4/1, 5/1, 5000000/833333, 10000000/1428571, 8/1, 10000000/1111111, 10/1, 1000000/90909, 10000000/833333, 1000000/76923, 2000000/142857, 5000000/333333, 16/1, 2000000/117647, 2000000/111111, 2000000/105263, 20/1, 1000000/47619, 2000000/90909, 5000000/217391, 5000000/208333, 25/1, 2000000/76923, 1000000/37037, 5000000/178571, 10000000/344827, 10000000/333333 };
video/x-raw, width=(int)640, height=(int)480, format=(string){ UYVY, YUY2, NV12, BGRA }, framerate=(fraction){ 1/1, 2/1, 10000000/3333333, 4/1, 5/1, 5000000/833333, 10000000/1428571, 8/1, 10000000/1111111, 10/1, 1000000/90909, 10000000/833333, 1000000/76923, 2000000/142857, 5000000/333333, 16/1, 2000000/117647, 2000000/111111, 2000000/105263, 20/1, 1000000/47619, 2000000/90909, 5000000/217391, 5000000/208333, 25/1, 2000000/76923, 1000000/37037, 5000000/178571, 10000000/344827, 10000000/333333 };
gst-launch-1.0 avfvideosrc device-index=0 ! ...
Device found:
name : ReSpeaker 4 Mic Array (UAC1.0)
class : Audio/Sink
caps : audio/x-raw, format=(string)F32LE, layout=(string)interleaved, rate=(int)16000, channels=(int)2, channel-mask=(bitmask)0x0000000000000003;
audio/x-raw, format=(string){ S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }, layout=(string)interleaved, rate=(int)[ 1, 2147483647 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003;
audio/x-raw, format=(string){ S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }, layout=(string)interleaved, rate=(int)[ 1, 2147483647 ], channels=(int)1;
gst-launch-1.0 ... ! osxaudiosink device=57
Device found:
name : Built-in Output
class : Audio/Sink
caps : audio/x-raw, format=(string)F32LE, layout=(string)interleaved, rate=(int)44100, channels=(int)2, channel-mask=(bitmask)0x0000000000000003;
audio/x-raw, format=(string){ S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }, layout=(string)interleaved, rate=(int)[ 1, 2147483647 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003;
audio/x-raw, format=(string){ S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }, layout=(string)interleaved, rate=(int)[ 1, 2147483647 ], channels=(int)1;
gst-launch-1.0 ... ! osxaudiosink device=47
Device found:
name : Built-in Microph
class : Audio/Source
caps : audio/x-raw, format=(string)F32LE, layout=(string)interleaved, rate=(int)48000, channels=(int)2, channel-mask=(bitmask)0x0000000000000003;
audio/x-raw, format=(string){ S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }, layout=(string)interleaved, rate=(int)48000, channels=(int)2, channel-mask=(bitmask)0x0000000000000003;
audio/x-raw, format=(string){ S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }, layout=(string)interleaved, rate=(int)48000, channels=(int)1;
gst-launch-1.0 osxaudiosrc device=40 ! ...