37 #include <VideoSink/VideoSink.hh>
38 #include <Utils/Param.hh>
44 cout<<
"\n\nUsage: ExampleVideoSink imagelist.lst\n";
45 cout<<
"imagelist.lst is a list containing one filename of in image in each row.\n\n";
49 int main(
int argc,
char* argv[])
56 std::vector<string> imageList;
57 if (Param::ParseListFile(argv[1], imageList) != 0){
58 BIASERR(
"Could not parse list file."<<argv[1]);
62 for (
unsigned i = 0; i < imageList.size(); i++)
70 cout <<
"Encoding...\n";
72 cout <<
"Error: " << vs.
GetErrMsg() << endl;
74 cout <<
"Done!" << endl;
void SetFPS(float FPS)
Set the framerate for the video.
bool Encode()
Encode the video.
VideoSink for writing FFMPEG Videos from images.
std::string GetErrMsg()
Return the last produced errormessage.
void SetBPP(double BPP)
Set the bits per pixel of the output video.
void SetOutputVideo(std::string Video)
Set the file where the video will be written to.
void AddImage(std::string Image)
Append an image to the end of the list.