Moving from LT-100 to LT-300: From a C Library to a REST API

Your software runs on an LT-100 through the C library or DirectShow, and the next product needs 4K, HDMI, more inputs or edge AI. What changes with the LT-300 REST API, what stays the same, and your first recording.

Technology 5 min read #LT-300 #LT-100 #Migration #Developers
Moving from LT-100 to LT-300: From a C Library to a REST API

Your software captures video with an LT-100 card through our C library or the DirectShow filter, and now the next product needs more: 4K, HDMI sources, more inputs, Python or Go, or AI on an NVIDIA Jetson. That is the LT-300 series. It is driven a different way, through a REST API, so here is what changes, what stays the same, and how to get your first LT-300 recording in about 15 minutes.

When moving makes sense, and when it does not

Move to the LT-300 when your next product needs one of these:

  • More than Full HD:the LT-100 captures SD to Full HD, with real-time H.264 up to 1080p30 per channel. The LT-300 captures up to 4K60.
  • HDMI sources or more inputs:SDI and HDMI, 2 to 4 inputs per card, instead of 1 or 2 channels.
  • Other languages:client libraries in Python, Go, C++ and C#, or any language over REST, instead of C and C++.
  • HEVC and GPU encoding:H.264 or HEVC on the host GPU (NVIDIA NVENC, Intel Quick Sync, AMD AMF).
  • Edge AI:the LT-300 runs on the CH-007 NVIDIA Jetson Orin edge AI platform. The LT-100 is not compatible.

Keep the LT-100 if you capture analog sources (Composite or S-Video, on the LT-101 and LT-102): LT-300 cards have SDI and HDMI inputs only. Keep it too if the host has no GPU for encoding and you rely on H.264 compression on the card, or if you still need Windows 8 or Debian 12, which the LT-100 SDK supports.

Which LT-300 replaces your LT-100

You haveYour sourcesMove to
LT-122 (2× SDI)SDILT-311 (4× SDI) or LT-313 (SDI + HDMI)
LT-124 (2× DVI-D)HDMI / DVILT-312 (2× HDMI) or LT-313 (SDI + HDMI)
LT-101 (USB) or LT-102 (PCIe)SDI or DVILT-311 or LT-313 for SDI sources, LT-312 or LT-313 for HDMI / DVI sources
LT-101 or LT-102Composite or S-VideoStay on the LT-100

What changes: a library becomes a service

With the LT-100, your application links the C library (a DLL on Windows, a .so on Linux) and talks to the card itself. With the LT-300, a service called the agent ( lt300agent ) runs in the background, owns the boards and serves the LT API. Your application, the ecurl command line and the Ecap app are all clients of that agent, and several of them can use the same input at the same time.

LT-100 seriesLT-300 series
IntegrationC library (DLL / .so) inside your applicationREST API served by the agent
LanguagesC, C++Python, Go, C++, C#, REST (any language)
Raw videoYUV 4:2:2yuyv or nv12
CompressionH.264 on the card, up to 1080p30 per channelH.264 / HEVC on the host GPU, up to 4K60
Testing without codeLimited: demo renderer app and DirectShow filter on WindowsEcap app and ecurl, on Windows and Linux
Operating systemsWindows 8, 10, 11, Ubuntu 22.04 and newer, Debian 12 and newerWindows 10/11, Ubuntu 22.04 and later
Warranty2 years3 years

What stays the same: DirectShow and standard capture devices

If your Windows application already uses the LT-100 through its DirectShow filter, it does not need a rewrite to see an LT-300. The agent exposes every board input as a DirectShow filter, so it works in any DirectShow-compatible application while the agent is running. DirectShow filters are on by default.

On Linux, the agent exposes the inputs as V4L2 devices, for GStreamer, OpenCV or FFmpeg. They are off by default: set v4l2Filters to true in the optional agent configuration file, placed next to the agent executable, restart the agent, then list the devices:

$ sudo lt300agent stop
$ sudo lt300agent start
$ v4l2-ctl --list-devices

The configuration file is only read when the agent starts, which is why it is restarted after the change. DirectShow and V4L2 are managed by the agent, so they only work while it runs.

Your first 15 minutes with an LT-300

Before the card arrives: try Ecap in your browser, on a simulated board, to see the inputs, recording and overlays you are going to drive.

Install and check: one installer sets up the drivers, the agent, ecurl and Ecap on Windows or Linux, and the agent starts automatically, now and at every boot. Check that it runs, then ask it about your board and its first input:

$ lt300agent status
$ ecurl get lt300:/0               # board 0: model, serial number, firmware
$ ecurl get lt300:/0/sdi-in/0      # signal on SDI input 0

Preview, snapshot, record: the jobs your LT-100 code does with the C library are one command each:

$ ecurl play lt300:/0/hdmi-in/0 -d media=video/yuyv     # live preview
$ ecurl get lt300:/0/sdi-in/0/file -d type=image/jpeg   # snapshot
$ ecurl rec lt300:/0/hdmi-in/0/file -d media=video/mp4  # record to MP4

Move the encoding to the GPU: where the LT-100 compressed H.264 on the card, the LT-300 records H.264 or HEVC with the host GPU. For example, HEVC on an NVIDIA GPU:

$ ecurl rec lt300:/0/sdi-in/0/file \
-d media=video/mp4 \
-d extra.hw=nvenc \
-d extra.codec=hevc

Bitrate, file splitting and recording several inputs at once are in the recording guide, and the ecurl command generator builds these commands for you.

The same call from your code

Every ecurl command is one API request, and the SDK makes the same request from Go, C++ or Python (C# since v1.5.0). Here is how the API programmer guide reads the state of HDMI output 0 on board 0:

// Go
var response lt.Output
err := lt.Get("lt300:/0/hdmi-out/0", &response)
// C++
lt::Output response;
lt::error err = lt::Get("lt300:/0/hdmi-out/0", response);
# Python
response, err = Get("lt300:/0/hdmi-out/0")

Since v1.5.0 the LT310 series is named LT300: with an older agent, use lt310: URLs and lt310agent instead.

Migration checklist

  • List your sources: SDI, HDMI, DVI or analog. Analog stays on the LT-100.
  • Pick the LT-300 card from the table above.
  • Check the host: Windows 10/11 or Ubuntu 22.04 and later, and a GPU for hardware encoding (NVIDIA NVENC, Intel Quick Sync or AMD AMF).
  • DirectShow application: test it with the LT-300 inputs as they are.
  • C library code: replace the capture, compression and recording calls with API requests, in the language you prefer.
  • Use the Ecap app and ecurl to compare the result with what your LT-100 system records today.

Moving a validated product to new hardware is a project, not a weekend. Tell us what your LT-100 system does today, and the engineers who wrote the API and designed the hardware will help you plan the move.

Share this article