hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
 
DIR_VIDEO=`dirname $0`
 
info_view()
{
    echo "*****************************************************"
    echo "***                                               ***"
    echo "***            VIDEO TEST                         ***"
    echo "***                                               ***"
    echo "*****************************************************"
}
 
info_view
echo "***********************************************************"
echo "video test:                        1"
echo "video test with FPS display:                2"
echo "video max FPS test without display:            3"
echo "multivideo test:                            4"
echo "***********************************************************"
 
read -t 30 VIDEO_CHOICE
 
video_test()
{
   sh ${DIR_VIDEO}/test_gst_video.sh
}
 
video_test_fps()
{
   sh ${DIR_VIDEO}/test_gst_video_fps.sh
}
 
video_test_maxfps()
{
   sh ${DIR_VIDEO}/test_gst_video_maxfps.sh
}
 
multivideo_test()
{
   sh ${DIR_VIDEO}/test_gst_multivideo.sh
}
 
case ${VIDEO_CHOICE} in
   1)
       video_test
       ;;
   2)
       video_test_fps
       ;;
   3)
       video_test_maxfps
       ;;
   4)
       multivideo_test
       ;;
   *)
       echo "not found your input."
       ;;
esac