This is demonstration / example code for https://github.com/WestRidgeSystems/jmisb
It uses GStreamer to demux the KLV stream, before passing that to a Sink that decodes it and outputs the message type. Consult the GStreamer documentation and source code as required.
It will only work with asynchronous streams because of limitations in how GStreamer demux works. Its a known bug.
This example is considered a work-in-progress.
To build it, use maven.
mvn clean install
There are several ways to invoke it. One way is:
java -jar target/gstsink-1.10.1-jar-with-dependencies.jar {filename}
For example:
java -jar target/gstsink-1.10.1-jar-with-dependencies.jar ~/KLV_samples/HD_H264_06011_TS_ASYN_V1_001.mpg
You should adjust the version part to match the current version number.
The output looks like:
/home/bradh/KLV_samples/HD_H264_06011_TS_ASYN_V1_001.mpg
ST 0601
ST 0601
ST 0601
ST 0601
ST 0601
ST 0601
ST 0601
ST 0601
ST 0601
This requires developer level assistance - please send pull requests.