47 #ifndef vpVideoWriter_H
48 #define vpVideoWriter_H
52 #include <visp/vpImageIo.h>
53 #include <visp/vpFFMPEG.h>
136 #ifdef VISP_HAVE_FFMPEG
142 unsigned int bit_rate;
158 vpVideoFormatType formatType;
161 char fileName[FILENAME_MAX];
170 unsigned int frameCount;
173 unsigned int firstFrame;
204 #ifdef VISP_HAVE_FFMPEG
212 inline void setBitRate(
const unsigned int bit_rate) {this->bit_rate = bit_rate;}
223 inline void setCodec(
const CodecID codec) {this->codec = codec;}
226 void setFileName(
const char *filename);
227 void setFileName(
const std::string &filename);
236 vpVideoFormatType getFormat(
const char *filename);
237 static std::string getExtension(
const std::string &filename);
void setCodec(const CodecID codec)
void setBitRate(const unsigned int bit_rate)
unsigned int getCurrentFrameIndex() const
Class that enables to write easily a video file or a sequence of images.
This class interfaces the FFmpeg library to enable the reading of video files.
void setFirstFrameIndex(const unsigned int firstFrame)