#include <iostream>
void usage(const char *name) {
std::cout << "usage :\n\n";
std::cout << "\t " << name << " input_av_color_video ";
std::cout << std::endl;
}
int main(int argc, char* argv[])
{
if (argc < 2) {
usage(*argv);
return 0;
}
std::string test_name(*argv);
std::string filename(argv[1]);
std::string ext;
std::string output_base;
try{
}catch(std::exception & exc){
std::cerr << exc.what() << '\n';
}
std::cout << "Video size = " << nbframes << " frames, "
<< width << " x " << height << "\n";
std::cout << "frame per sec = " << double(t_base.den) / double(t_base.num) << " , bit rate = "
<< bit_rate << "\n";
width,height,nbframes,bit_rate,t_base,0,CODEC_ID_MPEG4);
for(int i=0; i<10; ++i){
coul_avread.
read(coul_video);
std::cout <<
" total nb of frames = " << coul_avread.
get_nb_frames() <<
"\n";
VideoCoulWriter.write(coul_video);
}
std::cout << output_base + "_out" + ext << " written.\n";
std::cout << test_name << " successful executed.\n";
return 0;
}