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

TypeError: 'MMALBuffer' object does not support indexing #337

Closed
Berryfier opened this issue Oct 12, 2016 · 1 comment
Closed

TypeError: 'MMALBuffer' object does not support indexing #337

Berryfier opened this issue Oct 12, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@Berryfier
Copy link

@Berryfier Berryfier commented Oct 12, 2016

I am running a strobe synchroniser which relies on the comparison of presentation and system time stamps. The method of obtaining the presentation time stamp is based on the example recipe which extends the Custom Encoder PiCookedVideoEncoder class; in my case using pts in place of flags. Under
def _callback_write(self, buf):
the recipe has
(buf[0].flags
Whilst this worked in version 1.10, version 1.12 reports
TypeError: 'MMALBuffer' object does not support indexing
sys.excepthook is missing
lost sys.stderr
With guidance from the interactive help, the error can be overcome by making these changes
def _callback_write(self, buf, key=0):
(buf.flags
Thank you for publishing the recipies.

@waveform80
Copy link
Owner

@waveform80 waveform80 commented Nov 14, 2016

Ah, many thanks! I'll get that fixed up for the next version.

Loading

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

Successfully merging a pull request may close this issue.

None yet
2 participants