blob: 4cb646343d6f7685dfa67fdf4771d4e921958cd3 (
plain)
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
|
#!/bin/bash
#
# Date: 2009-12-16
# Author: Ole Kristian Lien
# License: GNU General Public License
#
# Process a video-file automatically
EXT=`echo "$1"|awk -F . '{print $NF}'`
NAME=`basename $1 .$EXT`
FORMAT=`./audio_format $1`
if [ -z "$2" ]; then
echo "Usage: $0 <video-file> <csv-file>"
exit 1
fi
echo "Processing video $1 with info from $2..."
#./check_diskspace $1
#if [ "${?}" == "1" ] ; then
# exit 1
#fi
#./audio_channels_diff $1
#if [ "${?}" == "3" ] ; then
# echo "should run ./merge_audio_stereo_track $1...neh.."
#./merge_audio_stereo_track $1
#fi
# ./audio_check_silence
# ./audio_check_noise $1
# if x do ./audio_remove_noise
# bytte plass? ^ v
# ./audio_check_volume $1
# if x do ./audio_gain_volume
# mv fade video/image_fade
# ./audio_fade
#./intro $1 $2
#./outro $1 $2
#./join_video $NAME-new.$EXT $NAME-intro.$EXT $1 $NAME-outro.$EXT
#rm $NAME-intro.$EXT $NAME-outro.$EXT
#echo "Backing up $1 to $NAME-old.$EXT..."
#mv $1 $NAME-old.$EXT
#mv $NAME-new.$EXT $1
./convert2theora $1
./metadata $NAME.ogv $2
./convert2vorbis $1
./metadata $NAME.ogg $2
|