The Media Transport Library(Kahawai) is a solution based on DPDK prepared for transmitting and receiving media data with high throughput and low latency. It include a efficient user space udp stack support, beside UDP, it also has a built-in compliant implementation to the SMPTE ST 2110 Professional Media Over Managed IP Networks suite of standards.
- User-space UDP stack with POSIX socket compatible API.
- ST2110-10, ST2110-20, ST2110-21, ST2110-30, ST2110-40, ST2110-22, ST2022-7
- 1080p, 720p, 4k, 8k and other
- FPS: 120, 119.88, 100, 60, 59.94, 50, 30, 29.97, 25, 24, 23.98
- All the video format listed in ST2110-20, include YUV 4:2:2 10bit and others.
- CSC support status: status
Media transport library takes advantage DPDK features to implement a highly efficient, real-time & low-latency media transport stack, software based media transport makes it feasible for edge and cloud deployment based on COTS hardware.
Kahawai introduce a tasklet async based scheduler to fully utilize CPU resources, easy integration with different packet processing unit and accelerators.
The packet pacing module support different ways(algorithm) to acheive narrow pacing, RL(rate limit) is partially hardware offload while TSC is fully software based.
Kahawai also develope SIMD CSC(color space format covert), DMA, plugin interface to build a fulll video production ecosystem.
Please refer to build guide for how to build DPDK, the library and the sample application.
For Windows, please refer to Win build guide for how to build.
Please refer to run guide for how to setup and run the demo pipeline application.
For Windows, please refer to Win run guide for how to setup and run the demo.
For VF and VM support under Linux, please refer to vf guide for how to setup VF based on SRIOV, vm guide for how to setup VM based on VF passthrough.
For AWS (cloud environment), please refer to AWS run guide for how to setup and run the demo.
For how to develop application quickly based on Kahawai library, pls refer to sample code.
From 23.03.0 version, Media transport library extend the support to user-space UDP stack which run directly under current process context for performance consideration. Other user-space UDP stack usually run with client-service architect, it introduce a cross-core message cost which hurt the performance. Our stack are running NIC tx/rx function from the sendto/recvfrom API directly which save the cross-core call and keep the data affinity(LLC) to the UDP consumer.
For how to use the UDP API, pls refer to udp sample code.
We welcome community contributions to the Media Transport Library project. If you have any ideas/issues, please share it with us by the GitHub issues or opening a pull request.
We use super-linter action for the style check.
For C/C++ coding, run below command to quickly fix the style.
./format-coding.sh
For others, please check with below example command inside the docker.
# super-linter
docker run -it --rm -v "$PWD":/opt/ --entrypoint /bin/bash github/super-linter
cd /opt/
# echo "shell check"
find ./ -name "*.sh" -exec shellcheck {} \;
# hadolint check
hadolint docker/ubuntu.dockerfile
# actionlint check
actionlint
# markdownlint check
find ./ -name "*.md" -exec markdownlint {} -c .markdown-lint.yml \;
# find ./ -name "*.md" -exec markdownlint {} --fix -c .markdown-lint.yml \;
# textlint
find ./ -name "*.md" -exec textlint {} \;
# find ./ -name "*.md" -exec textlint {} --fix \;