Example for using the videosink class to write a ffmpeg encoded video
- Author
- MIP
#include <iostream>
#include <vector>
#include <string>
#include <VideoSink/VideoSink.hh>
#include <Utils/Param.hh>
using namespace std;
using namespace BIAS;
void Usage(){
cout<<"\n\nUsage: ExampleVideoSink imagelist.lst\n";
cout<<"imagelist.lst is a list containing one filename of in image in each row.\n\n";
}
int main(int argc, char* argv[])
{
if(argc < 2){
Usage();
return -1;
}
std::vector<string> imageList;
if (Param::ParseListFile(argv[1], imageList) != 0){
BIASERR("Could not parse list file."<<argv[1]);
return -1;
}
for (unsigned i = 0; i < imageList.size(); i++)
{
}
cout << "Encoding...\n";
cout << "Done!" << endl;
}