gst-launch-1.0 is a command-line utility included with the popular GStreamer media framework. It makes the construction and execution of media pipelines easy based on a simple and intuitive string format. Pipelines are represented as strings containing the names of GStreamer elements separated by exclamation marks
!. Users can specify properties of an element using
value pairs after an element name and before the next exclamation mark.
This sample builds a GStreamer pipeline using the following elements
decodebinfor audio decoding
audiomixerfor converting and resizing audio input
fakesinkfor terminating the pipeline
This sample uses the ACLNet model trained for audio event detection and made available through the Open Model Zoo. For more details see here.
NOTE: Before running this sample you'll need to download and prepare the model. Execute
samples/download_models.shonce to download and prepare models for all audio samples.
Along with the model network and weights, gvaudiodetect uses an additional
model-proc json file that describes how to prepare the input for the model and interpret its output.
model-proc is a JSON file that describes the output layer name and label mapping (Cat, Dog, Baby Crying) for the output of the model. For each possible output of the model (specified using a zero based index) you can set a label and output specific threshold. Check here.
Where [INPUT_PATH] can be:
By default, if no [INPUT_PATH] is specified, the sample uses a local file