Merge branch 'development' into LTS_development
# Conflicts: # src/controller/controller_statistics.cpp # src/input/input_buffer.cpp # src/input/input_dtsc.cpp # src/input/input_ebml.cpp # src/input/input_flv.cpp # src/input/input_mp3.cpp # src/output/output_httpts.cpp # src/output/output_progressive_mp3.cpp # src/output/output_progressive_mp4.cpp
This commit is contained in:
commit
9e1539a2b9
32 changed files with 95 additions and 111 deletions
|
@ -93,7 +93,7 @@ int Analyser::run(Util::Config &conf){
|
|||
void Analyser::init(Util::Config &conf){
|
||||
JSON::Value opt;
|
||||
|
||||
opt["arg_num"] = 1ll;
|
||||
opt["arg_num"] = 1;
|
||||
opt["arg"] = "string";
|
||||
opt["default"] = "-";
|
||||
opt["help"] = "Filename to analyse, or - for standard input (default)";
|
||||
|
@ -117,7 +117,7 @@ void Analyser::init(Util::Config &conf){
|
|||
opt["long"] = "detail";
|
||||
opt["short"] = "D";
|
||||
opt["arg"] = "num";
|
||||
opt["default"] = 2ll;
|
||||
opt["default"] = 2;
|
||||
opt["help"] = "Detail level for analysis (0 = none, 2 = default, 10 = max)";
|
||||
conf.addOption("detail", opt);
|
||||
opt.null();
|
||||
|
|
|
@ -82,7 +82,7 @@ bool AnalyserDTSC::parsePacket(){
|
|||
for (std::map<unsigned int, DTSC::Track>::iterator it = M.tracks.begin();
|
||||
it != M.tracks.end(); it++){
|
||||
JSON::Value track;
|
||||
track["kbits"] = (long long)((double)it->second.bps * 8 / 1024);
|
||||
track["kbits"] = (uint64_t)((double)it->second.bps * 8 / 1024);
|
||||
track["codec"] = it->second.codec;
|
||||
uint32_t shrtest_key = 0xFFFFFFFFul;
|
||||
uint32_t longest_key = 0;
|
||||
|
@ -106,12 +106,12 @@ bool AnalyserDTSC::parsePacket(){
|
|||
}
|
||||
}
|
||||
}
|
||||
track["keys"]["ms_min"] = (long long)shrtest_key;
|
||||
track["keys"]["ms_max"] = (long long)longest_key;
|
||||
track["keys"]["frame_ms_min"] = (long long)shrtest_prt;
|
||||
track["keys"]["frame_ms_max"] = (long long)longest_prt;
|
||||
track["keys"]["frames_min"] = (long long)shrtest_cnt;
|
||||
track["keys"]["frames_max"] = (long long)longest_cnt;
|
||||
track["keys"]["ms_min"] = shrtest_key;
|
||||
track["keys"]["ms_max"] = longest_key;
|
||||
track["keys"]["frame_ms_min"] = shrtest_prt;
|
||||
track["keys"]["frame_ms_max"] = longest_prt;
|
||||
track["keys"]["frames_min"] = shrtest_cnt;
|
||||
track["keys"]["frames_max"] = longest_cnt;
|
||||
if (longest_prt > 500){
|
||||
issues << "unstable connection (" << longest_prt << "ms " << it->second.codec
|
||||
<< " frame)! ";
|
||||
|
@ -123,8 +123,8 @@ bool AnalyserDTSC::parsePacket(){
|
|||
if (it->second.codec == "AAC"){hasAAC = true;}
|
||||
if (it->second.codec == "H264"){hasH264 = true;}
|
||||
if (it->second.type == "video"){
|
||||
track["width"] = (long long)it->second.width;
|
||||
track["height"] = (long long)it->second.height;
|
||||
track["width"] = it->second.width;
|
||||
track["height"] = it->second.height;
|
||||
track["fpks"] = it->second.fpks;
|
||||
if (it->second.codec == "H264"){
|
||||
h264::sequenceParameterSet sps;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue