当前位置:   article > 正文

解决:OpenCV: FFMPEG: tag 0x5634504d/‘MP4V‘ is not supported with codec id 12 and format ‘mp4 / MP4_opencv: ffmpeg: tag 0x5634504d/'mp4v' is not suppo

opencv: ffmpeg: tag 0x5634504d/'mp4v' is not supported with codec id 12 and

代码:

fourcc = cv2.VideoWriter_fourcc('M', 'P', '4', 'V') 

问题描述:

利用python 的opencv包把图片合并为视频(mp4格式)时出现如下报错:

OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'

OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'

解决办法:

将'M', 'P', '4', 'V'改成小写即可

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/484812
推荐阅读
相关标签
  

闽ICP备14008679号