47 #ifndef vpVideoWriter_H
48 #define vpVideoWriter_H
52 #include <visp/vpImageIo.h>
53 #include <visp/vpFFMPEG.h>
138 #ifdef VISP_HAVE_FFMPEG
142 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54,51,110) // libavcodec 54.51.100
147 unsigned int bit_rate;
165 vpVideoFormatType formatType;
168 char fileName[FILENAME_MAX];
177 unsigned int frameCount;
180 unsigned int firstFrame;
211 #ifdef VISP_HAVE_FFMPEG
219 inline void setBitRate(
const unsigned int bitrate) {this->bit_rate = bitrate;}
232 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54,51,110) // libavcodec 54.51.100
233 inline void setCodec(
const CodecID codec_id) {this->codec = codec_id;}
235 inline void setCodec(
const AVCodecID codec_id) {this->codec = codec_id;}
239 void setFileName(
const char *filename);
240 void setFileName(
const std::string &filename);
247 #ifdef VISP_HAVE_FFMPEG
256 this->framerate = frame_rate;
261 vpVideoFormatType getFormat(
const char *filename);
262 static std::string getExtension(
const std::string &filename);
void setBitRate(const unsigned int bitrate)
unsigned int getCurrentFrameIndex() const
void setFirstFrameIndex(const unsigned int first_frame)
void setCodec(const AVCodecID codec_id)
Class that enables to write easily a video file or a sequence of images.
This class interfaces the FFmpeg library to enable video stream reading or writing.
void setFramerate(const int frame_rate)