mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
renamed test viewer script
This commit is contained in:
parent
189d894e22
commit
c51ec02aa9
2 changed files with 1 additions and 1 deletions
46
res/test-viewer.sh
Executable file
46
res/test-viewer.sh
Executable file
|
@ -0,0 +1,46 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# test gstreamer plugins required for miraclecast
|
||||
#
|
||||
|
||||
plugins=(udpsrc rtpjitterbuffer rtpmp2tdepay tsdemux h264parse avdec_h264 autovideosink)
|
||||
|
||||
echo testing plugins required:
|
||||
echo
|
||||
|
||||
FAIL=
|
||||
|
||||
for plugin in ${plugins[@]}
|
||||
do
|
||||
echo -n test $plugin...
|
||||
gst-inspect-1.0 $plugin &> /dev/null
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
FAIL=1
|
||||
echo
|
||||
echo -e \\tgst plugin \"$plugin\" not available
|
||||
else
|
||||
echo -e " (passed)"
|
||||
fi
|
||||
done
|
||||
|
||||
echo
|
||||
|
||||
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:
|
||||
|
||||
$ vlc rtp://@1991
|
||||
|
||||
EOF
|
||||
else
|
||||
echo everything installed
|
||||
fi
|
||||
echo
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue