Skip to content

MMALPythonPort does not support MMAL_ENCODING_H264 and MMAL_ENCODING_MJPEG #459

@barney-NG

Description

@barney-NG

Hi Dave,

first of all: thank you for this excellent peace of work!

By writing a h264 decoder I tried to use MMALPythonSource as simple method to create a source stream for the decoder pipeline.
I think I found 3 different errors (or may be I just used it wrong...)

  1. Both video formats are not included in the supported_formats property of the MMALPythonPort class. (I added them manually in my installation to dig deeper in the stuff)
  2. The copy_from() helper raises an error. (may be I added the formats not correctly) source.outputs[0].connect(decoder.inputs[0]) raises an error when source.outputs[0].format is not set explicitly.
  3. source.connection.enable() is not supported.
  4. MMALPythonSource.send_buffer() is raising: PiCameraMMALError(mmal.MMAL_EAGAIN, 'no buffers available')

Thank yo for any help!

Here my code I used for testing:
mmal_h264_decoder_example.py.txt

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions