soft-matter/pims

Reading Cine file

HoseynAAmiri opened this issue · 2 comments

After reading the Cine file, I cannot use the frame after index 50 and it throws an error:

.../pims/cine.py in _unpack(self, fs, offset)
    531             self.f.seek(offset)
    532         s = _build_struct(fs)
--> 533         vals = s.unpack(self.f.read(s.size))
    534         if len(vals) == 1:
    535             return vals[0]

error: unpack requires a buffer of 3830599205 bytes

I shall mention that the index or frame before that looks corrupted:

corrupt

I checked the files (<200mb) that caused the errors. The cine viewer software could successfully load them and everything seems to be normal. This is someone else's video and I think they cropped the frames between two time intervals as the original file was too big.

Have you looked into PhPython source code? The library is offered by the company. Maybe they are reading the cine files differently.