This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Changing capture resolution

I need help with an application where video input can change resolution.

My application is based on the capture encode demo.

My problem is that the video input can change resolutions (e.g. from 1920x1080@60 to 1280x720@60).

I need to be able to the resolution the capture handles quickly.

I'm currently doing this by tearing down the entire omx chain and then rebuilding it from scratch.
  It works fine this way but is very slow.

Is there a better way to handle this?

  • Carl,

    I believe its not so easy to support this feature with the current software architecture. You might have to tear down. How much time does it take to restart the pipeline currently?

    Do you need to remove teardown step completely or are you okay if the teardown time reduces? 

  • I'm okay if the teardown time is reduced.  I'm just trying to get it to change resolutions as quickly as possible.

    Originally I was tearing down the pipeline and deiniting OMX, then reiniting OMX and building the pipeline from scratch.  I did this because I was having problems with OMX hanging.  Doing all this takes about 8 seconds to do a switch.  I have made a change where I am no longer deiniting and reiniting OMX and it seems to be OK - OMX doesn't seem to be hanging.  With that change the switch takes about 4 seconds.  I really need the switch to take about 1 to 2 seconds.  Any suggestions would be greatly appreciated.

  • Hi Carl,

    We've achieved close to 1 seconds without tearing down the pipeline completely, some time back. We will discuss this offline.