



A program can run several camera kits to film several angles. The host, a SkyCoach device on the local network, stores the game's plays and relays recording commands between the iPads and the camera kits.
A play is one recorded clip together with its tags, such as down, distance and yard line.


The client was moving the camera kit to a new board and wanted its recording code rebuilt on Android's Camera2 API as a separate, readable module.
We built the capture and recording module on Android's Camera2 API:
On a sideline the camera signal can disappear mid-play, and the kit has to notice that fast. The new module checks for fresh frames every half second. If no frame has arrived for more than 0.3 seconds, it treats the camera as disconnected, so a lost signal is caught in under a second.
What happens next:


A replay that misses the snap is useless, so start delay was one of the client's main requirements. We added a measurement of how long each recording takes to start, written to the app's logs, and tuned the start sequence against it. In our tests in May 2024 the module had the encoder running about 120 ms after the record command reached the kit, on average.
The Record button switches to Stop only after the encoder has produced its first frame. The operator sees that the clip has really started instead of guessing.
The record screen shows the real frame rate coming from the camera, recalculated twice a second, and a timer with the seconds left in the current play. When a clip looks choppy, the cause can be on the camera side, such as its output settings or a loose HDMI cable, or in the recording. With the incoming frame rate on screen, staff can see which side the problem is on and fix a camera set to the wrong mode before the game.


Programs already had kits on FriendlyElec boards in the field. We built the new module as a separate component, set up a test environment with the previous version of the app, integrated the module and ran regression tests against that version. The app now picks the pipeline by board: the Khadas VIM4 uses the new Camera2 module, and FriendlyElec boards keep the pipeline they had before.
