video - 使用 ffmpeg 使用 Windows 7 从 Decklink 卡捕获(和录制)音频和视频

标签 video ffmpeg sdi

我是 ffmpeg 新手。我正在尝试从 Decklink 捕获设备捕获视频 + 音频。但是我遇到了一些问题,我不知道连接到 Decklink 卡的 SDI 端口的当前视频 + 音频源使用哪个流。谁能告诉我如何找到流媒体信息。

这是我的信息:

ffmpeg -list_devices true -f dshow -i 虚拟

C:\Users\Streaming>ffmpeg -list_devices true -f dshow -i dummy ffmpeg version N-52941-g13cb6ed Copyright (c) 2000-2013 the FFmpeg developers built on May 9 2013 17:24:42 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrn b --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libr tmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheo ra --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena ble-zlib libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [dshow @ 0000000000306d00] DirectShow video devices [dshow @ 0000000000306d00] "Blackmagic WDM Capture" [dshow @ 0000000000306d00] "Decklink Video Capture" [dshow @ 0000000000306d00] DirectShow audio devices [dshow @ 0000000000306d00] "Line In (High Definition Audio " [dshow @ 0000000000306d00] "Decklink Audio Capture" [dshow @ 0000000000306d00] "Microphone (Total Recorder WDM " dummy: Immediate exit requested

ffmpeg -list_options true -f dshow -i video="Decklink 视频捕获"

C:\Users\Streaming>ffmpeg -list_options true -f dshow -i video="Decklink Video C apture" ffmpeg version N-52941-g13cb6ed Copyright (c) 2000-2013 the FFmpeg developers built on May 9 2013 17:24:42 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrn b --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libr tmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheo ra --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena ble-zlib libavutil 52. 30.100 / 52. 30.100 libavcodec 55. 7.100 / 55. 7.100 libavformat 55. 4.101 / 55. 4.101 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 63.101 / 3. 63.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [dshow @ 00000000002fa080] DirectShow video device options [dshow @ 00000000002fa080] Pin "Capture" [dshow @ 00000000002fa080]
pixel_format=uyvy422 min s=720x486 fps=29.97 max s =720x486 fps=29.97 [dshow @ 00000000002fa080] pixel_format=uyvy422 min s=720x486 fps=23.976 max s=720x486 fps=23.976 [dshow @ 00000000002fa080] pixel_format=uyvy422 min s=720x576 fps=25 max s=72 0x576 fps=25 [dshow @ 00000000002fa080] pixel_format=uyvy422 min s=1920x1080 fps=23.976 ma x s=1920x1080 fps=23.976 [dshow @ 00000000002fa080] pixel_format=uyvy422 min s=1920x1080 fps=24 max s= 1920x1080 fps=24 [dshow @ 00000000002fa080] pixel_format=uyvy422 min s=1920x1080 fps=25 max s= 1920x1080 fps=25 [dshow @ 00000000002fa080] pixel_format=uyvy422 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97 [dshow @ 00000000002fa080]
pixel_format=uyvy422 min s=1920x1080 fps=30 max s= 1920x1080 fps=30 [dshow @ 00000000002fa080] pixel_format=uyvy422 min s=1280x720 fps=50 max s=1 280x720 fps=50 [dshow @ 00000000002fa080]
pixel_format=uyvy422 min s=1280x720 fps=59.9402 ma x s=1280x720 fps=59.9402 [dshow @ 00000000002fa080] pixel_format=uyvy422 min s=1280x720 fps=60.0002 ma x s=1280x720 fps=60.0002 [dshow @ 00000000002fa080] vcodec=v210 min s=720x486 fps=29.97 max s=720x486 fps=29.97 [dshow @ 00000000002fa080] vcodec=v210 min s=720x486 fps=23.976 max s=720x486 fps=23.976 [dshow @ 00000000002fa080]
vcodec=v210 min s=720x576 fps=25 max s=720x576 fps =25 [dshow @ 00000000002fa080] vcodec=v210 min s=1920x1080 fps=23.976 max s=1920x 1080 fps=23.976 [dshow @ 00000000002fa080]
vcodec=v210 min s=1920x1080 fps=24 max s=1920x1080 fps=24 [dshow @ 00000000002fa080] vcodec=v210 min s=1920x1080 fps=25 max s=1920x1080 fps=25 [dshow @ 00000000002fa080] vcodec=v210 min s=1920x1080 fps=29.97 max s=1920x1 080 fps=29.97 [dshow @ 00000000002fa080] vcodec=v210 min s=1920x1080 fps=30 max s=1920x1080 fps=30 [dshow @ 00000000002fa080] vcodec=v210 min s=1280x720 fps=50 max s=1280x720 f ps=50 [dshow @ 00000000002fa080]
vcodec=v210 min s=1280x720 fps=59.9402 max s=1280x 720 fps=59.9402 [dshow @ 00000000002fa080] vcodec=v210 min s=1280x720 fps=60.0002 max s=1280x 720 fps=60.0002 video=Decklink Video Capture: Immediate exit requested

最佳答案

您需要指定输入格式的设置才能使其正常工作。看看这个article .

如果它没有完全解决您的问题,请尝试此 question .

关于video - 使用 ffmpeg 使用 Windows 7 从 Decklink 卡捕获(和录制)音频和视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23147184/

相关文章:

video - ffmpeg concat 使视频变长

ffmpeg - 如何在python中将wav音频文件转换为aac?

jsp - 服务器端包含和Sling动态包含之间的区别?

c++ - 如何自定义我的按钮?

flash - Video 对象和 FLVPlayback 组件有什么区别?

video - 无需下载整个视频即可生成屏幕截图

ffmpeg - 在 ffmpeg 的 showwaves 中使用十六进制颜色

c# - 将 SDI 转换为 MDI

iphone - iOS - 在导航更改时停止视频

video - 直接从 Mp4 生成 Gif - ffmpeg