diff --git a/Makefile b/Makefile index 843df3f7..01845249 100644 --- a/Makefile +++ b/Makefile @@ -162,10 +162,6 @@ converters: MistDTSC2SRT MistDTSC2SRT: src/converters/dtsc2srt.cpp $(CXX) $(LDFLAGS) $(CPPFLAGS) $^ $(LDLIBS) -o $@ -converters: MistDTSC2MP4 -MistDTSC2MP4: src/converters/dtsc2mp4.cpp - $(CXX) $(LDFLAGS) $(CPPFLAGS) $^ $(LDLIBS) -o $@ - BUILT_SOURCES=controller/server.html.h connectors/embed.js.h lspSOURCES=lsp/jquery.js lsp/placeholder.js lsp/md5.js lsp/main.js lsp/pages.js lsp/tablesort.js lspDATA=lsp/header.html lsp/main.css lsp/footer.html diff --git a/src/connectors/conn_http_dynamic.cpp b/src/connectors/conn_http_dynamic.cpp index 62084ae9..c0675ce2 100644 --- a/src/connectors/conn_http_dynamic.cpp +++ b/src/connectors/conn_http_dynamic.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include diff --git a/src/connectors/conn_http_live.cpp b/src/connectors/conn_http_live.cpp index 54d5e252..9372635c 100644 --- a/src/connectors/conn_http_live.cpp +++ b/src/connectors/conn_http_live.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/src/connectors/conn_http_progressive_ogg.cpp b/src/connectors/conn_http_progressive_ogg.cpp index 51b1fd20..003a58e4 100644 --- a/src/connectors/conn_http_progressive_ogg.cpp +++ b/src/connectors/conn_http_progressive_ogg.cpp @@ -43,7 +43,6 @@ namespace Connector_HTTP { std::map > DTSCBuffer; //std::map prevGran; std::vector curSegTable; - long long int currID = 0; std::string sendBuffer; unsigned int lastStats = 0;//Indicates the last time that we have sent stats to the server socket. diff --git a/src/connectors/conn_http_smooth.cpp b/src/connectors/conn_http_smooth.cpp index 3bd26d08..cfd745c6 100644 --- a/src/connectors/conn_http_smooth.cpp +++ b/src/connectors/conn_http_smooth.cpp @@ -21,6 +21,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/src/connectors/conn_ts.cpp b/src/connectors/conn_ts.cpp index 645b6d48..0809257b 100644 --- a/src/connectors/conn_ts.cpp +++ b/src/connectors/conn_ts.cpp @@ -22,6 +22,7 @@ #include //TS support #include //DTSC support #include //For initdata conversion +#include ///\brief Holds everything unique to the TS Connector namespace Connector_TS { diff --git a/src/converters/dtsc2mp4.cpp b/src/converters/dtsc2mp4.cpp deleted file mode 100644 index 7f3e8a1c..00000000 --- a/src/converters/dtsc2mp4.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/// \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 -#include -#include //DTSC support -#include //MP4 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"));//DTSC input - - //DTSC::readOnlyMeta fileMeta = input.getMeta(); - DTSC::Meta giveMeta(input.getMeta()); - - MP4::DTSC2MP4Converter Conv;//DTSC to MP4 converter class will handle header creation and media parsing - std::cout << Conv.DTSCMeta2MP4Header(giveMeta);//Creating and outputting MP4 header from DTSC file - - //initialising JSON input - std::set selector; - JSON::Value tmp = input.getMeta().toJSON(); - for (JSON::ObjIter trackIt = tmp["tracks"].ObjBegin(); trackIt != tmp["tracks"].ObjEnd(); trackIt++){ - selector.insert(trackIt->second["trackid"].asInt()); - } - input.selectTracks(selector); - input.seek_time(0); - input.seekNext(); - - //Parsing rest of file - while (input.getJSON()){//as long as the file goes - Conv.parseDTSC(input.getJSON());//parse 1 file DTSC packet - if(Conv.sendReady()){//if the converter has a part to send out - std::cout << Conv.sendString();//send out and clear Converter buffer - } - input.seekNext();//get next DTSC packet - } - //output remaining buffer - std::cout << Conv.purgeBuffer(); - return 0; - } //DTSC2MP4 - -} //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 diff --git a/src/converters/dtsc2ts.cpp b/src/converters/dtsc2ts.cpp index 945dd872..782828ff 100644 --- a/src/converters/dtsc2ts.cpp +++ b/src/converters/dtsc2ts.cpp @@ -10,6 +10,7 @@ #include //TS support #include //DTSC support #include //For initdata conversion +#include //For initdata conversion #include ///\brief Holds everything unique to converters.