6 int main(
int argc,
char** argv)
12 help +=
"\tavmeta INPUT_FILE [--json][--help]\n";
13 help +=
"Command line options\n";
14 help +=
"\t--json: print properties as json\n";
18 std::cout << help << std::endl;
23 std::vector<std::string> arguments;
24 for(
int argument = 1; argument < argc; ++argument)
26 arguments.push_back(argv[argument]);
28 for(
size_t argument = 0; argument < arguments.size(); ++argument)
30 if(arguments.at(argument) ==
"--help")
32 std::cout << help << std::endl;
35 else if(arguments.at(argument) ==
"--json")
std::string allPropertiesAsJson() const
Return all properties as a json format.
void preloadCodecsAndFormats()
Register all the codecs and formats which are enabled at configuration time.
Implementation of IProgress, to manage cases when we need an IProgress but don't care of a progress b...
static void setLogLevel(const int level)
Set the log level of ffmpeg/libav.