视频帧提取 [英] video frames Extraction

查看:92
本文介绍了视频帧提取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  hi   i  找到   文章 此处    site   about   video   frames  提取
i em 尝试 < span class =code-leadattribute> to
run source code given here ..
i created a new project 已添加 给定 C 代码 it
然后 i 已添加 < span class =code-leadattribute> 给定 参考 interop dexterlib .dll in it

给出 一个 错误 about MediaDetClass
错误 1
Interop type 'DexterLib .MediaDetClass'不能 embedded 使用 适用 interface 而不是


< pre lang =cs> using system;
使用 系统。绘制;
使用 系统绘图 .Imaging;
使用 系统 Windows 。形式;
使用 System .Data;
使用 System .Collections;
使用 System .ComponentModel;
使用 系统运行时 .InteropServices;
使用 System .IO;
使用 System .Threading;

使用 DexterLib;

命名空间 imageExtractor
{
public class Form1 System.Windows.Forms.Form
{
string fileName;
// 用于保存电影文件名
string storagePath; // 用于保存文件的路径
MediaDetClass md;提取图片需要 // ==================== ===>>>这里是Errorrr
static int 计数器 = 0; // 生成不同的文件名
float interval = 1 0F; // 默认时间间隔
..
..
。 。
..
< / pre >

i 跳过 剩余 代码只是 提及 area where errror 已发生
solv < span class =code-leadattribute> it i em 获取

解决方案

我有一个不同的想法,对我来说总是很好。请参阅我以前的回答:如何在C#中将图像转换为视频 [ ^ ]。

-SA

hi i found an article here in this site about video frames extraction.
i em trying to run the source code given here..
i created a new project added the given C# code in it.
then i added the given reference " interop.dexterlib.dll" in it.

it gives an error about MediaDetClass.
Error   1
Interop type 'DexterLib.MediaDetClass' cannot be embedded. Use the applicable interface instead.


<pre lang="cs">using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;
using System.Data;
using System.Collections;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.IO;
using System.Threading;

using DexterLib;

namespace imageExtractor
{
    public class Form1 : System.Windows.Forms.Form
    {
        string fileName;           //used to save the movie file name
        string storagePath;        //used for the path where we save files
        MediaDetClass md;          //needed to extract pictures  =======================>>> here is the Errorrr
        static int counter = 0;    //to generate different file names
        float interval = 1.0f;     //default time interval
..
..
..
..
</pre>

i have skipped remaining code. just mentioning the area where errror has occured.
how to solv it i em not getting it.

解决方案

I have a different idea which always worked well for me. Please see my past answer: how to convert image to video in C#[^].
—SA


这篇关于视频帧提取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