1#!/bin/bash 2 3URI=/oem/SampleVideo_1280x720_5mb.mp4 4 5export mpp_syslog_perror=1 6 7if [ "$1" != "" ] 8then 9 URI=$1 10 if [ "${URI:0:1}" != "/" ] 11 then 12 URI=$(readlink -f $URI) 13 fi 14fi 15 16if [ "${URI:0:1}" == "/" ] 17then 18 URI=file://$URI 19fi 20 21while [ true ] 22do 23 GST_DEBUG=fps*:5 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink name=fps0 video-sink="waylandsink render-rectangle=\"<0,180,360,240>\"" text-overlay=false & 24 GST_DEBUG=fps*:5 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink name=fps1 video-sink="waylandsink render-rectangle=\"<360,180,360,240>\"" text-overlay=false & 25 GST_DEBUG=fps*:5 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink name=fps2 video-sink="waylandsink render-rectangle=\"<720,180,360,240>\"" text-overlay=false & 26 GST_DEBUG=fps*:5 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink name=fps3 video-sink="waylandsink render-rectangle=\"<0,420,360,240>\"" text-overlay=false & 27 GST_DEBUG=fps*:5 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink name=fps4 video-sink="waylandsink render-rectangle=\"<360,420,360,240>\"" text-overlay=false & 28 GST_DEBUG=fps*:5 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink name=fps5 video-sink="waylandsink render-rectangle=\"<720,420,360,240>\"" text-overlay=false & 29 GST_DEBUG=fps*:5 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink name=fps6 video-sink="waylandsink render-rectangle=\"<0,660,360,240>\"" text-overlay=false & 30 GST_DEBUG=fps*:5 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink name=fps7 video-sink="waylandsink render-rectangle=\"<360,660,360,240>\"" text-overlay=false & 31 GST_DEBUG=fps*:5 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink name=fps8 video-sink="waylandsink render-rectangle=\"<720,660,360,240>\"" text-overlay=false & 32 wait 33done 34 35