xref: /OK3568_Linux_fs/external/rockchip-test/video/test_gst_video_fps.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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
21GST_DEBUG=fps*:7 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink video-sink="waylandsink fullscreen=true" text-overlay=false signal-fps-measurements=true
22