ffmpeg录屏失败Could not find output pin from video capture device.video=screen-capture-recorder:I/Oerror

当前ffmpeg版本5.0,最新的 Setup Screen Capturer Recorder v0.12.11.exe

执行大家推荐的录屏命令报错 

C:\Users\y1>ffmpeg -list_devices true -f dshow -i dummy
ffmpeg version 5.0.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev7, Built by MSYS2 project)
[dshow @ 000001ad1e6b5400] "screen-capture-recorder" (video)
[dshow @ 000001ad1e6b5400]   Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{4EA69364-2C8A-4AE6-A561-56E4B5044439}"
[dshow @ 000001ad1e6b5400] "virtual-audio-capturer" (audio)
[dshow @ 000001ad1e6b5400]   Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{8E146464-DB61-4309-AFA1-3578E927E935}"
dummy: Immediate exit requested

C:\Users\y1>ffmpeg -loglevel info   -f dshow   -i video="screen-capture-recorder"  -f dshow -audio_device_number 0 -i audio="virtual-audio-capturer"    -f mp4 "Temp/1.mp4" -y
ffmpeg version 5.0.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
[dshow @ 0000022023535f80] Could not find output pin from video capture device.
video=screen-capture-recorder: I/O error

但是使用录屏工具本身可以成功,所以排除录屏组件问题。采用录屏工具的ffmpeg命令也同样错误,这是我发现可能用的不是同一个ffmpeg,果然在工具目录发现它自带了一个,版本是

C:\Program Files (x86)\Screen Capturer Recorder\configuration_setup_utility\vendor\ffmpeg

ffmpeg version N-44080-gdfb4757 Copyright (c) 2000-2012 the FFmpeg developers

果然,在这个目录下的ffmpeg可以执行dshow录屏命令

  • 3
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值