This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
prpa/src/encoder/video_writer.hh
Delalande Ivan cbc9a7a686 Implemented a video reader and writer with OpenCV.
The program now works as a video cat or converter :
./prpa -c MP42 -o /tmp/bar.avi /tmp/foo.flv
-c specify a 4-letter codec to be used for the output file and follow a strict
code defined on this page : http://www.fourcc.org/codecs.php
The file output extension *does* matter and must match the selected output
codec.
2012-07-12 10:42:38 +02:00

18 lines
330 B
C++

#ifndef VIDEO_WRITER_HH_
# define VIDEO_WRITER_HH_
# include <string>
# include "video.hh"
class VideoWriter: public Video
{
public:
void write();
bool open(std::string filename, std::string enc,
int fps, int width, int height);
private:
cv::VideoWriter writer_;
};
#endif /* !VIDEO_WRITER_HH_ */