forked from oster/rtce-experiments-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rename-videos.sh
executable file
·40 lines (26 loc) · 1.21 KB
/
rename-videos.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
#!/bin/bash
# dummy script to automate renaming of video recording files
GROUP=G25
EXPERIMENT=EXP3
SRC_DIR=./${GROUP}-${EXPERIMENT}
OUT_DIR=./VIDEOS_PROCESSING3
OUT_SUFFIX=
U1_NAME=USER1
#U1_IP=193.50.40.90
U1_IP=realtime-exp1
U2_NAME=USER2
#U2_IP=193.50.40.97
U2_IP=realtime-exp2
U3_NAME=USER3
#U3_IP=193.50.40.93
U3_IP=realtime-exp3
U4_NAME=USER4
#U4_IP=193.50.40.89
U4_IP=realtime-exp4
RECORD_TIME=`ls ${SRC_DIR}/${U2_IP}/rtce/*-screencast.webm | sed 's/.*rtce\/\(2013[0-9]\{4\}-[0-9]\{4\}\).*/\1/'`
#RECORD_TIME=20120524-1502
#echo ${SRC_DIR}/${U1_IP}/rtce/${RECORD_TIME}-Bazinga.local-oster-screencast.webm
cp ${SRC_DIR}/${U1_IP}/rtce/${RECORD_TIME}-oster-screencast.webm ${OUT_DIR}/${RECORD_TIME}-${GROUP}-${EXPERIMENT}-${U1_NAME}-screencast${OUT_SUFFIX}.webm
cp ${SRC_DIR}/${U2_IP}/rtce/${RECORD_TIME}-oster-screencast.webm ${OUT_DIR}/${RECORD_TIME}-${GROUP}-${EXPERIMENT}-${U2_NAME}-screencast${OUT_SUFFIX}.webm
cp ${SRC_DIR}/${U3_IP}/rtce/${RECORD_TIME}-oster-screencast.webm ${OUT_DIR}/${RECORD_TIME}-${GROUP}-${EXPERIMENT}-${U3_NAME}-screencast${OUT_SUFFIX}.webm
cp ${SRC_DIR}/${U4_IP}/rtce/${RECORD_TIME}-oster-screencast.webm ${OUT_DIR}/${RECORD_TIME}-${GROUP}-${EXPERIMENT}-${U4_NAME}-screencast${OUT_SUFFIX}.webm