首页 新闻 会员 周边 捐助

OpenCvSharp FourCC 是怎么和视频的类型做对应的?

0
悬赏园豆:10 [已关闭问题] 关闭于 2021-01-06 16:34

以下代码摘自OpenCvSharp


    //
    // 摘要:
    //     4-character code of codec used to compress the frames.
public readonly struct FourCC : IEquatable<FourCC>
    {
        public const int Default = -1;
        public const int Prompt = -1;
        public static readonly int MP42;
        public static readonly int IYUV;
        public static readonly int MJPG;
        public static readonly int M4S2;
        public static readonly int X264;
        public static readonly int MP43;
        public static readonly int MP4S;
        public static readonly int MP4V;
        public static readonly int MPG1;
        public static readonly int MPG2;
        public static readonly int MPG4;
        public static readonly int MSS1;
        public static readonly int MSS2;
        public static readonly int MSVC;
        public static readonly int JPEG;
        public static readonly int PIM1;
        public static readonly int WMV1;
        public static readonly int WMV2;
        public static readonly int WMV3;
        public static readonly int IYUB;
        public static readonly int IV50;
        public static readonly int IV41;
        public static readonly int IV32;
        public static readonly int AVC;
        public static readonly int CVID;
        public static readonly int DIB;
        public static readonly int DIV3;
        public static readonly int DIVX;
        public static readonly int DV25;
        public static readonly int DV50;
        public static readonly int DVC;
        public static readonly int WVC1;
        public static readonly int DVH1;
        public static readonly int DVSD;
        public static readonly int DVSL;
        public static readonly int H261;
        public static readonly int H263;
        public static readonly int H264;
        public static readonly int H265;
        public static readonly int HEVC;
        public static readonly int I420;
        public static readonly int DVHD;
        public static readonly int XVID;
}

问题

这么多压缩格式,哪些是.avi格式可以用的?哪些是.mp4格式可以用的?`

echo_lovely的主页 echo_lovely | 小虾三级 | 园豆:1546
提问于:2021-01-06 16:01
< >
分享
所有回答(1)
0

我试出来了
.MP4格式对应着MPG4

echo_lovely | 园豆:1546 (小虾三级) | 2021-01-06 16:34

其他的不清楚

支持(0) 反对(0) echo_lovely | 园豆:1546 (小虾三级) | 2021-01-06 16:35

https://github.com/shimat/opencvsharp/wiki/Video-Writer

这个东西,官方demo写的是 .AVI 对应默认,但是win10的播放器打不开,我也不知道官方demo对不对

支持(0) 反对(0) echo_lovely | 园豆:1546 (小虾三级) | 2021-01-06 16:37
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册