Ffmpeg 线程消息队列阻塞

Ffmpeg 线程消息队列阻塞,ffmpeg,Ffmpeg,使用此命令: ffmpeg -rtbufsize 1500M -f dshow -i audio="Microphone (Realtek High Definition Audio)" -f -y -rtbufsize 100M -f gdigrab -t 00:00:30 -framerate 30 -probesize 10M -draw_mouse 1 -i desktop -c:v libx264 -r 30 -preset fast -tune zerolaten

使用此命令:

ffmpeg -rtbufsize 1500M -f dshow -i audio="Microphone (Realtek High Definition Audio)" -f -y -rtbufsize 100M -f gdigrab -t 00:00:30 -framerate 30 -probesize 10M -draw_mouse 1 -i desktop -c:v libx264 -r 30 -preset fast -tune zerolatency -crf 25 -pix_fmt yuv420p "XXXXXX"
...
[dshow @ 05bdd9c0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[gdigrab @ 05c51800] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)

以上是我收到的信息。如何解决此问题?

在每个
-i
之前添加
-thread\u queue\u size
,并增加值,直到消息消失:

ffmpeg -y -rtbufsize 1500M -f dshow -thread_queue_size 512 -i audio="Microphone (Realtek High Definition Audio)" -f -rtbufsize 100M -f gdigrab -t 00:00:30 -framerate 30 -probesize 10M -draw_mouse 1 -thread_queue_size 512 -i desktop -c:v libx264 -preset fast -tune zerolatency -crf 25 -pix_fmt yuv420p "XXXXXX"

线程消息在录制后现在没有显示,而在播放视频时,它被卡住了一段时间后,它没有录制whloe视频。