I have progress in my baremetal project with imx219 camera on raspberry pi 3b+.
I have vchiq and threading implemented.
I have this graph working well
"ril.camera".video_out ---> "encoder(h264)"--->compressed video written to sd card
I have and SPI display and want to draw resized video to display.
For that I have added splitter and resizer components.
My goal is to setup this:
Before trying out the full graph above, I first have implemented and tested same thing but without resizer - second splitter output was just checked for existence but ignored. It worked fine.
Now I add "ril.resize" component and start to have problems
When I create new mmal component "ril.resize" I check what is created by default:But then I immediately want to change input and output port of resizer to reflect this:
resizer.input: encoding:OPAQUE,variant:I420, width 1280x1024,framerate:0
resizer.output: encoding: RGB24, variant:0, width 320x240,framerate:0
But this fails already on the input step, here is what I see in logs:
I have vchiq and threading implemented.
I have this graph working well
"ril.camera".video_out ---> "encoder(h264)"--->compressed video written to sd card
I have and SPI display and want to draw resized video to display.
For that I have added splitter and resizer components.
My goal is to setup this:
Code:
"ril.camera".video_out(1280x1024) ---> "ril.video_splitter" -----> "encoder(h264)" ----> compressed video written to SD card -----> "ril.resize(320x240)"----> SPI display
Now I add "ril.resize" component and start to have problems
When I create new mmal component "ril.resize" I check what is created by default:
Code:
resizer.IN:handle:1 type:3,encoding:"RGBA",variant:00000000,160x16 resizer.IN: minbuf: 1x10240, recommended:1x10240, current:1x10240 resizer.OUT:handle:2 type:3,encoding:"RGBA",variant:00000000,160x16 resizer.OUT: minbuf: 1x10240, recommended:1x10240, current:1x10240
resizer.input: encoding:OPAQUE,variant:I420, width 1280x1024,framerate:0
resizer.output: encoding: RGB24, variant:0, width 320x240,framerate:0
But this fails already on the input step, here is what I see in logs:
Code:
MESS:00:00:19.352017:0: mmal: mmal_ril_set_port_settings: ril.resize:in:0: failed to set port definition (4) buffers 1/1/10240MESS:00:00:19.363024:0: mmalsrv: mmal_server_do_port_info_set: ril.resize:in:0(RGBA): failed (handle 1, status 3)
Statistics: Posted by valc — Mon May 20, 2024 8:02 pm