GVAMETAPUBLISH¶
A GStreamer element to publish JSON data to a designated file, or a chosen message broker:
File (default)
MQTT broker
Kafka broker
Build components¶
Build libraries either through docker or on host machine
Follow instructions here: https://github.com/openvinotoolkit/dlstreamer_gst/wiki/Install-Guide#install-message-brokers-optional Docker image built with Dockerfile will include all necessary dependencies for kafka/mqtt. If building on host machine these dependencies will be resolved by the install_metapublish_dependencies.sh script
Run metapublish sample to test
Create your own pipeline and add gvametapublish element with the following parameters:
gvametapublish method=file filepath=/root/video-example/detections_2019.json
Optionally provide file-format=json-lines to have raw JSON inferences written to the file, or file-format=json (default) to have the file populated as an array of JSON inferences:
gvametapublish method=file filepath="/root/video-examples/detections_2019.json" file-format=json-lines
To publish data to mqtt broker:
`bash gvametapublish method=mqtt address=127.0.0.1:1883 mqtt-client-id=clientIdValue topic=topicName `
To publish data to kafka broker:
`bash gvametapublish method=kafka address=127.0.0.1:9092 topic=topicName `
Note: *method is a required property of gvametapublish element.