[vlc-devel] New Serivces Discovery Module for Onvif Cameras

Stephen Rhodes sr99622 at gmail.com
Sat Mar 2 15:22:53 CET 2019


Hello All,

I have developed a services_discovery module for VLC that will find ip
cameras on the local network that are onvif compatible using udp
broadcast.  It includes a setting for a default username and password on
the preferences panel.  This can be very useful for those who like to use
VLC to work with ip cameras, as it will no longer be necessary to manually
input the RTSP string.

Three files are attached that are placed into the
modules/services_discovery folder,  onvifdisc.c, onvif.c and onvif.h.  Some
modification to the Makefile.am is required as well.  It has dependency on
libxml2 and nettle.

diff --git a/modules/services_discovery/Makefile.am
b/modules/services_discovery/Makefile.am
index efd9cf6..0d6f928 100644
--- a/modules/services_discovery/Makefile.am
+++ b/modules/services_discovery/Makefile.am
@@ -13,6 +13,14 @@ libsap_plugin_la_CFLAGS = $(AM_CFLAGS) $(CFLAGS_sap)
 libsap_plugin_la_LIBADD = $(LIBS_sap) $(SOCKET_LIBS)
 sd_LTLIBRARIES += libsap_plugin.la

+libonvifdisc_plugin_la_SOURCES = services_discovery/onvifdisc.c
services_discovery/onvif.c services_discovery/onvif.h
+libonvifdisc_plugin_la_CFLAGS = $(LIBXML2_CFLAGS) $(NETTLE_CFLAGS)
+libonvifdisc_plugin_la_LIBADD = $(LIBXML2_LIBS) $(NETTLE_LIBS)
+sd_LTLIBRARIES += libonvifdisc_plugin.la
+if HAVE_WIN32
+libonvifdisc_plugin_la_LIBADD += -liphlpapi
+endif
+
 libavahi_plugin_la_SOURCES = services_discovery/avahi.c
 libavahi_plugin_la_CFLAGS = $(AM_CFLAGS) $(AVAHI_CFLAGS)
 libavahi_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(sddir)'

I'm hoping this module can be added to the official VLC distribution.  It
has been well tested against a variety of cameras including

HIKVISION, DAHUA, AXIS, SUNBA, AMCREST, SPECO, TRENDNET, REOLINK, FOSCAM,
UTALENT, VIVOTEK, HIKAM

Thank you for your consideration,

Stephen Rhodes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190302/a2ce787a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onvifdisc.c
Type: text/x-csrc
Size: 28834 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190302/a2ce787a/attachment-0002.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onvif.c
Type: text/x-csrc
Size: 79518 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190302/a2ce787a/attachment-0003.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onvif.h
Type: text/x-chdr
Size: 5205 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190302/a2ce787a/attachment-0001.h>


More information about the vlc-devel mailing list