2 # this script provides feedback for GStreamer debugging
3 # the user can run this and provide the GStreamer developers with information
12 echo "GStreamer feedback script."
13 echo "Please attach the output of this script to your bug reports."
14 echo "Bug reports should go into Gnome's bugzilla (http://bugzilla.gnome.org)"
17 echo "+ SYSTEM INFORMATION"
18 command_output "uname -a"
20 if test -f /etc/redhat-release; then
21 echo "+++ distribution: Red Hat"
22 cat /etc/redhat-release
25 if test -f /etc/debian_version; then
26 echo "+++ distribution: Debian"
27 cat /etc/debian_version
30 command_output "cat /etc/issue"
34 echo "+ USER INFORMATION"
38 echo "+ PKG-CONFIG INFORMATION"
42 command_output "pkg-config --version"
43 command_output "pkg-config gstreamer-$mm --modversion" 2>/dev/null
44 command_output "pkg-config gstreamer-$mm --cflags" 2>/dev/null
45 command_output "pkg-config gstreamer-$mm --libs" 2>/dev/null
46 command_output "pkg-config gstreamer-libs-$mm --modversion" 2>/dev/null
47 command_output "pkg-config gstreamer-libs-$mm --cflags" 2>/dev/null
48 command_output "pkg-config gstreamer-libs-$mm --libs" 2>/dev/null
54 for module in gstreamer gstreamer-base gstreamer-check gstreamer-controller\
55 gstreamer-dataprotocol gstreamer-plugins-base gstreamer-net\
59 command_output "pkg-config $module-$mm --modversion" 2>/dev/null
60 command_output "pkg-config $module-$mm --cflags" 2>/dev/null
61 command_output "pkg-config $module-$mm --libs" 2>/dev/null
66 echo "+ GSTREAMER INFORMATION"
67 command_output "which gst-inspect"
68 command_output "gst-inspect"
69 command_output "gst-inspect fakesrc"
70 command_output "gst-inspect fakesink"
71 command_output "gst-launch fakesrc num_buffers=5 ! fakesink"
73 echo "++ looking for gstreamer libraries in common locations"
74 for dirs in /usr/lib /usr/local/lib; do
75 if test -d $dirs; then
76 find $dirs -name libgstreamer* | grep so
79 echo "++ looking for gstreamer headers in common locations"
80 for dirs in /usr/include /usr/local/include; do
81 if test -d $dirs; then
82 find $dirs -name gst.h
86 echo "+ GSTREAMER PLUG-INS INFORMATION"
87 command_output "gst-inspect volume"
89 echo "++ looking for gstreamer volume plugin in common locations"
90 for dirs in /usr/lib /usr/local/lib; do
91 if test -d $dirs; then
92 find $dirs -name libgstvolume* | grep so
95 echo "++ looking for gstreamer headers in common locations"
96 for dirs in /usr/include /usr/local/include; do
97 if test -d $dirs; then
98 find $dirs -name audio.h