Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading Cine file #455

Open
HoseynAAmiri opened this issue Dec 20, 2023 · 2 comments
Open

Reading Cine file #455

HoseynAAmiri opened this issue Dec 20, 2023 · 2 comments

Comments

@HoseynAAmiri
Copy link

HoseynAAmiri commented Dec 20, 2023

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

@nkeim
Copy link
Contributor

nkeim commented Dec 20, 2023 via email

@HoseynAAmiri
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants