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 (unversioned)"
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"
72 for mm in 0.6 0.7 0.8 0.9 0.10
74 echo "+ GSTREAMER INFORMATION ($mm)"
75 command_output "which gst-inspect-$mm"
76 command_output "gst-inspect-$mm"
77 command_output "gst-inspect-$mm fakesrc"
78 command_output "gst-inspect-$mm fakesink"
79 command_output "gst-launch-$mm fakesrc num-buffers=5 ! fakesink"
82 echo "++ looking for gstreamer libraries in common locations"
83 for dirs in /usr/lib /usr/local/lib; do
84 if test -d $dirs; then
85 find $dirs -name libgstreamer* | grep so
88 echo "++ looking for gstreamer headers in common locations"
89 for dirs in /usr/include /usr/local/include; do
90 if test -d $dirs; then
91 find $dirs -name gst.h
95 echo "+ GSTREAMER PLUG-INS INFORMATION"
96 command_output "gst-inspect volume"
97 for mm in 0.6 0.7 0.8 0.9 0.10
99 command_output "gst-inspect-$mm volume"
102 echo "++ looking for gstreamer volume plugin in common locations"
103 for dirs in /usr/lib /usr/local/lib; do
104 if test -d $dirs; then
105 find $dirs -name libgstvolume* | grep so
108 echo "++ looking for gstreamer headers in common locations"
109 for dirs in /usr/include /usr/local/include; do
110 if test -d $dirs; then
111 find $dirs -name audio.h