diff --git a/src/converters/dtsc2mp4.cpp b/src/converters/dtsc2mp4.cpp new file mode 100644 index 00000000..f1a03b08 --- /dev/null +++ b/src/converters/dtsc2mp4.cpp @@ -0,0 +1,40 @@ +/// \file dtsc2mp4.cpp +/// Contains the code that will transform any valid DTSC input into valid MP4s. + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include //DTSC support +#include + +///\brief Holds everything unique to converters. +namespace Converters { + + ///\brief Converts DTSC from file to MP4 on stdout. + ///\return The return code for the converter. + int DTSC2MP4(Util::Config & conf){ + DTSC::File input(conf.getString("filename"); + //ftyp box + //pdin box + //moov box + //moof box + //mfra box + //mdat box alot + return 0; + } //FLV2DTSC + +} //Converter namespace + +/// Entry point for DTSC2FLV, simply calls Converters::DTSC2FLV(). +int main(int argc, char ** argv){ + Util::Config conf = Util::Config(argv[0], PACKAGE_VERSION); + conf.addOption("filename", JSON::fromString("{\"arg_num\":1, \"arg\":\"string\", \"help\":\"Filename of the input file to convert.\"}")); + conf.parseArgs(argc, argv); + return Converters::DTSC2MP4(conf); +} //main