161 | | |
| 163 | === Compositing with limited CPU, low memory bandwidth |
| 164 | |
| 165 | Board performance can be measured with: |
| 166 | {{{ |
| 167 | /unit_tests/mmdc2 |
| 168 | }}} |
| 169 | This is included in our Yocto pre-built image. |
| 170 | |
| 171 | Boards with less processing power or lower memory bandwidth may only function using lower FPS: |
| 172 | {{{#!bash |
| 173 | gst-launch-1.0 \ |
| 174 | imxv4l2videosrc device=/dev/video2 fps-n=15 ! imxg2dvideosink window-width=490 window-height=490 window-x-coord=0 window-y-coord=0 \ |
| 175 | imxv4l2videosrc device=/dev/video3 fps-n=15 ! imxg2dvideosink window-width=490 window-height=490 window-x-coord=490 window-y-coord=0 \ |
| 176 | imxv4l2videosrc device=/dev/video4 fps-n=15 ! imxg2dvideosink window-width=490 window-height=490 window-x-coord=980 window-y-coord=0 \ |
| 177 | imxv4l2videosrc device=/dev/video5 fps-n=15 ! imxg2dvideosink window-width=490 window-height=490 window-x-coord=1470 window-y-coord=0 \ |
| 178 | imxv4l2videosrc device=/dev/video6 fps-n=15 ! imxg2dvideosink window-width=490 window-height=490 window-x-coord=0 window-y-coord=540 \ |
| 179 | imxv4l2videosrc device=/dev/video7 fps-n=15 ! imxg2dvideosink window-width=490 window-height=490 window-x-coord=490 window-y-coord=540 \ |
| 180 | imxv4l2videosrc device=/dev/video8 fps-n=15 ! imxg2dvideosink window-width=490 window-height=490 window-x-coord=980 window-y-coord=540 \ |
| 181 | imxv4l2videosrc device=/dev/video1 fps-n=15 ! imxg2dvideosink window-width=490 window-height=490 window-x-coord=1470 window-y-coord=540 |
| 182 | }}} |
| 183 | |
| 184 | You may also reduce bus load by reducing the output resolution: |
| 185 | {{{#!bash |
| 186 | gst-launch-1.0 -e -vv \ |
| 187 | imxg2dcompositor name=comp \ |
| 188 | sink_1::xpos=0 sink_1::ypos=0 \ |
| 189 | sink_2::xpos=490 sink_2::ypos=0 \ |
| 190 | sink_3::xpos=980 sink_3::ypos=0 \ |
| 191 | sink_4::xpos=1470 sink_4::ypos=0 \ |
| 192 | sink_5::xpos=0 sink_5::ypos=540 \ |
| 193 | sink_6::xpos=490 sink_6::ypos=540 \ |
| 194 | sink_7::xpos=980 sink_7::ypos=540 \ |
| 195 | sink_8::xpos=1470 sink_8::ypos=540 ! \ |
| 196 | queue2 ! video/x-raw, width=1940, height=1080 ! imxipuvideotransform ! imxipuvideosink \ |
| 197 | imxv4l2videosrc device=/dev/video1 fps-n=12 ! queue2 ! imxipuvideotransform qos=false ! video/x-raw, width=340, height=240 ! comp.sink_1 \ |
| 198 | imxv4l2videosrc device=/dev/video2 fps-n=12 ! queue2 ! imxipuvideotransform qos=false ! video/x-raw, width=340, height=240 ! comp.sink_2 \ |
| 199 | imxv4l2videosrc device=/dev/video3 fps-n=12 ! queue2 ! imxipuvideotransform qos=false ! video/x-raw, width=340, height=240 ! comp.sink_3 \ |
| 200 | imxv4l2videosrc device=/dev/video4 fps-n=12 ! queue2 ! imxipuvideotransform qos=false ! video/x-raw, width=340, height=240 ! comp.sink_4 \ |
| 201 | imxv4l2videosrc device=/dev/video5 fps-n=12 ! queue2 ! imxipuvideotransform qos=false ! video/x-raw, width=340, height=240 ! comp.sink_5 \ |
| 202 | imxv4l2videosrc device=/dev/video6 fps-n=12 ! queue2 ! imxipuvideotransform qos=false ! video/x-raw, width=340, height=240 ! comp.sink_6 \ |
| 203 | imxv4l2videosrc device=/dev/video7 fps-n=12 ! queue2 ! imxipuvideotransform qos=false ! video/x-raw, width=340, height=240 ! comp.sink_7 \ |
| 204 | imxv4l2videosrc device=/dev/video8 fps-n=12 ! queue2 ! imxipuvideotransform qos=false ! video/x-raw, width=340, height=240 ! comp.sink_8 |
| 205 | }}} |
| 206 | These command strings were verified using GW5100 and Yocto 2.3. |