解决方法:OpenCV: FFMPEG: tag 0x00000898/'???' is not found (format 'avi / AVI (Audio Video Interleaved)

在Windows 10上运行OpenCV时遇到'FFMPEG: tag 0x00000898/'???' not found (format 'avi / AVI (Audio Video Interleaved)'的错误。通过下载最新静态构建的ffmpeg并配置环境变量,解决了此问题。在代码中将视频输出格式改为mp4,例如:cv::VideoWriter writer("VideoTest.mp4", cv::CAP_OPENCV_MJPEG, rate, videoSize)。" 103280270,9184165,memset与0赋值的差异分析,"['C语言', '内存管理', '汇编语言', '程序优化']
摘要由CSDN通过智能技术生成

I couldn't get that code to run on my Windows 10 machine either.

So here's what I did:

  1. I followed these instructions and installed the latest ffmpeg build on machine:

     

     

    1. Download the latest static build for Windows and then extract the files. You may need 7zip to extract.
    2. Create a folder in C:\ called ffmpeg
    3. Copy the contents of the extracted files into C:\ffmpeg
    4. Edit your PATH environment variable to append at the end the following entry: C:\ffmpeg\bin;
    5. Confirm that everything is working correct by opening a cmd prompt and enter the following (Note you might need to run cmd as administrator): ffmpeg -version

    我通过这些步骤,通过安装最新的ffmpeg 在机器上 

    1.下载最新的static build for

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值