Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ae49b15
Add OMT (Open Media Transport) module
mihava99 Sep 14, 2026
16b10e6
Merge branch 'CasparCG:master' into feature/omt
mihava99 Sep 27, 2026
6af9883
Merge branch 'CasparCG:master' into feature/omt
mihava99 Oct 7, 2026
0ec0610
build(omt): build the OMT runtime from source on Windows and Linux
mihava99 Oct 11, 2026
0aa40f0
build(linux): set up Docker and distro builds for the OMT runtime
mihava99 Oct 11, 2026
e8b8842
docs(omt): describe the source build of the OMT runtime
mihava99 Oct 11, 2026
d97401c
refactor(omt): restructure the OMT module into smaller functions
mihava99 Oct 11, 2026
7ac5de4
fix(omt): pass omt:// addresses to libomt unchanged
mihava99 Oct 11, 2026
d111537
fix(ffmpeg): leave omt:// URLs to the OMT producer
mihava99 Oct 11, 2026
098e148
fix(omt): refuse channels that are not 8-bit
mihava99 Oct 11, 2026
09f4907
fix(omt): convert with the color matrix that the frames are tagged with
mihava99 Oct 11, 2026
d87bf40
fix(omt): report unknown option values, and warn about ALPHA only whe…
mihava99 Oct 11, 2026
ccaf9d6
docs(omt): correct the OMT text in casparcg.config and libomt.h
mihava99 Oct 11, 2026
bc9ebdc
build(omt): ship the license texts of the OMT libraries
mihava99 Oct 11, 2026
39c8cc9
docs(omt): state what the OMT build needs from the network and the sy…
mihava99 Oct 11, 2026
f814dba
fix(omt): write the YV12 chroma planes in V, U order
mihava99 Oct 11, 2026
b171f55
fix(omt): create the sender again when the channel changes its video …
mihava99 Oct 11, 2026
88ad2e2
fix(omt): report it when libomt cannot create the sender
mihava99 Oct 11, 2026
2f58aaf
fix(omt): send the fields of an interlaced channel at the field rate
mihava99 Oct 11, 2026
154841c
fix(omt): refuse odd frame sizes for the pixel formats with subsample…
mihava99 Oct 11, 2026
f641519
fix(omt): list the sources one command at a time
mihava99 Oct 11, 2026
c7736cc
Merge branch 'CasparCG:master' into feature/omt
mihava99 Oct 12, 2026
340da4b
Merge branch 'CasparCG:master' into feature/omt
mihava99 Oct 13, 2026
fa69452
Merge branch 'CasparCG:master' into feature/omt
mihava99 Oct 15, 2026
8a53989
fix(omt): ignore received audio that the producer cannot convert safely
mihava99 Oct 15, 2026
b9a4f2c
fix(omt): log an exception while handling a received frame instead of…
mihava99 Oct 15, 2026
c0c1377
fix(omt): check that a received image holds the rows it announces
mihava99 Oct 15, 2026
48e4472
fix(omt): keep libomt loaded until the process ends
mihava99 Oct 15, 2026
71fa64a
docs(omt): note that libomt is done with the sent buffers when omt_se…
mihava99 Oct 15, 2026
70fefc6
build(omt): build the OMT runtime on its own with CMake
mihava99 Oct 20, 2026
a885079
build(deb): add an optional libomt package
mihava99 Oct 20, 2026
1ad71c2
build(deb): suggest libomt from the server packages
mihava99 Oct 20, 2026
6b4228f
chore(ci): build and test the libomt deb on Ubuntu 24.04 and 26.04
mihava99 Oct 20, 2026
341f83c
docs(omt): describe the optional libomt package
mihava99 Oct 20, 2026
2410c2f
fix(omt): use the next libomt when the first one lacks functions
mihava99 Oct 21, 2026
0824cf0
fix(omt): keep the send thread of the consumer running when a frame f…
mihava99 Oct 21, 2026
0a8c8ae
fix(deb): build the libomt package from the debian directory of the c…
mihava99 Oct 21, 2026
30f62fe
fix(omt): say why libomt could not be loaded
mihava99 Oct 21, 2026
857720f
Merge branch 'CasparCG:master' into feature/omt
mihava99 Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions .github/workflows/linux-libomt-deb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Build libomt deb

