Started DTSC to MP4 conversion tool
This commit is contained in:
parent
4b63cce26a
commit
ef268f978f
1 changed files with 40 additions and 0 deletions
40
src/converters/dtsc2mp4.cpp
Normal file
40
src/converters/dtsc2mp4.cpp
Normal 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
|
Loading…
Add table
Reference in a new issue