コード例 #1
0
ファイル: movie.py プロジェクト: tdeb-ari/mp4viewer
 def generate_fields(self):
     from utils import parse_iso639_2_15bit
     from utils import get_utc_from_seconds_since_1904
     for x in super(MediaHeader, self).generate_fields():
         yield x
     yield ("creation time", self.creation_time, get_utc_from_seconds_since_1904(self.creation_time).ctime())
     yield ("modification time", self.modification_time, get_utc_from_seconds_since_1904(self.modification_time).ctime())
     yield ("timescale", self.timescale)
     yield ("duration", self.duration)
     yield ("language", self.language, parse_iso639_2_15bit(self.language))
コード例 #2
0
ファイル: movie.py プロジェクト: toshic/mp4viewer
 def generate_fields(self):
     from utils import parse_iso639_2_15bit
     from utils import get_utc_from_seconds_since_1904
     for x in super(MediaHeader, self).generate_fields():
         yield x
     yield ("creation time", self.creation_time,
            get_utc_from_seconds_since_1904(self.creation_time).ctime())
     yield ("modification time", self.modification_time,
            get_utc_from_seconds_since_1904(self.modification_time).ctime())
     yield ("timescale", self.timescale)
     yield ("duration", self.duration)
     yield ("language", self.language, parse_iso639_2_15bit(self.language))
コード例 #3
0
ファイル: movie.py プロジェクト: tdeb-ari/mp4viewer
 def generate_fields(self):
     for x in super(MovieHeader, self).generate_fields():
         yield x
     from utils import get_utc_from_seconds_since_1904
     yield ("creation time", self.creation_time, get_utc_from_seconds_since_1904(self.creation_time).ctime())
     yield ("modification time", self.creation_time, get_utc_from_seconds_since_1904(self.modification_time).ctime())
     yield ("timescale", self.timescale)
     yield ("duration", self.duration)
     yield ("rate", "0x%08X" %(self.rate))
     yield ("volume", "0x%04X" %(self.volume))
     yield ("matrix", self.matrix)
     yield ("next track id", self.next_track_id)
コード例 #4
0
ファイル: movie.py プロジェクト: toshic/mp4viewer
 def generate_fields(self):
     for x in super(MovieHeader, self).generate_fields():
         yield x
     from utils import get_utc_from_seconds_since_1904
     yield ("creation time", self.creation_time,
            get_utc_from_seconds_since_1904(self.creation_time).ctime())
     yield ("modification time", self.creation_time,
            get_utc_from_seconds_since_1904(self.modification_time).ctime())
     yield ("timescale", self.timescale)
     yield ("duration", self.duration)
     yield ("rate", "0x%08X" % (self.rate))
     yield ("volume", "0x%04X" % (self.volume))
     yield ("matrix", self.matrix)
     yield ("next track id", self.next_track_id)
コード例 #5
0
ファイル: movie.py プロジェクト: tdeb-ari/mp4viewer
 def generate_fields(self):
     for x in super(TrackHeader, self).generate_fields():
         yield x
     from utils import get_utc_from_seconds_since_1904
     yield ("creation time", self.creation_time, get_utc_from_seconds_since_1904(self.creation_time).ctime())
     yield ("modification time", self.modification_time, get_utc_from_seconds_since_1904(self.modification_time).ctime())
     yield ("track id", self.track_id)
     yield ("duration", self.duration)
     yield ("layer", "0x%04X" %(self.layer))
     yield ("alternate group", "0x%04X" %(self.altgroup))
     yield ("volume", "0x%04X" %(self.volume))
     yield ("matrix", self.matrix)
     yield ("width", self.width)
     yield ("height", self.height)
コード例 #6
0
ファイル: movie.py プロジェクト: toshic/mp4viewer
 def generate_fields(self):
     for x in super(TrackHeader, self).generate_fields():
         yield x
     from utils import get_utc_from_seconds_since_1904
     yield ("creation time", self.creation_time,
            get_utc_from_seconds_since_1904(self.creation_time).ctime())
     yield ("modification time", self.modification_time,
            get_utc_from_seconds_since_1904(self.modification_time).ctime())
     yield ("track id", self.track_id)
     yield ("duration", self.duration)
     yield ("layer", "0x%04X" % (self.layer))
     yield ("alternate group", "0x%04X" % (self.altgroup))
     yield ("volume", "0x%04X" % (self.volume))
     yield ("matrix", self.matrix)
     yield ("width", self.width)
     yield ("height", self.height)