Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
録画テスト用シェルスクリプト
echo 'test directory is /tmp/rec_test.'
echo 'mkdir rec_test.'
pushd /tmp
mkdir -p rec_test
RECTIME=10
# テストする物理チャンネルを入力
TVCHANNEL=(
30
31
34
32
26
28
22
)
# テストするBS/CSチャンネルを入力
BSCHANNEL=(
151
161
191
171
192
193
201
202
236
256
211
200
222
238
241
141
181
101
103
910
929
234
242
243
252
244
245
251
255
258
)
CSCHANNEL=(
296
298
299
100
223
227
250
342
363
294
323
329
340
341
354
055
218
219
326
339
800
801
802
254
325
330
292
293
310
290
305
311
333
343
353
240
262
314
307
308
309
161
297
312
322
331
351
257
229
300
321
350
362
)
RECOPTION=" --dev 0 --b25 --strip --sid hd "
RECBSOPTION=" --dev 2 --b25 --strip --sid hd --lch "
TESTFILE=test_${CHANNEL}.m2ts
echo 'recdvb rec test script...'
echo '[TV] -> BS -> CS '
echo ' '
#表示しながら録画テスト(地デジ)
for CHANNEL in ${TVCHANNEL[@]}; do
echo recdvb ${RECOPTION} 15 ${RECTIME} ${CHANNEL} test_${CHANNEL}.m2ts
# recdvb ${RECOPTION} 15 ${RECTIME} ${CHANNEL} test_${CHANNEL}.m2ts
done
echo ' '
echo 'TV rec test is done.'
echo ' '
echo 'TV -> [BS] -> CS '
echo ' '
#表示しながら録画テスト(BS)
for CHANNEL in ${BSCHANNEL[@]}; do
echo recdvb ${RECBSOPTION} 15 ${RECTIME} ${CHANNEL} test_${CHANNEL}.m2ts
# recdvb ${RECOPTION} 15 ${RECTIME} ${CHANNEL} test_${CHANNEL}.m2ts
done
echo ' '
echo 'BS rec test is done.'
echo ' '
echo 'TV -> BS -> [CS] '
echo ' '
#表示しながら録画テスト(CS)
for CHANNEL in ${CSCHANNEL[@]}; do
echo recdvb ${RECBSOPTION} 15 ${RECTIME} ${CHANNEL} test_${CHANNEL}.m2ts
# recdvb ${RECOPTION} 15 ${RECTIME} ${CHANNEL} test_${CHANNEL}.m2ts
echo ' '
echo 'CS rec test is done.'
echo ' '
echo 'When you return to the original directory , please hit the "popd" command .'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment