Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: timvideos/gst-switch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fe53a5a4dc02
Choose a base ref
...
head repository: timvideos/gst-switch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d5fd068c6377
Choose a head ref
  • 9 commits
  • 5 files changed
  • 1 contributor

Commits on Oct 6, 2013

  1. final saving

    Duzy Chan committed Oct 6, 2013
    Copy the full SHA
    c4f8fe3 View commit details

Commits on Oct 8, 2013

  1. accepting custom source segment for gst-switch-cap

    Duzy Chan committed Oct 8, 2013
    Copy the full SHA
    f41c341 View commit details
  2. concate all arguments for source segment

    Duzy Chan committed Oct 8, 2013
    Copy the full SHA
    d8d6b7a View commit details
  3. ptz-ui: add some paddings

    Duzy Chan committed Oct 8, 2013
    Copy the full SHA
    5e35e66 View commit details

Commits on Oct 10, 2013

  1. ptz: adjust padding/spacing/bolding

    Duzy Chan committed Oct 10, 2013
    Copy the full SHA
    6cb84d1 View commit details
  2. ptz: updates more spacing/padding

    Duzy Chan committed Oct 10, 2013
    Copy the full SHA
    7e699c2 View commit details

Commits on Oct 15, 2013

  1. bug fixes, fixed zooming feature

    Duzy Chan committed Oct 15, 2013
    Copy the full SHA
    2009f02 View commit details

Commits on Oct 20, 2013

  1. * start working with gstreamer 1.2

    * try working with PKG_CONFIG_PATH=~/gst/stage/lib/pkgconfig
    Duzy Chan committed Oct 20, 2013
    Copy the full SHA
    b612e0b View commit details

Commits on Nov 27, 2013

  1. make slider PT controlling fast responding

    Duzy Chan committed Nov 27, 2013
    Copy the full SHA
    d5fd068 View commit details
Showing with 269 additions and 86 deletions.
  1. +2 −0 autogen.example
  2. +50 −7 configure.ac
  3. +32 −0 m4/gst.m4
  4. +16 −1 tools/gstswitchcapture.c
  5. +169 −78 tools/gstswitchptz.c
2 changes: 2 additions & 0 deletions autogen.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export PKG_CONFIG_PATH=/home/duzy/gst/stage/lib/pkgconfig
./autogen.sh --prefix=/home/duzy/gst/stage
57 changes: 50 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -33,6 +33,17 @@ AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, [ ], [
AC_MSG_ERROR([You need to have pkg-config installed!])
])

#AG_GST_ARG_WITH_PKG_CONFIG_PATH

#AG_GST_PKG_CONFIG_PATH

#AC_ARG_WITH(pkg-config-path,
# AC_HELP_STRING([--with-pkg-config-path], [colon-separated list of pkg-config(1) dirs]),
# [
# export PKG_CONFIG_PATH=${withval}
# AC_MSG_NOTICE(Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH)
# ])