on:
push:
# branches: [ "master" ]
pull_request:
branches: ["master"]

# The optional package that enables OMT in the server. Debian has no .NET SDK in its archive, so only
# the Ubuntu releases are built here.
jobs:
build:
name: libomt on ${{ matrix.name }} ${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
include:
- { name: ubuntu-noble, image: "ubuntu:24.04", arch: amd64, os: ubuntu-latest }
- { name: ubuntu-resolute, image: "ubuntu:26.04", arch: amd64, os: ubuntu-latest }
# The OMT runtime has not been built on arm64 before.
- { name: ubuntu-resolute, image: "ubuntu:26.04", arch: arm64, os: ubuntu-24.04-arm, experimental: true }

runs-on: ${{ matrix.os }}
container: ${{ matrix.image }}
continue-on-error: ${{ matrix.experimental == true }}
defaults:
run:
shell: bash

steps:
# Before the checkout, so that it gets a real git checkout, which the build needs
- name: Install git
run: |
apt-get update
apt-get -y install git ca-certificates
env:
DEBIAN_FRONTEND: noninteractive

- uses: actions/checkout@v7

- name: Build the deb package
run: ./tools/linux/deb/build-libomt
env:
CI: 1

- uses: actions/upload-artifact@v7
with:
name: libomt-deb-${{ matrix.name }}-${{ matrix.arch }}
path: dist/deb/*.deb

# In a clean container, to see that the package finds every library it needs by itself.
install:
name: Install libomt on ${{ matrix.name }} ${{ matrix.arch }}
needs: build
strategy:
fail-fast: false
matrix:
include:
- { name: ubuntu-noble, image: "ubuntu:24.04", arch: amd64, os: ubuntu-latest }
- { name: ubuntu-resolute, image: "ubuntu:26.04", arch: amd64, os: ubuntu-latest }
- { name: ubuntu-resolute, image: "ubuntu:26.04", arch: arm64, os: ubuntu-24.04-arm, experimental: true }

runs-on: ${{ matrix.os }}
container: ${{ matrix.image }}
continue-on-error: ${{ matrix.experimental == true }}
defaults:
run:
shell: bash

steps:
- uses: actions/download-artifact@v4
with:
name: libomt-deb-${{ matrix.name }}-${{ matrix.arch }}

- name: Show what the package contains
run: |
dpkg-deb --info ./libomt_*.deb
dpkg-deb --contents ./libomt_*.deb

- name: Install the package
run: |
apt-get update
apt-get -y install ./libomt_*.deb python3
env:
DEBIAN_FRONTEND: noninteractive

- name: Check that every library is found
run: |
for library in libomt.so libvmx.so; do
ldd "$(dpkg -L libomt | grep "/$library\$")" | tee ldd.txt
if grep 'not found' ldd.txt; then exit 1; fi
done

# The server looks libomt up by its name on the library path of the system, and libomt needs
# ICU, libvmx and the functions that the server calls
- name: Check that the server can load libomt
run: |
python3 - <<'PYTHON'
import ctypes
libomt = ctypes.CDLL("libomt.so")
ctypes.CDLL("libvmx.so")
for name in ("omt_discovery_getaddresses", "omt_receive_create", "omt_receive", "omt_send_create", "omt_send"):
getattr(libomt, name)
PYTHON
1 change: 1 addition & 0 deletions .github/workflows/linux-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DDIAG_FONT_PATH="/usr/share/fonts/liberation/LiberationMono-Regular.ttf" \
-DENABLE_HTML=OFF \
-DOMT_BUILD_FROM_SOURCE=OFF \
-G Ninja

cmake --build build
Expand Down
22 changes: 22 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@ During the build, you can specify the CMake option `CASPARCG_DOWNLOAD_MIRROR` to
If you want to be able to build CasparCG offline, you may need to manually seed this cache. You can do so by placing the correct tar.gz or zip into a folder and using `CASPARCG_DOWNLOAD_CACHE` to tell CMake where to find it.
You can figure out which files you need by looking at each of the `ExternalProject_Add` function calls inside of [Bootstrap_Linux.cmake](./src/CMakeModules/Bootstrap_Linux.cmake) or [Bootstrap_Windows.cmake](./src/CMakeModules/Bootstrap_Windows.cmake). Some of the ones listed are optional, depending on other CMake flags.

# Open Media Transport (OMT)

The OMT runtime (libvmx, libomtnet and libomt) is cloned from https://github.com/openmediatransport at the revisions pinned in [OMT.cmake](./src/CMakeModules/OMT.cmake), and compiled as part of the CasparCG build. This works the same way on Windows and Linux, and the result is bundled next to the server. The sources are cloned into `omt-src` inside the build directory. The first build needs network access: `git` clones the sources from GitHub, and `dotnet` restores its NuGet packages from nuget.org, among them the Native AOT compiler and the reference assemblies. `CASPARCG_DOWNLOAD_MIRROR` and `CASPARCG_DOWNLOAD_CACHE` do not apply to it.

This needs, in addition to the normal build tools:

- The .NET SDK, version 8.0 or newer (`dotnet`)
- clang (`clang++`). On Windows this is LLVM, or the 'C++ Clang tools for Windows' component of Visual Studio. It must be in `PATH`.
- Linux only: the zlib development package (`zlib1g-dev`)

`./tools/linux/install-dependencies` installs all of these on Ubuntu. Configure with `-DOMT_BUILD_FROM_SOURCE=OFF` to skip the OMT runtime. The server still builds and runs, but OMT can only be used once libomt has been installed some other way.

The server only loads libomt when OMT is used, from the system library path or from the folder it was started from, so libomt can also be an optional package that is installed next to the server. Without it the server works, and an OMT consumer or producer reports that libomt was not found.

On Ubuntu 24.04 and later, `./tools/linux/deb/build-libomt` builds that package from the current commit, and `sudo apt install ./dist/deb/libomt_*.deb` installs it. The server packages suggest it. Debian has no .NET SDK in its archive, so the package is not built there. It builds the same OMT runtime at the same revisions, with `tools/linux/libomt/CMakeLists.txt`, so it needs the same network access and is not suitable for a Launchpad PPA build. When the revisions in [OMT.cmake](./src/CMakeModules/OMT.cmake) change, change the version in `tools/linux/deb/libomt/debian/changelog` to the version of libomt too.

To move to a newer upstream version, change the revisions at the top of [OMT.cmake](./src/CMakeModules/OMT.cmake), or override them with `-DOMT_LIBVMX_REVISION`, `-DOMT_LIBOMTNET_REVISION` and `-DOMT_LIBOMT_REVISION`.

At runtime on Linux, libomt loads ICU (`libicuuc` and `libicui18n`) and Avahi (`libavahi-client`) from the system.

# Windows

## Building distributable
Expand Down Expand Up @@ -96,6 +116,8 @@ If all goes to plan, a folder called 'staging' has been created with everything

-DUSE_SYSTEM_CEF=OFF - (Linux only, default ON) use the version of CEF from your OS. This expects to be using builds from https://launchpad.net/~casparcg/+archive/ubuntu/ppa

-DOMT_BUILD_FROM_SOURCE=OFF - (default ON) do not build the OMT runtime, see the Open Media Transport section above.

-DENABLE_AVX2=ON (Linux only, default OFF) Enable the AVX and AVX2 instruction sets (requires a CPU that supports it)

-DDIAG_FONT_PATH - Specify an alternate path/font to use for the DIAG window. On linux, this will often want to be set to an absolute path of a font
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ CasparCG Server uses the following third party libraries:
- SFML (http://www.sfml-dev.org/) under the zlib/libpng License.
- GLEW (http://glew.sourceforge.net) under the modified BSD License.
- boost (http://www.boost.org/) under the Boost Software License, version 1.0.
- libomt, libomtnet and libvmx of Open Media Transport (https://github.com/openmediatransport) under the MIT License.
2 changes: 2 additions & 0 deletions src/CMakeModules/Bootstrap_Linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ if (ENABLE_HTML)
endif()
endif ()

include(OMT)

SET (BOOST_INCLUDE_PATH "${Boost_INCLUDE_DIRS}")
SET (FFMPEG_INCLUDE_PATH "${FFMPEG_INCLUDE_DIRS}")

Expand Down
2 changes: 2 additions & 0 deletions src/CMakeModules/Bootstrap_Windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ casparcg_add_runtime_dependency("${FFMPEG_BIN_PATH}/swscale-9.dll")
casparcg_add_runtime_dependency("${FFMPEG_BIN_PATH}/ffmpeg.exe")
casparcg_add_runtime_dependency("${FFMPEG_BIN_PATH}/ffprobe.exe")

include(OMT)

get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)

set(EXTERNAL_CMAKE_ARGS "")
Expand Down
169 changes: 169 additions & 0 deletions src/CMakeModules/OMT.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
# Open Media Transport (OMT) runtime: libvmx, libomtnet and libomt.
#
# libomt is a .NET Native AOT library built on libomtnet, and it loads libvmx (a native video
# codec) at runtime. All three are cloned from GitHub at pinned revisions and compiled during
# the CasparCG build, the same way on Windows and Linux.
#
# The omt module never links against them. It loads libomt with LoadLibrary/dlopen on first use
# (see modules/omt/util/omt_util.cpp), so CasparCG still builds and starts with
# OMT_BUILD_FROM_SOURCE=OFF. OMT is then only usable once libomt has been installed some other way.
#
# Build requirements on every platform: the .NET SDK (8.0 or newer) and clang.
# Linux also needs the zlib development package, which Native AOT links against.
# The first build needs network access: git clones the sources from GitHub and dotnet restores
# its NuGet packages from nuget.org, among them the Native AOT compiler and the reference assemblies.

option(OMT_BUILD_FROM_SOURCE "Build the OMT runtime (libvmx, libomtnet, libomt) from source and bundle it" ON)

if (NOT OMT_BUILD_FROM_SOURCE)
message(STATUS "OMT runtime will not be built, libomt must be installed separately to use OMT")
return()
endif ()

# Change these to move to a newer upstream release. A branch name also works, for trying out
# unreleased changes, but then the build is no longer reproducible.
set(OMT_LIBVMX_REVISION a1828cb438823ebb777dcad20f9f56b633ae8db4 CACHE STRING "libvmx git revision")
set(OMT_LIBOMTNET_REVISION 029ef4e925c68973f3289eb0c7ecfd40a161166f CACHE STRING "libomtnet git revision")
set(OMT_LIBOMT_REVISION bb4b67be8e5964f1017592b9fc5406495e704e5d CACHE STRING "libomt git revision")

# --- Build tools ---------------------------------------------------------------------------

find_program(OMT_DOTNET_EXECUTABLE dotnet)
if (NOT OMT_DOTNET_EXECUTABLE)
message(FATAL_ERROR "Building the OMT runtime requires the .NET SDK, but 'dotnet' was not found in PATH.\n"
"Install it from https://dotnet.microsoft.com/download, or configure with "
"-DOMT_BUILD_FROM_SOURCE=OFF to build without OMT.")
endif ()

execute_process(
COMMAND "${OMT_DOTNET_EXECUTABLE}" --version
OUTPUT_VARIABLE OMT_DOTNET_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if (OMT_DOTNET_VERSION VERSION_LESS 8.0)
message(FATAL_ERROR "Building the OMT runtime requires .NET SDK 8.0 or newer, found '${OMT_DOTNET_VERSION}'.\n"
"Configure with -DOMT_BUILD_FROM_SOURCE=OFF to build without OMT.")
endif ()

find_program(OMT_CLANGXX_EXECUTABLE clang++)
if (NOT OMT_CLANGXX_EXECUTABLE)
message(FATAL_ERROR "Building the OMT runtime requires clang, but 'clang++' was not found in PATH.\n"
"Install it (on Windows: LLVM, or the 'C++ Clang tools for Windows' Visual Studio component), "
"or configure with -DOMT_BUILD_FROM_SOURCE=OFF to build without OMT.")
endif ()

# The Visual Studio developer environment sets Platform=x64. dotnet reads that as a build
# property and then writes libomtnet.dll to bin/x64/Release instead of the bin/Release that
# libomt.csproj looks in, so the variable is removed for every dotnet command.
set(OMT_DOTNET_COMMAND "${CMAKE_COMMAND}" -E env --unset=Platform "${OMT_DOTNET_EXECUTABLE}")

# --- Platform ------------------------------------------------------------------------------

# The runtime identifier tells 'dotnet publish' which platform to compile libomt for.
if (MSVC)
set(OMT_DOTNET_RUNTIME_ID win-x64)
set(OMT_LIBRARY_SUFFIX ".dll")
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64|amd64)$")
set(OMT_DOTNET_RUNTIME_ID linux-x64)
set(OMT_LIBRARY_SUFFIX ".so")
elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64)$")
set(OMT_DOTNET_RUNTIME_ID linux-arm64)
set(OMT_LIBRARY_SUFFIX ".so")
else ()
message(FATAL_ERROR "The OMT runtime cannot be built for ${CMAKE_SYSTEM_PROCESSOR}, "
"configure with -DOMT_BUILD_FROM_SOURCE=OFF to build without OMT.")
endif ()

# --- Layout --------------------------------------------------------------------------------

# libomt.csproj finds libomtnet through the relative path ../libomtnet, so those two checkouts
# have to be siblings.
set(OMT_SOURCE_ROOT "${CMAKE_BINARY_DIR}/omt-src")
set(OMT_LIBVMX_DIR "${OMT_SOURCE_ROOT}/libvmx")
set(OMT_LIBOMTNET_DIR "${OMT_SOURCE_ROOT}/libomtnet")
set(OMT_LIBOMT_DIR "${OMT_SOURCE_ROOT}/libomt")
set(OMT_LIBOMT_PUBLISH_DIR "${OMT_SOURCE_ROOT}/libomt-publish")

set(OMT_LIBVMX_LIBRARY "${OMT_LIBVMX_DIR}/build/libvmx${OMT_LIBRARY_SUFFIX}")
set(OMT_LIBOMT_LIBRARY "${OMT_LIBOMT_PUBLISH_DIR}/libomt${OMT_LIBRARY_SUFFIX}")
set(OMT_LIBOMTNET_ASSEMBLY "${OMT_LIBOMTNET_DIR}/bin/Release/netstandard2.0/libomtnet.dll")

# --- libvmx --------------------------------------------------------------------------------

# These mirror the build scripts in libvmx/build. The x86 build includes the AVX2 code, which
# the codec only calls when the CPU supports it. The ARM build uses NEON instead.
set(OMT_LIBVMX_FLAGS -O3 -std=c++17 -fdeclspec -shared)
if (MSVC)
list(APPEND OMT_LIBVMX_FLAGS -mlzcnt -mavx2 -mbmi "-Wl,/DEF:${OMT_LIBVMX_DIR}/exports.def")
set(OMT_LIBVMX_SOURCES vmxcodec_x86.cpp vmxcodec_avx2.cpp vmxcodec.cpp)
elseif (OMT_DOTNET_RUNTIME_ID STREQUAL "linux-x64")
list(APPEND OMT_LIBVMX_FLAGS -fPIC -mlzcnt -mavx2 -mbmi "-Wl,-rpath,$ORIGIN")
set(OMT_LIBVMX_SOURCES vmxcodec_x86.cpp vmxcodec_avx2.cpp vmxcodec.cpp)
else ()
list(APPEND OMT_LIBVMX_FLAGS -fPIC "-Wl,-rpath,$ORIGIN")
set(OMT_LIBVMX_SOURCES vmxcodec_arm.cpp vmxcodec.cpp)
endif ()
list(TRANSFORM OMT_LIBVMX_SOURCES PREPEND "${OMT_LIBVMX_DIR}/src/")

casparcg_add_external_project(libvmx)
ExternalProject_Add(libvmx
GIT_REPOSITORY https://github.com/openmediatransport/libvmx.git
GIT_TAG ${OMT_LIBVMX_REVISION}
SOURCE_DIR "${OMT_LIBVMX_DIR}"
CONFIGURE_COMMAND ""
BUILD_IN_SOURCE TRUE
BUILD_COMMAND "${OMT_CLANGXX_EXECUTABLE}" ${OMT_LIBVMX_FLAGS} ${OMT_LIBVMX_SOURCES} -o "${OMT_LIBVMX_LIBRARY}"
INSTALL_COMMAND ""
BUILD_BYPRODUCTS "${OMT_LIBVMX_LIBRARY}"
)

# --- libomtnet and libomt ------------------------------------------------------------------

# Only netstandard2.0 is needed by libomt. The solution also targets net40, which would need
# the .NET Framework reference assemblies.
casparcg_add_external_project(libomtnet)
ExternalProject_Add(libomtnet
GIT_REPOSITORY https://github.com/openmediatransport/libomtnet.git
GIT_TAG ${OMT_LIBOMTNET_REVISION}
SOURCE_DIR "${OMT_LIBOMTNET_DIR}"
CONFIGURE_COMMAND ""
BUILD_IN_SOURCE TRUE
BUILD_COMMAND ${OMT_DOTNET_COMMAND} build libomtnet.csproj -c Release -f netstandard2.0
INSTALL_COMMAND ""
BUILD_BYPRODUCTS "${OMT_LIBOMTNET_ASSEMBLY}"
)

# Publishing runs the Native AOT compiler, which turns libomt and libomtnet into one native
# shared library with C exports.
casparcg_add_external_project(libomt)
ExternalProject_Add(libomt
GIT_REPOSITORY https://github.com/openmediatransport/libomt.git
GIT_TAG ${OMT_LIBOMT_REVISION}
SOURCE_DIR "${OMT_LIBOMT_DIR}"
CONFIGURE_COMMAND ""
BUILD_IN_SOURCE TRUE
BUILD_COMMAND ${OMT_DOTNET_COMMAND} publish libomt.csproj -c Release -r ${OMT_DOTNET_RUNTIME_ID}
-o "${OMT_LIBOMT_PUBLISH_DIR}"
INSTALL_COMMAND ""
DEPENDS libomtnet
BUILD_BYPRODUCTS "${OMT_LIBOMT_LIBRARY}"
)

# --- Bundling ------------------------------------------------------------------------------

# libomt looks for libvmx in its own directory, so both go to the same place.
# The MIT license of the three projects asks for its notice to come with the libraries. On Windows
# tools/windows/package.bat copies the texts. Linux packages for a distribution ship them their own
# way, so only the portable folder gets them here.
if (MSVC)
casparcg_add_runtime_dependency("${OMT_LIBOMT_LIBRARY}")
casparcg_add_runtime_dependency("${OMT_LIBVMX_LIBRARY}")
else ()
install(FILES "${OMT_LIBOMT_LIBRARY}" "${OMT_LIBVMX_LIBRARY}" TYPE LIB)

if ("${CASPARCG_BINARY_NAME}" STREQUAL "casparcg")
install(FILES "${OMT_LIBVMX_DIR}/LICENSE.txt" DESTINATION licenses RENAME libvmx.txt)
install(FILES "${OMT_LIBOMTNET_DIR}/LICENSE.txt" DESTINATION licenses RENAME libomtnet.txt)
install(FILES "${OMT_LIBOMT_DIR}/LICENSE.txt" DESTINATION licenses RENAME libomt.txt)
endif ()
endif ()
1 change: 1 addition & 0 deletions src/modules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ add_subdirectory(decklink)
add_subdirectory(screen)
add_subdirectory(newtek)
add_subdirectory(artnet)
add_subdirectory(omt)

if (ENABLE_HTML)
add_subdirectory(html)
Expand Down
5 changes: 4 additions & 1 deletion src/modules/ffmpeg/producer/ffmpeg_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ boost::tribool has_valid_extension(const boost::filesystem::path& filename)

bool has_invalid_protocol(const std::wstring& filename) { return boost::algorithm::istarts_with(filename, L"ndi://"); }

// The OMT producer plays these.
bool is_omt_url(const std::wstring& filename) { return boost::algorithm::istarts_with(filename, L"omt://"); }

bool is_readable(const boost::filesystem::path& filename)
{
boost::filesystem::ifstream file(filename);
Expand Down Expand Up @@ -286,7 +289,7 @@ spl::shared_ptr<core::frame_producer> create_producer(const core::frame_producer
} else {
return core::frame_producer::empty();
}
} else if (!has_valid_extension(path) || has_invalid_protocol(path)) {
} else if (!has_valid_extension(path) || has_invalid_protocol(path) || is_omt_url(path)) {
return core::frame_producer::empty();
}

Expand Down
Loading
Loading