Table of Contents

Configuration Reference

Every setting the extension reads, where it lives, and what the Toolkit writes for you.

Table of Contents

The Files

The Video Player Page

VideoPlayerConfiguration.json

Player Fields

Defaults the Pipelines Apply

Configuration Upgrades

The Service Entry in PackageInfo.json

Settings That Live Elsewhere

The Files

File Written by Read by
VideoPlayerConfiguration.json, beside <Platform>.PackageInfo.json The Toolkit's Video Player page Packaging
.appinfo/VideoPlayerConfiguration.pbuff in the package Packaging, from the JSON after any configuration upgrades VideoService, once, at startup
.appinfo/VideoPlayerConfiguration.pbuff.json in the package Packaging — the configuration as packaged, upgrades applied Nothing; kept for inspection on the device
<Platform>.PackageInfo.json The Toolkit Packaging; the Video Player page reads its surfaces

The service reads its player list only from the packaged .pbuff. Edit the JSON, then repackage — changing the copy on a device does nothing.

Important

Packaging reads VideoPlayerConfiguration.json unconditionally once the extension is in the project. Open and save the Video Player page at least once so the file exists.

The Video Player Page

The page lists every player in a grid, with three actions on the right.

Action Does
Add Video Player Appends a player with the next free id (highest id + 1), named New Video, input GMSL, UYVY at 1920×1200
Remove Video Player Removes the selected player
Advanced Options Opens the selected player in the editor below

Grid columns:

Column Field
ID videoPlayerID — read-only
Input Type inputType — GMSL, Analog, VCIC or File
Player Name sourceName
Source videoSource. For a camera, one of the board's declared ports for that input type. For File, a path you type; left empty it shows Chosen by app at runtime. See Video Files.
Rendering Surface surfaceID — the surfaces in the saved PackageInfo.json, shown as id - appID

Changing a player's input type clears its source and writes that type's capture settings, so nothing carries over from the previous type:

Input Type pixelFormat width × height frameRate deinterlace
GMSL UYVY 1920×1200 0 (pipeline default) off
Analog UYVY 720×480 30 on
VCIC, File empty 0×0 0 off — the format comes from the stream or the file

The advanced editor repeats ID, Name, Input Type and Source, and adds:

Control Field Shown
Surface surfaceID Always
Flip (H) horizontalFlip Camera inputs; hidden for File, which plays as authored
Flip (V) verticalFlip Camera inputs; hidden for File
Deinterlace deinterlace Analog players only

For a File player the page checks the path as you type and marks one the display would refuse, with the reason: The device will refuse this file: ….

A port or surface the page does not recognise — a configuration from another board, or a surface not yet saved in the package — is kept and shown with a (custom) suffix rather than dropped.

The page does not expose pixelFormat, width, height, frameRate, renderWidth, renderHeight or the reserved image controls. It preserves whatever is in the file — apart from the defaults it writes when you change a player's input type — so set those by editing the JSON.

VideoPlayerConfiguration.json

The file is a single object holding a version and a list of players. Names are camelCase; enum values are strings.

{
  "version": "5.12.0",
  "players": [
    {
      "videoPlayerID": 3,
      "surfaceID": 1004,
      "sourceName": "Analog Camera 1",
      "inputType": "Analog",
      "videoSource": "ANALOG0",
      "pixelFormat": "UYVY",
      "width": 720,
      "height": 480,
      "frameRate": 30,
      "deinterlace": true,
      "horizontalFlip": true,
      "verticalFlip": false,
      "renderWidth": 0,
      "renderHeight": 0
    },
    {
      "videoPlayerID": 9,
      "surfaceID": 1010,
      "sourceName": "Demo clip",
      "inputType": "FileSource",
      "videoSource": "media/demo.mp4"
    }
  ]
}
Top-level field Meaning
version The version of the VideoPlayer extension that last saved the file. Written by the Toolkit; leave it alone when editing by hand. See Configuration Upgrades.
players The players, in any order.

Player Fields