PKG_CHECK_MODULES(GIO, [
gio-2.0 >= 2.25.0
], [
@@ -121,13 +132,45 @@ PKG_CHECK_MODULES(GST, [
AC_SUBST(GST_CFLAGS)
AC_SUBST(GST_LIBS)
], [
AC_MSG_ERROR([
You need to install or upgrade the GStreamer development
packages on your system. On debian-based systems these are
libgstreamer1.0-dev and libgstreamer-plugins-base1.0-dev.
on RPM-based systems gstreamer1.0-devel, libgstreamer1.0-devel
or similar. The minimum version required is $GST_REQUIRED.
])
HAS_GSTREAMER=no
HAS_GSTREAMER_BASE=no
HAS_GSTREAMER_CONTROLLER=no
HAS_GSTREAMER_VIDEO=no
if $PKG_CONFIG --exists gstreamer-1.0 ; then
GST_CFLAGS="$GST_CFLAGS `$PKG_CONFIG --cflags gstreamer-1.0`"
GST_LIBS="$GST_LIBS `$PKG_CONFIG --libs gstreamer-1.0`"
HAS_GSTREAMER=yes
fi
if $PKG_CONFIG --exists gstreamer-base-1.0 ; then
GST_CFLAGS="$GST_CFLAGS `$PKG_CONFIG --cflags gstreamer-base-1.0`"
GST_LIBS="$GST_LIBS `$PKG_CONFIG --libs gstreamer-base-1.0`"
HAS_GSTREAMER_BASE=yes
fi
if $PKG_CONFIG --exists gstreamer-controller-1.0 ; then
GST_CFLAGS="$GST_CFLAGS `$PKG_CONFIG --cflags gstreamer-controller-1.0`"
GST_LIBS="$GST_LIBS `$PKG_CONFIG --libs gstreamer-controller-1.0`"
HAS_GSTREAMER_CONTROLLER=yes
fi
if $PKG_CONFIG --exists gstreamer-video-1.0 ; then
GST_CFLAGS="$GST_CFLAGS `$PKG_CONFIG --cflags gstreamer-video-1.0`"
GST_LIBS="$GST_LIBS `$PKG_CONFIG --libs gstreamer-video-1.0`"
HAS_GSTREAMER_VIDEO=yes
fi
echo "GST_CFLAGS: $GST_CFLAGS `$PKG_CONFIG --cflags gstreamer-1.0`"
echo "GST_LIBS: $GST_LIBS `$PKG_CONFIG --libs gstreamer-1.0`"
if test "x$HAS_GSTREAMER" = "xno" ||\
test "x$HAS_GSTREAMER_BASE" = "xno" ||\
test "x$HAS_GSTREAMER_CONTROLLER" = "xno" ||\
test "x$HAS_GSTREAMER_VIDEO" = "xno" \
; then
AC_MSG_ERROR([
You need to install or upgrade the GStreamer development
packages on your system. On debian-based systems these are
libgstreamer1.0-dev and libgstreamer-plugins-base1.0-dev.
on RPM-based systems gstreamer1.0-devel, libgstreamer1.0-devel
or similar. The minimum version required is $GST_REQUIRED.
])
fi
])

dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
32 changes: 32 additions & 0 deletions m4/gst.m4
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
dnl AG_GST_PKG_CONFIG_PATH
dnl
dnl sets up a GST_PKG_CONFIG_PATH variable for use in Makefile.am
dnl which contains the path of the in-tree pkgconfig directory first
dnl and then any paths specified in PKG_CONFIG_PATH.
dnl
dnl We do this mostly so we don't have to use unportable shell constructs
dnl such as ${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} in Makefile.am to handle
dnl the case where the environment variable is not set, but also in order
dnl to avoid a trailing ':' in the PKG_CONFIG_PATH which apparently causes
dnl problems with pkg-config on windows with msys/mingw.
AC_DEFUN([AG_GST_PKG_CONFIG_PATH],
[
GST_PKG_CONFIG_PATH="\$(top_builddir)/pkgconfig"
if test "x$PKG_CONFIG_PATH" != "x"; then
GST_PKG_CONFIG_PATH="$GST_PKG_CONFIG_PATH:$PKG_CONFIG_PATH"
fi
AC_SUBST([GST_PKG_CONFIG_PATH])
AC_MSG_NOTICE([Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH])
])

AC_DEFUN([AG_GST_ARG_WITH_PKG_CONFIG_PATH],
[
dnl possibly modify pkg-config path
AC_ARG_WITH(pkg-config-path,
AC_HELP_STRING([--with-pkg-config-path],
[colon-separated list of pkg-config(1) dirs]),
[
export PKG_CONFIG_PATH=${withval}
AC_MSG_NOTICE(Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH)
])
])
17 changes: 16 additions & 1 deletion tools/gstswitchcapture.c
Original file line number Diff line number Diff line change
@@ -71,6 +71,8 @@ G_DEFINE_TYPE (GstSwitchCaptureWorker, gst_switch_capture_worker,
gboolean verbose = FALSE;
const char *device = "/dev/ttyUSB0";
const char *protocol = "visca";
const char **srcsegments = NULL;
int srcsegmentc = 0;

static GOptionEntry options[] = {
{"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose, "Be verbose", NULL},
@@ -119,7 +121,15 @@ gst_switch_capture_pipeline (GstWorker * worker, GstSwitchCapture * capture)
"filesrc location=\"/home/duzy/Downloads/locked-mode-7010.dv\" ");
g_string_append_printf (desc, "! dvdemux ! dvdec ");
} else {
g_string_append_printf (desc, "v4l2src ! tee name=video ");
if (0 < srcsegmentc && srcsegments) {
int n = 0;
for (; n < srcsegmentc; ++n) {
g_string_append_printf (desc, "%s ", srcsegments[n]);
}
} else {
g_string_append_printf (desc, "v4l2src ");
}
g_string_append_printf (desc, "! tee name=video ");
}

g_string_append_printf (desc, "video. ! queue2 ");
@@ -459,6 +469,11 @@ main (int argc, char **argv)
gst_switch_capture_parse_args (&argc, &argv);
gst_init (&argc, &argv);

if (1 < argc) {
srcsegments = (const char **) (argv + 1);
srcsegmentc = argc - 1;
}

capture = GST_SWITCH_CAPTURE (g_object_new (GST_TYPE_SWITCH_CAPTURE, NULL));

gst_switch_capture_run (capture);
Loading