#ifndef _FFMPEG_VIDEO_ENCODE_PROP_H_
|
#define _FFMPEG_VIDEO_ENCODE_PROP_H_
|
|
#include <string>
|
extern "C"{
|
#include <libavutil/avutil.h>
|
}
|
|
struct AVDictionary;
|
|
namespace ffwrapper{
|
class VideoProp
|
{
|
public:
|
VideoProp();
|
~VideoProp();
|
|
public:
|
bool rtspStream();
|
AVDictionary *optsFormat();
|
std::string preset();
|
std::string filter_desc();
|
std::string url(){return url_;}
|
|
bool gpuAccl(){return gpu_acc_;}
|
public:
|
std::string url_;
|
bool transcode_;
|
bool rtsp_tcp_;
|
|
int fps_;
|
int bit_rate_;
|
int width_;
|
int height_;
|
|
int quality_;
|
|
int udp_port_x_;
|
int udp_port_y_;
|
|
bool gpu_acc_;
|
int gpu_index_;
|
|
AVRational sample_aspect_ratio_;
|
|
};
|
}
|
#endif
|