Creates an index of keyframes for a file, than can be used later for
seeking in non indexed formats or whithout parsing the headers.
The format of the index is very similar to the AVI Index, but it can
also include information about the real time of each entry in UNIX time.
(see 'man aviindex')
If the index is for an indexed format, the offset of the first entry
will not start from 0. This offset is the size of the headers.
|
__init__(self,
component=None,
location=None) |
source code
|
|
|
updateStart(self,
timestamp)
Remove entries in the index older than this timestamp |
source code
|
|
|
addEntry(self,
offset,
timestamp,
keyframe,
tdt=0,
writeIndex=True)
Add a new entry to the the index and writes it to disk if writeIndex
is True |
source code
|
|
|
|
|
|
|
getHeaders(self)
Return an index entry corresponding to the headers, which is a chunk
with 'offset' 0 and 'length' equals to the headers size |
source code
|
|
|
|
|
|
|
clipTimestamp(self,
start,
stop)
Clip the current index to a start and stop time, returning all the
entries matching the boundaries using the 'timestamp' |
source code
|
|
|
clipTDT(self,
start,
stop)
Clip the current index to a start and stop time, returning all the
entries matching the boundaries using the 'tdt' |
source code
|
|
|
|
|
save(self,
start=None,
stop=None)
Saves the index in a file, using the entries from 'start' to 'stop' |
source code
|
|
|
loadIndexFile(self,
location)
Loads the entries of the index from an index file |
source code
|
|
|
_updateLastEntry(self,
offset,
timestamp,
tdt) |
source code
|
|
|
_checkEntriesContinuity(self,
offset,
timestamp,
tdt) |
source code
|
|
|
_clip(self,
keyTS,
keyDur,
start,
stop)
Clip the index to a start and stop time. |
source code
|
|
|
|
|
|
|
_write_index_entry(self,
file,
entry,
offset,
count) |
source code
|
|
|
|
Inherited from extern.log.log.Loggable :
__providedBy__ ,
__provides__ ,
debug ,
doLog ,
error ,
info ,
log ,
logFunction ,
logObjectName ,
warning ,
warningFailure ,
writeMarker
|