gpt4 book ai didi

FFmpeg/FFplay directshow 和 blackmagic

转载 作者:行者123 更新时间:2023-12-04 23:03:29 24 4
gpt4 key购买 nike

我得到了一张 BlackMagic intensity pro 4k 采集卡,它在 express 工具上运行良好,我可以看到实时提要和录制,但是在我尝试了与我在网上找到的不同的东西来让 ffplay/ffmpeg 正常工作后,我最终得到了刚刚黑屏。

我检查了我的 ffmpeg 文件的所有版本是否都是 eanable-decklinnk,我已经用最新版本的 api 编译了最新版本,但我仍然得到黑屏而不是实际提要。

ffmpeg -list_devices true -f dshow -i dummy
ffmpeg version N-77245-g7209c94 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (Rev4, Built by MSYS2 project)
configuration: --enable-avisynth --enable-libbluray --enable-libcaca --enable -libass --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libschroedinger --enable-libsoxr --enable-libtwolame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopus --enable-libtesseract --
enable-libdcadec --enable-libbs2b --enable-libmfx --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-opengl --enable-libvpx --enable-libkvaza
ar --enable-libwebp --enable-decklink --enable-libgme --disable-w32threads --enable-opencl --enable-libzimg --enable-openssl --disable-debug
libavutil 55. 10.100 / 55. 10.100
libavcodec 57. 17.100 / 57. 17.100
libavformat 57. 20.100 / 57. 20.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 21.100 / 6. 21.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
[dshow @ 0000000ba36b6480] DirectShow video devices (some may be both video and audio devices)
[dshow @ 0000000ba36b6480] "Blackmagic WDM Capture"
[dshow @ 0000000ba36b6480] Alternative name "@device_pnp_\\?\decklink#avstream#5&2550cef9&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\decklinkcapture1"
[dshow @ 0000000ba36b6480] "Decklink Video Capture"
[dshow @ 0000000ba36b6480] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{44A8B5C7-13B6-4211-BD40-35B629D9E6DF}"
[dshow @ 0000000ba36b6480] DirectShow audio devices
[dshow @ 0000000ba36b6480] "Wej?øcie liniowe (Blackmagic Audio)"
[dshow @ 0000000ba36b6480] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{977E2DB6-B17C-4343-9018-652924C20A8C}"
[dshow @ 0000000ba36b6480] "Decklink Audio Capture"
[dshow @ 0000000ba36b6480] Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{AAA22F7E-5AA0-49D9-8C8D-B52B1AA92EB7}"
dummy: Immediate exit requested

上面的结果告诉我 ffmpeg 可以看到卡片并且我能够打开通信,我检查了一篇帖子,上面说你需要具体显示哪种输入类型,否则它将永远无法工作,我这样做了,但是仍然没有运气。

通过运行上面的命令行,我只能看到黑屏,但实际上看不到错误。

我正在运行 Windows 8.1 64 位。
ffplay  -pixel_format uyvy422 -framerate 25 -f dshow -i video="Decklink Video Capture"  -format x264
ffplay version N-77245-g7209c94 Copyright (c) 2003-2015 the FFmpeg developers
built with gcc 5.2.0 (Rev4, Built by MSYS2 project)
configuration: --enable-avisynth --enable-libbluray --enable-libcaca --enable-libass --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libschroedinger --enable-libsoxr --enable-libtwolame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopus --enable-libtesseract --
enable-libdcadec --enable-libbs2b --enable-libmfx --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-opengl --enable-libvpx --enable-libkvaza
ar --enable-libwebp --enable-decklink --enable-libgme --disable-w32threads --enable-opencl --enable-libzimg --enable-openssl --disable-debug
libavutil 55. 10.100 / 55. 10.100
libavcodec 57. 17.100 / 57. 17.100
libavformat 57. 20.100 / 57. 20.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 21.100 / 6. 21.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
Input #0, dshow, from 'video=Decklink Video Capture': 0B f=0/0
Duration: N/A, start: 0.138773, bitrate: N/A
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 25 tbr,
10000k tbn, 25 tbc
1.51 M-V: -0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0

最佳答案

您必须配置捕获卡的硬件驱动程序以匹配源的帧速率。尽管使用较新的驱动程序版本,桌面视频应该自动检测帧率。我不相信它在 BMD 专有的 Media Express 应用程序之外工作。通常录制未压缩的视频会使用较少的处理能力,因为不需要解码,但是您将需要更高的读/写磁盘速度和可用磁盘空间。

关于FFmpeg/FFplay directshow 和 blackmagic,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34290015/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com