Field Type Applies to Meaning
videoPlayerID int All The id your code plays. Unique within the file.
surfaceID int All The IVI surface the feed renders to. Must match a surface in the screen configuration.
sourceName string All Free-text name. Appears in the log as PLAYER 3 (Analog Camera 1); nothing keys off it.
inputType enum All GMSL, Analog, VCIC, FileSource (shown as File in the Toolkit). USB is reserved and reports Unavailable.
videoSource string All For a camera, the logical port: GMSL0, ANALOG1, VCIC2; an absolute path (starting /) is used as the capture node unchanged. For FileSource, the file to play — relative to the application folder, or absolute — or empty to let the application pass it in VideoURL.
pixelFormat string GMSL, Analog Capture caps format. Empty means UYVY.
width, height int GMSL, Analog Capture resolution. 0 means the pipeline default. Clamped to 1920×1200.
frameRate int GMSL, Analog Capture frame rate. 0 means the pipeline default. GMSL cameras run at up to 60 fps.
deinterlace bool Analog Insert the GPU deinterlace pass. Required for analog cameras. Ignored for other inputs.
horizontalFlip bool GMSL, Analog Mirror left–right on the GPU. For analog, applied after deinterlacing.
verticalFlip bool GMSL, Analog Mirror top–bottom on the GPU.
renderWidth, renderHeight int VCIC, File Default size to render the decoded feed at. 0 renders native. A PlayVideo request can override it. See Rendering & Surfaces.
brightness, contrast, saturation int — Reserved. Not applied.

Defaults the Pipelines Apply

When a capture field is 0 or empty, the pipeline substitutes:

Input Format Resolution Frame rate
GMSL UYVY 1280×720 50
Analog UYVY 720×480 (NTSC) 30
Important

GMSL: leave the capture size at 1920×1200. The boot-time bring-up formats the GMSL media graph at the sensor's native 1920×1200, and the pipeline's caps must agree with it — a mismatch fails caps negotiation and the feed never starts. The Toolkit writes 1920×1200 for every new player; the GMSL pipeline's own 1280×720 fallback only applies when width/height are 0.

Analog capture is NTSC 720×480 at 30 fps. PAL is not supported yet: the Toolkit writes 720×480 for every analog player, and the configuration upgrade resets analog players in older files to it unless they hold 720×480 or 720×576.

VCIC ignores pixelFormat, width, height and frameRate: the stream's format is fixed by the camera's commissioned ROI ladder (1280×960 at 30 fps, H.264). File ignores them too — the format comes from the file.

Configuration Upgrades

When the Toolkit opens VideoPlayerConfiguration.json, and again when packaging reads it, the extension applies any upgrades newer than the file's version. Saving from the Toolkit then stamps the current version, so each upgrade runs once. A file with no version — saved before this existed — gets every upgrade.

Upgrade Does
5.12.0 Sets Analog players to 720×480 unless they already hold 720×480 or a hand-set 720×576. Earlier Toolkits gave a new player GMSL's 1920×1200 and kept it when the type was changed to Analog, so the analog feed never started.

Packaging applies the upgrades to what it builds without rewriting your JSON; save the project once in the Toolkit to update the file itself.

The Service Entry in PackageInfo.json

Adding the extension puts a VideoService entry in the package's service list:

{
  "serviceName": "VideoService",
  "tcpListenAddress": "127.0.0.1",
  "tcpConnectionAddress": "127.0.0.1",
  "dataChannel": 7000,
  "isExtension": true,
  "behaviors": "AutoStart"
}

The extension's own default is TCP on localhost, data channel 6202, AutoStart. The demos use 7000. Any free port works; VideoServiceClient() reads whatever the package configured.

Settings That Live Elsewhere

Setting Where
Where a surface is on screen, its layer and whether it starts visible screenConfiguration in PackageInfo.json
The display's camera-subnet address for VCIC (192.168.40.100/24) networkConfiguration in PackageInfo.json — updateEthernetConfiguration: true, ethernetAddress
Which ports a board has The board's platform definition (Visualization.*_Count)
The VCIC camera addresses and stream ports Fixed by commissioning — see VCIC Cameras