-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkpi_sample_h265.sh
executable file
·126 lines (117 loc) · 12.2 KB
/
kpi_sample_h265.sh
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/bash
SCRIPT_DIR="$( cd "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null 2>&1 ; pwd -P )"
. "${SCRIPT_DIR}/ia_media_env.sh"
OPS="-dec_postproc force -rgb4"
TIMEOUT=180
#H265
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Bunny_3840x2160_15mbps_60fps_Main_at_L5.1.265 -f 30 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logda1 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Bunny_3840x2160_15mbps_60fps_Main_at_L5.1.265 -f 30 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logda2 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Bunny_3840x2160_15mbps_60fps_Main_at_L5.1.265 -f 30 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logda3 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Bunny_3840x2160_15mbps_60fps_Main_at_L5.1.265 -f 30 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logda4 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Bunny_3840x2160_15mbps_60fps_Main_at_L5.1.265 -f 30 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logda5 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Bunny_3840x2160_15mbps_60fps_Main_at_L5.1.265 -f 30 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logda6 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb1 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb2 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb3 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb4 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb5 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb6 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb7 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb8 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb9 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb10 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb11 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb12 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb13 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb14 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb15 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb16 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb17 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb18 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb19 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb20 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb21 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb22 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb23 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb24 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb25 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb26 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb27 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb28 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb29 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb30 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb31 & \
${SAMPLE_PATH}/sample_decode h265 -hw -vaapi -i ${MEDIA_PATH}/Duck_1920x1080_3mbps_25fps_Main_at_L4.0_10bit.h265 -f 30 -api2x_dispatcher ${OPS} -w 1920 -h 1080 -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logdb32 & \
${SAMPLE_PATH}/sample_encode h265 -hw -vaapi -nv12 -w 3840 -h 2160 -cbr -b 25000 -x 1 -g 1 -r 1 -async 4 -lowpower:on -u 7 -f 30 -perf_opt 200 -o /dev/null -i ${MEDIA_PATH}/Puppies_3840x2160_20mbps_60fps.nv12 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logea1 & \
${SAMPLE_PATH}/sample_encode h265 -hw -vaapi -nv12 -w 3840 -h 2160 -cbr -b 25000 -x 1 -g 1 -r 1 -async 4 -lowpower:on -u 7 -f 30 -perf_opt 200 -o /dev/null -i ${MEDIA_PATH}/Puppies_3840x2160_20mbps_60fps.nv12 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logea2 & \
${SAMPLE_PATH}/sample_encode h265 -hw -vaapi -nv12 -w 3840 -h 2160 -cbr -b 25000 -x 1 -g 1 -r 1 -async 4 -lowpower:on -u 7 -f 30 -perf_opt 200 -o /dev/null -i ${MEDIA_PATH}/Puppies_3840x2160_20mbps_60fps.nv12 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logea3 & \
${SAMPLE_PATH}/sample_encode h265 -hw -vaapi -nv12 -w 3840 -h 2160 -cbr -b 25000 -x 1 -g 1 -r 1 -async 4 -lowpower:on -u 7 -f 30 -perf_opt 200 -o /dev/null -i ${MEDIA_PATH}/Puppies_3840x2160_20mbps_60fps.nv12 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logea4 & \
${SAMPLE_PATH}/sample_encode h265 -hw -vaapi -nv12 -w 1920 -h 1080 -cbr -b 12000 -x 1 -g 1 -r 1 -async 4 -lowpower:on -u 7 -f 30 -perf_opt 200 -o /dev/null -i ${MEDIA_PATH}/Fireworks_1920x1080_12mbps_60fps.nv12 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logeb1 & \
${SAMPLE_PATH}/sample_encode h265 -hw -vaapi -nv12 -w 1920 -h 1080 -cbr -b 12000 -x 1 -g 1 -r 1 -async 4 -lowpower:on -u 7 -f 30 -perf_opt 200 -o /dev/null -i ${MEDIA_PATH}/Fireworks_1920x1080_12mbps_60fps.nv12 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logeb2 & \
${SAMPLE_PATH}/sample_encode h265 -hw -vaapi -nv12 -w 1920 -h 1080 -cbr -b 12000 -x 1 -g 1 -r 1 -async 4 -lowpower:on -u 7 -f 30 -perf_opt 200 -o /dev/null -i ${MEDIA_PATH}/Fireworks_1920x1080_12mbps_60fps.nv12 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logeb3 & \
${SAMPLE_PATH}/sample_encode h265 -hw -vaapi -nv12 -w 1920 -h 1080 -cbr -b 12000 -x 1 -g 1 -r 1 -async 4 -lowpower:on -u 7 -f 30 -perf_opt 200 -o /dev/null -i ${MEDIA_PATH}/Fireworks_1920x1080_12mbps_60fps.nv12 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logeb4 & \
${SAMPLE_PATH}/sample_encode h265 -hw -vaapi -nv12 -w 1280 -h 720 -cbr -b 10000 -x 1 -g 1 -r 1 -async 4 -lowpower:on -u 7 -f 30 -perf_opt 200 -o /dev/null -i ${MEDIA_PATH}/Cactus_1280x720_9mbps_60fps.nv12 -api2x_dispatcher -timeout ${TIMEOUT} 2>&1 | tee kpi_sample_h265/logec1
# sleep ${TIMEOUT_CALC}
# sum=0
# n=0
# for file in kpi_sample_h265/logda*; do
# while read -r line;
# do
# f=(` grep "Frame number" | awk '{print $5}' | sed s/,// `);
# sum=(` echo "scale=2; $sum + $f" | bc `);
# n=$(($n+1))
# #printf "sum: %f, f: %f \n" $sum $f
# done < "$file"
# done
# ave=(`echo "scale=2; $sum / $n" | bc `);
# echo "dec a="$ave
# sum=0
# n=0
# for file in kpi_sample_h265/logdb*; do
# while read -r line;
# do
# f=(` grep "Frame number" | awk '{print $5}' | sed s/,// `);
# sum=(` echo "scale=2; $sum + $f" | bc `);
# n=$(($n+1))
# #printf "sum: %f, f: %f \n" $sum $f
# done < "$file"
# done
# ave=(`echo "scale=2; $sum / $n" | bc `);
# echo "dec b="$ave
# sum=0
# n=0
# for file in logea*; do
# while read -r line;
# do
# f=(` grep "Encoding fps" | awk '{print $3}' `);
# sum=(` echo "scale=2; $sum + $f" | bc `);
# n=$(($n+1))
# #printf "sum: %f, f: %f \n" $sum $f
# done < "$file"
# done
# ave=(`echo "scale=2; $sum / $n" | bc `);
# echo "enc a="$ave
# sum=0
# n=0
# for file in logeb*; do
# while read -r line;
# do
# f=(` grep "Encoding fps" | awk '{print $3}' `);
# sum=(` echo "scale=2; $sum + $f" | bc `);
# n=$(($n+1))
# #printf "sum: %f, f: %f \n" $sum $f
# done < "$file"
# done
# ave=(`echo "scale=2; $sum / $n" | bc `);
# echo "enc b="$ave
# for file in logec*; do
# while read -r line;
# do
# f=(` grep "Encoding fps" | awk '{print $3}' `);
# sum=(` echo "scale=2; $sum + $f" | bc `);
# n=$(($n+1))
# #printf "sum: %f, f: %f \n" $sum $f
# done < "$file"
# done
# ave=(`echo "scale=2; $sum / $n" | bc `);
# echo "enc c="$ave