当前位置:网站首页>如何使用OpenCV保存.mp4格式文件
如何使用OpenCV保存.mp4格式文件
2022-07-15 16:39:00 【嘿嘿骑士】
fourcc = cv2.VideoWriter_fourcc(*'mp4v')
out_cat = cv2.VideoWriter("save.mp4", fourcc, 24, (640, 360), True) # 保存位置/格式
out_cat.write(image) # 保存视频
注意事项:
①mp4v不能写作MP4V
②不能中途停止运行程序,否则保存的.mp4文件无法播放
(保存为.avi格式的视频,中途停止运行程序,保存的视频可以正常播放)
边栏推荐
- 08目标检测数据集半自动化标注
- Redis(二)Redis的三种特殊类型
- Special topic of software R & D efficiency demand value stream analysis
- R language dplyr package summary_ The at function calculates the count number, mean value and median of multiple data columns (specified by vectors) in the dataframe data, and uses the list function t
- FFmpeg 音视频转封装(MP4与FLV互转,流数据转FLV、MP4)
- 【LeetCode】26、删除有序数组中的重复项
- yolact模型结构探索
- leetcode:330. Complete the array as required
- Face the object
- Matlab-mex
猜你喜欢

How to apply knowledge management in enterprise work to solve enterprise problems?

D3.js打造酷炫圆弧图

Ffmpeg audio and video unpacking

MP4 file introduction

Domain Driven Design Fundamentals

探秘ZGC

MySQL数据库安装&问题

How to break the magic spell with a good hand in the strong B & B industry?

Symbol data type

flink. 14. How is the underlying layer of datastream module source implemented?
随机推荐
Gurobi——GRBEnv
CDQ分治与整体二分 学习笔记
[C #] commonly used utils
regular expression
How to apply knowledge management in enterprise work to solve enterprise problems?
YOLOv3训练数据处理解析
D3.js打造酷炫圆弧图
08目标检测数据集半自动化标注
MQ系列2:消息中间件的技术选型
不能不知道的分布式基础理论
New usage and deconstruction assignment of data types
华为云Stack南向开放框架,帮助生态伙伴高效入云
Among the top 50 intelligent operation and maintenance enterprises in 2022, Borui data strength was selected
Application du moteur de visualisation Web de topologie dans le domaine de la simulation et de l'analyse
Redis(二)Redis的三种特殊类型
领域驱动设计基础
R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses exp function, confint function and coef function to obtain the corr
Redis (II) three special types of redis
Functions and symbols
Iterators and generators