fakeOrigin is a simple HLS video server, capable of simulating live video traffic. It can:
From the root of the trafficcontrol repository use the pkg
script such as:
./pkg -o fakeorigin_build
Since this is considered an extra non-required component of the overall functionality of Apache Traffic Control, it's placed in the optional grouping not built by default by pkg
.
Local build pre-requesites:
brew install go
brew install ffmpeg --with-rtmp-dump
and/or just a modern version of Docker & docker-compose
If you're building locally, just run go get github.com/apache/trafficcontrol/test/fakeOrigin
If you're just using docker, clone this repository.
Running locally:
Usage: fakeOrigin (generates a minimal config.json next to binary) fakeOrigin -cfg config.json (same as above, but specify the location)
Running in docker:
docker-compose build --no-cache docker-compose up --force-recreate ... customize the config.json created in ./docker_host (maps to /host inside the container, it's really important to customize this appropriately) docker-compose up --force-recreate
On startup it will print any routes that are available after transcoding. You should just be able to plug those m3u8 url into VLC to start streaming.
I'd highly recommend going and reading about the Configuration to learn about what fakeOrigin can do.
There is also another set of instructions if you're interested in building your own RPMs and binaries.