Audio 在ffmpeg中使用蓝牙耳机设备作为音频源
我想使用蓝牙耳机作为录制视频的音频源。 我可以使用Audio 在ffmpeg中使用蓝牙耳机设备作为音频源,audio,bluetooth,ffmpeg,raspberry-pi,Audio,Bluetooth,Ffmpeg,Raspberry Pi,我想使用蓝牙耳机作为录制视频的音频源。 我可以使用arecord-D bluetooth-fs16_le-c1-r8000命令并将音频传输到ffmpeg。但这会导致音频和视频的同步问题。所以我想在没有录音带的情况下捕捉音频。如何在ffmpeg命令中将蓝牙设备定义为音频源 我的asoundrc文件: pcm.bluetooth { type bluetooth profile "auto" } ctl.bluetooth {
arecord-D bluetooth-fs16_le-c1-r8000
命令并将音频传输到ffmpeg。但这会导致音频和视频的同步问题。所以我想在没有录音带的情况下捕捉音频。如何在ffmpeg命令中将蓝牙设备定义为音频源
我的asoundrc文件:
pcm.bluetooth {
type bluetooth
profile "auto"
}
ctl.bluetooth {
type bluetooth
}
在深入研究了ffmpeg文档之后,我通过蓝牙耳机和ffmpeg录制了声音。 首先是我的/etc/asound.cnf:
pcm.btheadset {
type plug
slave {
pcm {
type bluetooth
profile "auto"
}
}
hint {
show on
description "BT Headset"
}
}
ctl.btheadset {
type bluetooth
}
然后,使用以下命令可以录制声音:
ffmpeg -y -f alsa -ac 1 -ar 8000 -i btheadset alsaout.wav