1.whate element can paly audio file?
2.how to contrl the audio paly or pause?
“DeepStream SDK is based on the GStreamer framework.”
How are you connecting to Gstreamer? (eg gst-launch
, or via python bindings, c, etc)
Do you just want to play audio? eg gst-launch-1.0 audiotestsrc ! audioconvert ! audioresample ! pulsesink
If using eg python, you can use the pipeline method set_state(Gst.State.PAUSED)
or set_state(Gst.State.PLAYING)
, etc
1.I use gst-launch to connect to Gstreamer.
2.I want to play audio for the alarm when Tx2 detect a person ,white Tx2 decode the vidio from the camera . So I want to know how to control the audio for the alarm.
thank you very much!!!
I cant think of a way to play audio conditionally based on frame metadata using gst-launch
. At least not without first building a custom plugin to handle metadata parsing and muting the sound, or somthing like this…
What about python or c++?
- python
- cpp: see eg
/opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-test1/deepstream_test1_app.c
once there, you could
- attach a probe to the inference engine srcpad
- parse frames and extract nvds metadata
- play/mute/pause/whatever a sound, using any language tool to play audio