ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 5615|回复: 8

[Windows] 请教window下采用msys2编译ffmpeg不能录视频的问题

[复制链接]
发表于 2021-6-19 20:20:16 | 显示全部楼层 |阅读模式
本帖最后由 zhouyh 于 2021-6-19 20:30 编辑

用摄像头录视频的时候,没有报错,程序直接退出了,请问是什么问题,缺少哪些参数?
编译参数:
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
  built with 用于 x86 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版
  configuration: --prefix=../output32 --toolchain=msvc --arch=x86 --enable-libx264 --enable-shared --disable-static --arch=x86 --enable-gpl --enable-yasm --enable-asm --disable-w32threads --enable-ffplay --disable-doc --enable-small



D:\Soft\msys2\x86\ffmpeg-4.4\ffmpeg\output32\bin>ffmpeg -list_devices true -f dshow -i dummy
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
  built with 用于 x86 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版
  configuration: --prefix=../output32 --toolchain=msvc --arch=x86 --enable-libx264 --enable-shared --disable-static --arch=x86 --enable-gpl --enable-yasm --enable-asm --disable-w32threads --enable-ffplay --disable-doc --enable-small
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[dshow @ 009D9180] DirectShow video devices (some may be both video and audio devices)
[dshow @ 009D9180]  "Integrated Camera"
[dshow @ 009D9180]     Alternative name "@device_pnp_\\?\usb#vid_04f2&pid_b6d9&mi_00#6&850bcba&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
[dshow @ 009D9180]  "USB Video Device"
[dshow @ 009D9180]     Alternative name "@device_pnp_\\?\usb#vid_1bcf&pid_2288&mi_00#7&12d96aab&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
[dshow @ 009D9180] DirectShow audio devices
[dshow @ 009D9180]  "麦克风 (5-  Microphone)"
[dshow @ 009D9180]     Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{06CF3887-28D3-4A5B-837A-2F6AD63616D4}"
[dshow @ 009D9180]  "麦克风阵列 (英特尔® 智音技术)"
[dshow @ 009D9180]     Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{F9657AB8-6E32-4096-AB16-86C7CD6D74F0}"
dummy: Immediate exit requested

D:\Soft\msys2\x86\ffmpeg-4.4\ffmpeg\output32\bin>ffmpeg -f dshow -i video="Integrated Camera" out.mp4
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
  built with 用于 x86 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版
  configuration: --prefix=../output32 --toolchain=msvc --arch=x86 --enable-libx264 --enable-shared --disable-static --arch=x86 --enable-gpl --enable-yasm --enable-asm --disable-w32threads --enable-ffplay --disable-doc --enable-small
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100

D:\Soft\msys2\x86\ffmpeg-4.4\ffmpeg\output32\bin>ffmpeg -f dshow -i video="Integrated Camera" out.mp4
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
  built with 用于 x86 的 Microsoft (R) C/C++ 优化编译器 19.16.27045 版
  configuration: --prefix=../output32 --toolchain=msvc --arch=x86 --enable-libx264 --enable-shared --disable-static --arch=x86 --enable-gpl --enable-yasm --enable-asm --disable-w32threads --enable-ffplay --disable-doc --enable-small
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100

回复

使用道具 举报

发表于 2021-6-20 21:38:59 | 显示全部楼层
从打印的信息看,似乎并没有获得到输入信息
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-5-4 18:02 , Processed in 0.066033 second(s), 17 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表