shafayatnabi wrote: ↑
Wed Jun 20, 2018 6:41 am
Is there any way to change resolution on the fly ?
You aren't allowed to change the port definition when the port is executing, therefore any tunnels will have to be torn down, reconfigured, and re-established. Part of the reason is that you've allocated pixel buffers of a particular size, so unless you only allowed reducing the resolution then you can't fit the images into the buffer.
You can potentially keep the output port of the video_encode component enabled when reconfiguring the input, and you'll just get a new set of header bytes produced with the new configuration (I haven't checked whether the component itself allows you to do that, but IL as an API doesn't prohibit it).
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.