Commit aee7fd5d authored by Lori Anderson's avatar Lori Anderson

Restructured the test programs to this directory. Changed from simple...

Restructured the test programs to this directory.  Changed from simple Makefiles to automake environment to be consistent with rest of submodules.
parent 2162ffbb
......@@ -18,11 +18,10 @@ INSTALL
install-sh
libtool
ltmain.sh
Makefile
Makefile.in
missing
stamp-h1
playspeeds-test
general-test
*.mkv
*.ogv
*.mpg
......
CableLabs
Put your license in here!
2013-07-08 CableLabs
* initial creation
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = general playspeeds
Nothing much yet.
WHAT IT IS
----------
This is a collection of C test programs to assist in development of CableLabs supplied GStreamer elements.
HOW TO BUILD IT
---------------
Issue the following commands from the test directory:
./autogen.sh
This will produce a Makefile, initiate the make via:
make
Install the plugin via:
(sudo make install) no longer necessary???
This plugin will be built when entering the same commands from gst-plugins-cl (parent directory) or
individual test subdirectories
TESTING
-------
The "general" test program has a bunch of options to test many different scenarios. It can be used to test GStreamer playbin pipeline or a manually built pipeline. See help for complete listing of options.
The "playspeeds" test program is from a GStreamer tutorial modified to support GStreamer 1.0 and to take command line args for UI. It also is built via the make target and has a script to run the program.
#!/bin/sh
# you can either set the environment variables AUTOCONF, AUTOHEADER, AUTOMAKE,
# ACLOCAL, AUTOPOINT and/or LIBTOOLIZE to the right versions, or leave them
# unset and get the defaults
autoreconf --verbose --force --install --make || {
echo 'autogen.sh failed';
exit 1;
}
./configure || {
echo 'configure failed';
exit 1;
}
echo
echo "Now type 'make' to compile this module."
echo
AC_PREREQ([2.62])
AC_INIT([test], [1.0])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
LT_PREREQ([2.2])
LT_INIT([dlopen])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SUBDIRS([general playspeeds])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
*.o
*.la
*.lo
*.so
*.Plo
*~
.deps
.dirstamp
.libs
.project
aclocal.m4
autom4te.cache
config.*
configure
configure.in
depcomp
INSTALL
install-sh
libtool
ltmain.sh
Makefile
Makefile.in
missing
stamp-h1
general
*.mkv
*.ogv
*.mpg
*.txt
*.log
*.out
This diff is collapsed.
2013-07-08 CableLabs
* initial creation
general-test: general-test.c
gcc general-test.c -o general-test -lm `pkg-config --cflags --libs gstreamer-1.0`
.PHONY: clean
clean:
rm -f *.o general-test *~ core
bin_PROGRAMS = general
general_SOURCES = general-test.c
general_CFLAGS = $(GST_CFLAGS)
general_LDADD = $(GST_LIBS) -lm
general_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
general_LIBTOOLFLAGS = --tag=disable-static
Nothing much yet.
WHAT IT IS
----------
This is a collection of C test programs to assist in development of CableLabs supplied GStreamer elements.
HOW TO BUILD IT
---------------
Issue the following commands from the test directory:
./autogen.sh
This will produce a Makefile, initiate the make via:
make
Install the plugin via:
(sudo make install) no longer necessary???
This plugin will be built when entering the same commands from gst-plugins-cl (parent directory) or
individual test subdirectories
TESTING
-------
The "general" test program has a bunch of options to test many different scenarios. It can be used to test GStreamer playbin pipeline or a manually built pipeline. See help for complete listing of options.
The "playspeeds" test program is from a GStreamer tutorial modified to support GStreamer 1.0 and to take command line args for UI. It also is built via the make target and has a script to run the program.
#!/bin/sh
# you can either set the environment variables AUTOCONF, AUTOHEADER, AUTOMAKE,
# ACLOCAL, AUTOPOINT and/or LIBTOOLIZE to the right versions, or leave them
# unset and get the defaults
autoreconf --verbose --force --install --make || {
echo 'autogen.sh failed';
exit 1;
}
./configure || {
echo 'configure failed';
exit 1;
}
echo
echo "Now type 'make' to compile this module."
echo
dnl required version of autoconf
AC_PREREQ([2.53])
dnl TODO: fill in your package name and package version here
AC_INIT([general-test],[1.0.0])
dnl required versions of gstreamer and plugins-base
GST_REQUIRED=1.0.0
GSTPB_REQUIRED=1.0.0
AC_CONFIG_SRCDIR([general-test.c])
AC_CONFIG_HEADERS([config.h])
dnl required version of automake
AM_INIT_AUTOMAKE([1.11 subdir-objects])
AM_SILENT_RULES([yes])
dnl enable mainainer mode by default
AM_MAINTAINER_MODE([enable])
dnl check for tools (compiler etc.)
AC_PROG_CC
dnl required version of libtool
LT_PREREQ([2.2.6])
LT_INIT
dnl give error and exit if we don't have pkgconfig
AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, [ ], [
AC_MSG_ERROR([You need to have pkg-config installed!])
])
dnl Check for the required version of GStreamer core (and gst-plugins-base)
dnl This will export GST_CFLAGS and GST_LIBS variables for use in Makefile.am
dnl
dnl If you need libraries from gst-plugins-base here, also add:
dnl for libgstaudio-1.0: gstreamer-audio-1.0 >= $GST_REQUIRED
dnl for libgstvideo-1.0: gstreamer-video-1.0 >= $GST_REQUIRED
dnl for libgsttag-1.0: gstreamer-tag-1.0 >= $GST_REQUIRED
dnl for libgstpbutils-1.0: gstreamer-pbutils-1.0 >= $GST_REQUIRED
dnl for libgstfft-1.0: gstreamer-fft-1.0 >= $GST_REQUIRED
dnl for libgstinterfaces-1.0: gstreamer-interfaces-1.0 >= $GST_REQUIRED
dnl for libgstrtp-1.0: gstreamer-rtp-1.0 >= $GST_REQUIRED
dnl for libgstrtsp-1.0: gstreamer-rtsp-1.0 >= $GST_REQUIRED
dnl etc.
PKG_CHECK_MODULES(GST, [
gstreamer-1.0 >= $GST_REQUIRED
gstreamer-base-1.0 >= $GST_REQUIRED
gstreamer-controller-1.0 >= $GST_REQUIRED
], [
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.
])
])
dnl *** soup ***
PKG_CHECK_MODULES(SOUP, [
libsoup-2.4 >= 2.3.2
], [
AC_SUBST(SOUP_CFLAGS)
AC_SUBST(SOUP_LIBS)
], [
AC_MSG_ERROR([
You need to install or upgrade the libsoup on your system.
The minimum version required is 2.3.2.
])
])
dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
AC_MSG_CHECKING([to see if compiler understands -Wall])
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wall -Werror"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ ], [ ])], [
GST_CFLAGS="$GST_CFLAGS -Wall"
AC_MSG_RESULT([yes])
], [
AC_MSG_RESULT([no])
])
dnl set the plugindir where plugins should be installed (for src/Makefile.am)
if test "x${prefix}" = "x$HOME"; then
plugindir="$HOME/.gstreamer-1.0/plugins"
else
plugindir="\$(libdir)/gstreamer-1.0"
fi
AC_SUBST(plugindir)
dnl set proper LDFLAGS for plugins
GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
AC_SUBST(GST_PLUGIN_LDFLAGS)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
......@@ -35,14 +35,14 @@ export GST_DEBUG_NO_COLOR
# This doesn't seem to work here - need to export in terminal window using ./tmp as value
#export GST_DEBUG_DUMP_DOT_DIR=tmp
#
gst-git ./general-test host=192.168.2.16 rrid=35 wait=10 rate=2
#gst-git ./general-test file=clock.mpg wait=10 rate=2
#gst-git ./general-test uri=http://10.36.32.195:80/fxi/us.ts
#gst-git ./general-test uri=http://10.36.32.195/fxi/Ultimate-Stream-1280x720-5Mb-mpeg2v-ac3_0100_CC_Trim.ts
#gst-git ./general-test uri=http://192.168.2.16:8895/resource/1/MEDIA_ITEM/MPEG_TS_SD_KO_ISO-0/ORIGINAL
#gst-git ./general-test uri=http://dveo.com/downloads/TS-sample-files/San_Diego_Clip.ts
#gst-git ./general-test uri=http://192.168.0.106:60656/mal/I/AM2/1.mpeg
#gst-git ./general-test uri="http://192.168.2.16:8008/ocaphn/service?ocaploc=0x45a&profile=MPEG_TS_SD_NA_ISO&mime=video/mpeg"
#gst-git ./general host=192.168.2.16 rrid=35 wait=10 rate=2
gst-git ./general file=clock.mpg
#gst-git ./general uri=http://10.36.32.195:80/fxi/us.ts
#gst-git ./general uri=http://10.36.32.195/fxi/Ultimate-Stream-1280x720-5Mb-mpeg2v-ac3_0100_CC_Trim.ts
#gst-git ./general uri=http://192.168.2.16:8895/resource/1/MEDIA_ITEM/MPEG_TS_SD_KO_ISO-0/ORIGINAL
#gst-git ./general uri=http://dveo.com/downloads/TS-sample-files/San_Diego_Clip.ts
#gst-git ./general uri=http://192.168.0.106:60656/mal/I/AM2/1.mpeg
#gst-git ./general uri="http://192.168.2.16:8008/ocaphn/service?ocaploc=0x45a&profile=MPEG_TS_SD_NA_ISO&mime=video/mpeg"
#
# Bunch of possible cmd line args to include
#rate=8 wait=15 host=192.168.0.106 or 192.168.2.2 pipeline switch position seek file=clock.mpg file=two_videos.mkv file=scte20_7.mpg dtcp byte dot manual_elements
......
*.o
*.la
*.lo
*.so
*.Plo
*~
.deps
.dirstamp
.libs
.project
aclocal.m4
autom4te.cache
config.*
configure
configure.in
depcomp
INSTALL
install-sh
libtool
ltmain.sh
Makefile
Makefile.in
missing
stamp-h1
playspeeds
*.mkv
*.ogv
*.mpg
*.txt
*.log
*.out
This diff is collapsed.
2013-07-08 CableLabs
* initial creation
playspeeds-test: playspeeds-test.c
gcc playspeeds-test.c -o playspeeds-test `pkg-config --cflags --libs gstreamer-1.0`
.PHONY: clean
clean:
rm -f *.o playspeeds-test *~ core
\ No newline at end of file
bin_PROGRAMS = playspeeds
playspeeds_SOURCES = playspeeds-test.c
playspeeds_CFLAGS = $(GST_CFLAGS)
playspeeds_LDADD = $(GST_LIBS)
playspeeds_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
playspeeds_LIBTOOLFLAGS = --tag=disable-static
Nothing much yet.
WHAT IT IS
----------
This is a collection of C test programs to assist in development of CableLabs supplied GStreamer elements.
HOW TO BUILD IT
---------------
Issue the following commands from the test directory:
./autogen.sh
This will produce a Makefile, initiate the make via:
make
Install the plugin via:
(sudo make install) no longer necessary???
This plugin will be built when entering the same commands from gst-plugins-cl (parent directory) or
individual test subdirectories
TESTING
-------
The "general" test program has a bunch of options to test many different scenarios. It can be used to test GStreamer playbin pipeline or a manually built pipeline. See help for complete listing of options.
The "playspeeds" test program is from a GStreamer tutorial modified to support GStreamer 1.0 and to take command line args for UI. It also is built via the make target and has a script to run the program.
#!/bin/sh
# you can either set the environment variables AUTOCONF, AUTOHEADER, AUTOMAKE,
# ACLOCAL, AUTOPOINT and/or LIBTOOLIZE to the right versions, or leave them
# unset and get the defaults
autoreconf --verbose --force --install --make || {
echo 'autogen.sh failed';
exit 1;
}
./configure || {
echo 'configure failed';
exit 1;
}
echo
echo "Now type 'make' to compile this module."
echo
dnl required version of autoconf
AC_PREREQ([2.53])
dnl TODO: fill in your package name and package version here
AC_INIT([playspeeds-test],[1.0.0])
dnl required versions of gstreamer and plugins-base
GST_REQUIRED=1.0.0
GSTPB_REQUIRED=1.0.0
AC_CONFIG_SRCDIR([playspeeds-test.c])
AC_CONFIG_HEADERS([config.h])
dnl required version of automake
AM_INIT_AUTOMAKE([1.11 subdir-objects])
AM_SILENT_RULES([yes])
dnl enable mainainer mode by default
AM_MAINTAINER_MODE([enable])
dnl check for tools (compiler etc.)
AC_PROG_CC
dnl required version of libtool
LT_PREREQ([2.2.6])
LT_INIT
dnl give error and exit if we don't have pkgconfig
AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, [ ], [
AC_MSG_ERROR([You need to have pkg-config installed!])
])
dnl Check for the required version of GStreamer core (and gst-plugins-base)
dnl This will export GST_CFLAGS and GST_LIBS variables for use in Makefile.am
dnl
dnl If you need libraries from gst-plugins-base here, also add:
dnl for libgstaudio-1.0: gstreamer-audio-1.0 >= $GST_REQUIRED
dnl for libgstvideo-1.0: gstreamer-video-1.0 >= $GST_REQUIRED
dnl for libgsttag-1.0: gstreamer-tag-1.0 >= $GST_REQUIRED
dnl for libgstpbutils-1.0: gstreamer-pbutils-1.0 >= $GST_REQUIRED
dnl for libgstfft-1.0: gstreamer-fft-1.0 >= $GST_REQUIRED
dnl for libgstinterfaces-1.0: gstreamer-interfaces-1.0 >= $GST_REQUIRED
dnl for libgstrtp-1.0: gstreamer-rtp-1.0 >= $GST_REQUIRED
dnl for libgstrtsp-1.0: gstreamer-rtsp-1.0 >= $GST_REQUIRED
dnl etc.
PKG_CHECK_MODULES(GST, [
gstreamer-1.0 >= $GST_REQUIRED
gstreamer-base-1.0 >= $GST_REQUIRED
gstreamer-controller-1.0 >= $GST_REQUIRED
], [
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.
])
])
dnl *** soup ***
PKG_CHECK_MODULES(SOUP, [
libsoup-2.4 >= 2.3.2
], [
AC_SUBST(SOUP_CFLAGS)
AC_SUBST(SOUP_LIBS)
], [
AC_MSG_ERROR([
You need to install or upgrade the libsoup on your system.
The minimum version required is 2.3.2.
])
])
dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
AC_MSG_CHECKING([to see if compiler understands -Wall])
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wall -Werror"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ ], [ ])], [
GST_CFLAGS="$GST_CFLAGS -Wall"
AC_MSG_RESULT([yes])
], [
AC_MSG_RESULT([no])
])
dnl set the plugindir where plugins should be installed (for src/Makefile.am)
if test "x${prefix}" = "x$HOME"; then
plugindir="$HOME/.gstreamer-1.0/plugins"
else
plugindir="\$(libdir)/gstreamer-1.0"
fi
AC_SUBST(plugindir)
dnl set proper LDFLAGS for plugins
GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
AC_SUBST(GST_PLUGIN_LDFLAGS)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
......@@ -44,6 +44,9 @@
#include <gst/gst.h>
#include <stdio.h>
#include <stdlib.h>
#include <glib.h>
#include <glib/gprintf.h>
typedef struct _CustomData {
GstElement *pipeline;
......@@ -231,7 +234,6 @@ static gboolean launch_playbin_pipeline(CustomData* data)
static gboolean send_seek_event (CustomData *data) {
gint64 position;
GstFormat format = GST_FORMAT_TIME;
GstEvent *seek_event;
g_print ("Sending Seek Event\n");
......@@ -254,7 +256,7 @@ static gboolean send_seek_event (CustomData *data) {
}
else
{
g_printf("%s - seek was successful\n");
g_printf("%s - seek was successful\n", __FUNCTION__);
}
return TRUE;
......
#!/bin/sh
#
TEST_FILE_URL_PREFIX=file:///home/landerson/gst/git/gst-plugins-cl/test/videos
TEST_FILE_URL_PREFIX=file:///home/landerson/gst/git/gst-plugins-cl/test/videos/
export TEST_FILE_URL_PREFIX
#
GST_DEBUG=*:1,dlnasrc:5,souphttpsrc:4,basesrc:4,playbin:4,GST_EVENT:2,tsdemux:4,mpegtsbase:4,playsink:3
......@@ -16,7 +16,7 @@ export GST_DEBUG
GST_DEBUG_NO_COLOR=1
export GST_DEBUG_NO_COLOR
#
#gst-git ./playspeeds-test file=parkrun.mpg
gst-git ./playspeeds-test host=192.168.2.16 rrid=35
#gst-git ./playspeeds-test uri=http://192.168.0.106:60753/mal/I/AL10/51.mpeg
gst-git ./playspeeds file=clock.mpg
#gst-git ./playspeeds host=192.168.2.16 rrid=35
#gst-git ./playspeeds uri=http://192.168.0.106:60753/mal/I/AL10/51.mpeg
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment