This commit is contained in:
Lesmiscore 2022-07-14 09:26:52 +09:00
parent d2d940ef25
commit cd6e20b68e
No known key found for this signature in database
GPG Key ID: 0EC2B52CF86236FF
2 changed files with 1 additions and 1 deletions

View File

@ -91,6 +91,7 @@ def unpack_ver_flags(value: bytes) -> Tuple[int, int]:
MP4_CONTAINER_BOXES = ('moov', 'trak', 'edts', 'mdia', 'minf', 'dinf', 'stbl', 'mvex', 'moof', 'traf', 'vttc', 'tref', 'iref', 'mfra', 'meco', 'hnti', 'hinf', 'strk', 'strd', 'sinf', 'rinf', 'schi', 'trgr', 'udta', 'iprp', 'ipco')
""" List of boxes that nests the other boxes """
def parse_mp4_boxes(r: RawIOBase):
"""
Parses an ISO BMFF (which MP4 follows) and yields its boxes as a sequence.

View File

@ -102,7 +102,6 @@ class MP4FixupTimestampPP(PostProcessor):
continue
yield (btype, content)
def modify_mp4(self, src, dst, bmdt_offset, sdur_cutoff):
with open(src, 'rb') as r, open(dst, 'wb') as w:
write_mp4_boxes(w, self.transform(parse_mp4_boxes(r)))