hc
2024-08-19 eb6b9ee90f50f13c5abb885ce483802d6262f2b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
 
URI=/oem/SampleVideo_1280x720_5mb.mp4
 
if [ "$1" != "" ]
then
    URI=$1
    if [ "${URI:0:1}" != "/" ]
    then
        URI=$(readlink -f $URI)
    fi
fi
 
if [ "${URI:0:1}" == "/" ]
then
    URI=file://$URI
fi
 
GST_DEBUG=fps*:7 gst-launch-1.0 uridecodebin uri=$URI ! fpsdisplaysink video-sink="waylandsink fullscreen=true" text-overlay=false signal-fps-measurements=true