From 279cc7d73ae4916b4faaf7ba394e1e613a3be365 Mon Sep 17 00:00:00 2001 From: Alberto Fanjul Date: Wed, 3 Sep 2014 01:38:44 +0200 Subject: [PATCH] tester for gstreamer viewer miraclecast depends on gstreamer an a bunch of its plugins to show screen mirrored. This script provides a test to confirm everything needed is installed, and suggest another way to show streamed source if its needed plugins are not available. --- res/test_viewer.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 res/test_viewer.sh diff --git a/res/test_viewer.sh b/res/test_viewer.sh new file mode 100755 index 0000000..b0ea5bc --- /dev/null +++ b/res/test_viewer.sh @@ -0,0 +1,41 @@ +#!/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 + gst-inspect-1.0 $plugin &> /dev/null + if [ $? != 0 ] + then + FAIL=1 + echo -e \\tgst plugin \"$plugin\" not available + fi +done + +echo + +if [ -v FAIL ] +then + cat <