hc
2023-05-31 43fd8d44e8182b691c8ee61d487cec02ca11afd2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
 
URI=/oem/SampleVideo_1280x720_5mb.mp4
 
export mpp_syslog_perror=1
 
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-launch-1.0 uridecodebin uri=$URI ! waylandsink fullscreen=true