1 | #!/bin/sh |
---|
2 | # this script provides feedback for GStreamer debugging |
---|
3 | # the user can run this and provide the GStreamer developers with information |
---|
4 | # about their system |
---|
5 | |
---|
6 | command_output () |
---|
7 | { |
---|
8 | echo "+++ $1" |
---|
9 | $1 |
---|
10 | } |
---|
11 | |
---|
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)" |
---|
15 | echo |
---|
16 | |
---|
17 | echo "+ SYSTEM INFORMATION" |
---|
18 | command_output "uname -a" |
---|
19 | |
---|
20 | if test -f /etc/redhat-release; then |
---|
21 | echo "+++ distribution: Red Hat" |
---|
22 | cat /etc/redhat-release |
---|
23 | fi |
---|
24 | |
---|
25 | if test -f /etc/debian_version; then |
---|
26 | echo "+++ distribution: Debian" |
---|
27 | cat /etc/debian_version |
---|
28 | fi |
---|
29 | |
---|
30 | command_output "cat /etc/issue" |
---|
31 | |
---|
32 | echo |
---|
33 | |
---|
34 | echo "+ USER INFORMATION" |
---|
35 | command_output "id" |
---|
36 | echo |
---|
37 | |
---|
38 | echo "+ PKG-CONFIG INFORMATION" |
---|
39 | for mm in 0.6 0.7 0.8 |
---|
40 | do |
---|
41 | echo "+ $mm" |
---|
42 | command_output "pkg-config --version" |
---|
43 | command_output "pkg-config gstreamer-$mm --modversion" |
---|
44 | command_output "pkg-config gstreamer-$mm --cflags" |
---|
45 | command_output "pkg-config gstreamer-$mm --libs" |
---|
46 | command_output "pkg-config gstreamer-libs-$mm --modversion" |
---|
47 | command_output "pkg-config gstreamer-libs-$mm --cflags" |
---|
48 | command_output "pkg-config gstreamer-libs-$mm --libs" |
---|
49 | echo |
---|
50 | done |
---|
51 | |
---|
52 | echo "+ GSTREAMER INFORMATION" |
---|
53 | command_output "which gst-register" |
---|
54 | command_output "gst-inspect" |
---|
55 | command_output "gst-inspect fakesrc" |
---|
56 | command_output "gst-inspect fakesink" |
---|
57 | command_output "gst-launch fakesrc num_buffers=5 ! fakesink" |
---|
58 | |
---|
59 | echo "++ looking for gstreamer libraries in common locations" |
---|
60 | for dirs in /usr/lib /usr/local/lib; do |
---|
61 | if test -d $dirs; then |
---|
62 | find $dirs -name libgstreamer* | grep so |
---|
63 | fi |
---|
64 | done |
---|
65 | echo "++ looking for gstreamer headers in common locations" |
---|
66 | for dirs in /usr/include /usr/local/include; do |
---|
67 | if test -d $dirs; then |
---|
68 | find $dirs -name gst.h |
---|
69 | fi |
---|
70 | done |
---|
71 | |
---|
72 | echo "+ GSTREAMER PLUG-INS INFORMATION" |
---|
73 | command_output "gst-inspect volume" |
---|
74 | |
---|
75 | echo "++ looking for gstreamer volume plugin in common locations" |
---|
76 | for dirs in /usr/lib /usr/local/lib; do |
---|
77 | if test -d $dirs; then |
---|
78 | find $dirs -name libgstvolume* | grep so |
---|
79 | fi |
---|
80 | done |
---|
81 | echo "++ looking for gstreamer headers in common locations" |
---|
82 | for dirs in /usr/include /usr/local/include; do |
---|
83 | if test -d $dirs; then |
---|
84 | find $dirs -name audio.h |
---|
85 | fi |
---|
86 | done |
---|
87 | |
---|
88 | |
---|