Started DTSC to MP4 conversion tool

This commit is contained in:
Oswald de Bruin 2013-05-17 15:30:19 +02:00 committed by Erik Zandvliet
parent 4b63cce26a
commit ef268f978f

View file

@ -0,0 +1,40 @@
/// \file dtsc2mp4.cpp
/// Contains the code that will transform any valid DTSC input into valid MP4s.
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstdlib>
#include <cstdio>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <mist/dtsc.h> //DTSC support
#include <mist/config.h>
///\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