opencv FFMpeg写视频报错 [mp4 @ 0xcb0f40] Tag mp4v/0x7634706d incompatible with output codec id '13

2 篇文章 0 订阅
1 篇文章 0 订阅

原文链接

https://blog.csdn.net/zhrh0096/article/details/20999291
https://blog.csdn.net/qq_16540387/article/details/93379539

1. 视频结构

一个视频由压缩格式(container, eg. avi, mkv…)和封装格式(codec, eg. H264, DIVX)组成.

详细解释:
For start, you should have an idea of just how a video file looks. Every video file in itself is a container. The type of the container is expressed in the files extension (for example avi, mov or mkv). This contains multiple elements like: video feeds, audio feeds or other tracks (like for example subtitles). How these feeds are stored is determined by the codec used for each one of them. In case of the audio tracks commonly used codecs are mp3 or aac. For the video files the list is somehow longer and includes names such as XVID, DIVX, H264 or LAGS (Lagarith Lossless Codec). The full list of codecs you may use on a system depends on just what one you have installed.
在这里插入图片描述

2. Linux下opencv对container和codec的支持

Linux下opencv对codec的支持由系统的FFMpeg库决定, 而container, opencv目前好像只支持avi.
如果出现"[mp4 @ 0xcb0f40] Tag mp4v/0x7634706d incompatible with output codec id ‘13’“等类似错误, 是由于输出视频的后缀不是”.avi"引起.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值