1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-12 16:11:54 +00:00
miraclecast/res/test-viewer.sh

47 lines
781 B
Bash
Raw Permalink Normal View History

#!/bin/bash
#
# test gstreamer plugins required for miraclecast
#
plugins=(udpsrc rtpjitterbuffer rtpmp2tdepay tsdemux h264parse avdec_h264 autovideosink)
2015-01-23 00:28:15 +00:00
echo testing plugins required:
echo
FAIL=
for plugin in ${plugins[@]}
do
2015-01-23 00:28:15 +00:00
echo -n test $plugin...
gst-inspect-1.0 $plugin &> /dev/null
if [ $? != 0 ]
then
FAIL=1
2015-01-23 00:28:15 +00:00
echo
echo -e \\tgst plugin \"$plugin\" not available
2015-01-23 00:28:15 +00:00
else
echo -e " (passed)"
fi
done
echo
2015-01-23 00:28:15 +00:00
if [ -n "$FAIL" ]
then
cat <<EOF
Some plugins required for visualization are missed
Try installing packages "gst-plugins-bad, gst-plugins-base, gst-plugins-base-libs, gst-plugins-good, gst-plugins-ugly, gst-libav, gstreamer".
If that fails too, try:
2022-11-08 23:12:03 +00:00
$ vlc rtp://@:7236
EOF
2015-01-23 00:28:15 +00:00
else
echo everything installed
fi
2015-01-23 00:28:15 +00:00
echo