ffmpeg:无法识别音频输入设备
Posted
技术标签:
【中文标题】ffmpeg:无法识别音频输入设备【英文标题】:ffmpeg: Audio input device not recognized 【发布时间】:2019-12-05 20:17:38 【问题描述】:我的 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"
通过regedit找到全称:Microphone Array (IDT High Definition Audio CODEC)
为什么找不到音频输入设备?
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 显示的确切字符串。 【参考方案1】:Gyan 是正确的。使用 DirectShow 列表中报告的截断表达式有效。
audio="Microphone Array (IDT High Defi"
【讨论】:
以上是关于ffmpeg:无法识别音频输入设备的主要内容,如果未能解决你的问题,请参考以下文章
AVAudioPlayer 在播放视频时无法识别设备静音按钮
解决ffmpeg使用过程中的痛点——无法识别有空格的文件名:给文件名加上引号即可