当前位置: 技术问答>linux和unix
高分求救, 有谁用过FFMPEG里面的库压缩视频??
来源: 互联网 发布时间:2015-06-17
本文导语: 想用ffmpeg的库压缩从电视卡中读取的图象, 最好给出实例~~~ | #ifndef RECORD_H #define RECORD_H #include "avcodec.h" #include "avformat.h" #include class QRecord { public: static int Open(const char *,int,int,i...
想用ffmpeg的库压缩从电视卡中读取的图象, 最好给出实例~~~
|
#ifndef RECORD_H
#define RECORD_H
#include "avcodec.h"
#include "avformat.h"
#include
class QRecord
{
public:
static int Open(const char *,int,int,int);
static int AddFrame(unsigned char*,unsigned char*,unsigned char*);
static int Close();
static AVCodecContext *c;
static int out_size, outbuf_size;
static FILE *f;
static AVFrame *picture;
static uint8_t *outbuf;
};
#endif
#define RECORD_H
#include "avcodec.h"
#include "avformat.h"
#include
class QRecord
{
public:
static int Open(const char *,int,int,int);
static int AddFrame(unsigned char*,unsigned char*,unsigned char*);
static int Close();
static AVCodecContext *c;
static int out_size, outbuf_size;
static FILE *f;
static AVFrame *picture;
static uint8_t *outbuf;
};
#endif