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

Comments

@Berryfier
Copy link

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

This comment has been minimized.

Copy link
Owner

commented Nov 14, 2016

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

@waveform80 waveform80 added the bug label Nov 14, 2016

@waveform80 waveform80 added this to the 1.13 milestone Nov 14, 2016

@waveform80 waveform80 self-assigned this Nov 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.