Added header read speed timers, simplified header logic for VoD.
This commit is contained in:
parent
6b1db9d0ec
commit
8f4ddf14d9
8 changed files with 10 additions and 9 deletions
|
@ -93,9 +93,6 @@ namespace Mist {
|
|||
}
|
||||
|
||||
bool inputAV::readHeader() {
|
||||
//See whether a separate header file exists.
|
||||
if (readExistingHeader()){return true;}
|
||||
|
||||
myMeta.tracks.clear();
|
||||
for(unsigned int i=0; i < pFormatCtx->nb_streams; ){
|
||||
AVStream * strm = pFormatCtx->streams[i++];
|
||||
|
|
|
@ -9,6 +9,7 @@ namespace Mist {
|
|||
protected:
|
||||
bool checkArguments(){return false;};
|
||||
bool readHeader(){return false;};
|
||||
bool needHeader(){return false;};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ namespace Mist {
|
|||
protected:
|
||||
bool checkArguments(){return false;};
|
||||
bool readHeader(){return false;};
|
||||
bool needHeader(){return false;};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -116,6 +116,7 @@ namespace Mist{
|
|||
bool checkArguments();
|
||||
bool preSetup();
|
||||
bool readHeader();
|
||||
bool needHeader(){return true;}
|
||||
void getNext(bool smart = true);
|
||||
void seek(int seekTime);
|
||||
void trackSelect(std::string trackSpec);
|
||||
|
|
|
@ -53,8 +53,6 @@ namespace Mist {
|
|||
if (!inFile) {
|
||||
return false;
|
||||
}
|
||||
//See whether a separate header file exists.
|
||||
if (readExistingHeader()){return true;}
|
||||
//parse ismv header
|
||||
fseek(inFile, 0, SEEK_SET);
|
||||
std::string ftyp;
|
||||
|
|
|
@ -87,6 +87,7 @@ namespace Mist {
|
|||
bool checkArguments();
|
||||
bool preRun();
|
||||
bool readHeader();
|
||||
bool needHeader(){return true;}
|
||||
void getNext(bool smart = true);
|
||||
void seek(int seekTime);
|
||||
void trackSelect(std::string trackSpec);
|
||||
|
|
|
@ -218,6 +218,11 @@ namespace Mist {
|
|||
}
|
||||
|
||||
|
||||
bool inputTS::needHeader(){
|
||||
if (!standAlone){return false;}
|
||||
return Input::needHeader();
|
||||
}
|
||||
|
||||
///Reads headers from a TS stream, and saves them into metadata
|
||||
///It works by going through the entire TS stream, and every time
|
||||
///It encounters a new PES start, it writes the currently found PES data
|
||||
|
@ -225,11 +230,7 @@ namespace Mist {
|
|||
///it writes the remaining metadata.
|
||||
///\todo Find errors, perhaps parts can be made more modular
|
||||
bool inputTS::readHeader() {
|
||||
if (!standAlone){return true;}
|
||||
if (!inFile){return false;}
|
||||
//See whether a separate header file exists.
|
||||
if (readExistingHeader()){return true;}
|
||||
|
||||
TS::Packet packet;//to analyse and extract data
|
||||
fseek(inFile, 0, SEEK_SET);//seek to beginning
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ namespace Mist {
|
|||
bool checkArguments(){return true;}
|
||||
bool preRun();
|
||||
bool readHeader();
|
||||
bool needHeader();
|
||||
void getNext(bool smart = true);
|
||||
void seek(int seekTime);
|
||||
void trackSelect(std::string trackSpec);
|
||||
|
|
Loading…
Add table
Reference in a new issue