I am working on an application that records portion of Windows desktop screen using FFmpeg. It works fine using command like this
ffmpeg -f dshow -i audio="Microphone (Realtek Audio)" -f gdigrab -offset_x 0 -offset_y 0 -video_size 300x200 -i desktop -pix_fmt yuv420p -c:v libx264 -r 15 output.mp4
But when I change audio source to my bluetooth headset, FFmpeg just hangs and doesn't start recording. Here is same command with bluetooth audio device
ffmpeg -f dshow -i audio="Headset (QCY-T1_R Hands-Free AG Audio)" -f gdigrab -offset_x 0 -offset_y 0 -video_size 300x200 -i desktop -pix_fmt yuv420p -c:v libx264 -r 15 output1.mp4
Can you please suggest how can we solve this?