ffmpeg:无法识别音频输入设备

问题描述 投票:-1回答:1

我的ffmpeg命令识别我的音频输入设备需要什么?

以下参考文献无法帮助解决我的问题:enter link description here

我想在捕获屏幕活动时记录我(与Windows笔记本电脑交谈)的谈话。虽然我成功捕获了屏幕上的内容(通过从命令中删除了所有提及的音频),但是由于捕获的设备无法被ffmpeg识别,因此我无法捕获音频。 (我通常使用默认的笔记本电脑来向Audacity输入音频...当然,在此ffmpeg命令中也有使用它的方法。)

我的音频设备:

ffmpeg -list_devices true -f dshow -i dummy

    [dshow @ 000000000044a940] DirectShow audio devices
    [dshow @ 000000000044a940]  "Microphone Array (IDT High Defi"
    [dshow @ 000000000044a940]     Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Microphone Array (IDT High Defi"
    [dshow @ 000000000044a940]  "Dock Mic (IDT High Definition A"
    [dshow @ 000000000044a940]     Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Dock Mic (IDT High Definition A"
    [dshow @ 000000000044a940]  "Jack Mic (IDT High Definition A"
    [dshow @ 000000000044a940]     Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Jack Mic (IDT High Definition A"
    [dshow @ 000000000044a940]  "Rec. Playback (IDT High Definit"
    [dshow @ 000000000044a940]     Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Rec. Playback (IDT High Definit"

通过注册表编辑器找到全名:麦克风阵列(IDT高清晰度音频编解码器)

为什么找不到音频输入设备?

ffmpeg -y -f gdigrab -i desktop -framerate 10 -f dshow -i audio="Microphone Array (IDT High Definition Audio CODEC)" -vcodec libx264 "C:\jed\ffmpeg\_mydata\clip.mp4"

    [gdigrab @ 0000000000498540] Capturing whole desktop as 1366x768x32 at (0,0)
    [gdigrab @ 0000000000498540] Stream #0: not enough frames to estimate rate; consider increasing probesize
    Input #0, gdigrab, from 'desktop':
      Duration: N/A, start: 1575576239.093815, bitrate: 1006131 kb/s
        Stream #0:0: Video: bmp, bgra, 1366x768, 1006131 kb/s, 29.97 fps, 1000k tbr, 1000k tbn, 1000k tbc
    [dshow @ 000000000049a5e0] Could not find audio only device with name [Microphone Array (IDT High Definition Audio CODEC)] among source devices of type audio.
    [dshow @ 000000000049a5e0] Searching for audio device within video devices for Microphone Array (IDT High Definition Audio CODEC)
    [dshow @ 000000000049a5e0] Could not find audio only device with name [Microphone Array (IDT High Definition Audio CODEC)] among source devices of type video.
    audio=Microphone Array (IDT High Definition Audio CODEC): I/O error
ffmpeg audio-recording gdi
1个回答
0
投票

Gyan是正确的。使用DirectShow列表中报告的截断表达式有效。

audio="Microphone Array (IDT High Defi"
© www.soinside.com 2019 - 2024. All rights reserved.