Closed rose-jinyang closed 1 year ago
Hi @rose-jinyang ,
if you are looking for how to use audio APIs, the VAPIX library has a section for Audio systems where I see RTSP
streams are mentioned.
Since you opened an issue in this ACAP application example repository, I suspect you are looking for an example of axaudio
which we don't have. But you have the API documentation and in the technical pages you find an example file axaudioexample.c that hopefully can give you some ideas on how to use this API.
A full example of axaudio
with files manifest.json
, Makefile
, LICENSE
etc. would be very similar to the structure of vdostream example.
I could run a local example by
Copy vdostream example
Replace vdoencodeclient.c with axaudioexample.c
Update names in manifest.json, something like
{
"schemaVersion": "1.3",
"acapPackageConf": {
"setup": {
"friendlyName": "audioApp",
"appName": "audioApp",
"vendor": "Axis Communications",
"embeddedSdkVersion": "3.0",
"user": {
"group": "sdk",
"username": "sdk"
},
"runMode": "never",
"version": "1.0.0"
}
}
}
Update names in Makefile, something like
PROGS = audioApp
PKGS = glib-2.0 gio-2.0 axaudio
CFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags $(PKGS))
LDLIBS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs $(PKGS))
LDLIBS += -lm
CFLAGS += -Wall -g -O2
SRCS = axaudioexample.c
OBJS = $(SRCS:.c=.o)
all: $(PROGS)
$(PROGS): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
clean:
rm -f $(PROGS) *.o pa* *.eap* *_LICENSE.txt
Hello How are you? Thanks for contributing to this project. I am going to process audio through RTSP stream. Where can I get a sample for audio processing from RTSP stream?