zhouyh 发表于 2021-6-19 20:20:16

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

本帖最后由 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
DirectShow video devices (some may be both video and audio devices)
"Integrated Camera"
   Alternative name "@device_pnp_\\?\usb#vid_04f2&pid_b6d9&mi_00#6&850bcba&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
"USB Video Device"
   Alternative name "@device_pnp_\\?\usb#vid_1bcf&pid_2288&mi_00#7&12d96aab&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
DirectShow audio devices
"麦克风 (5-Microphone)"
   Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{06CF3887-28D3-4A5B-837A-2F6AD63616D4}"
"麦克风阵列 (英特尔® 智音技术)"
   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

从打印的信息看,似乎并没有获得到输入信息
页: [1]
查看完整版本: 请教window下采用msys2编译ffmpeg不能录视频的问题