summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarle Bjørgeengen <jarle@bjorgeengen.net>2010-09-04 11:06:32 +0000
committerJarle Bjørgeengen <jarle@bjorgeengen.net>2010-09-04 11:06:32 +0000
commit0c9f16ad5836bc13d93479bcbe723c0e0329f1b8 (patch)
treeccfcaac0ead7816ecc7faa0af0e9153137b577c3
parent592a0510c68b4c89c52ea16d66c96c9af1aaebea (diff)
...
-rwxr-xr-xtools/gen_frikanalen_video.pl18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/gen_frikanalen_video.pl b/tools/gen_frikanalen_video.pl
index cb1360f..5e1c5b8 100755
--- a/tools/gen_frikanalen_video.pl
+++ b/tools/gen_frikanalen_video.pl
@@ -89,11 +89,11 @@ if ( $opts{'s'} ) {
create_startposter_png($startposter,$bgfile);
-create_endposter_png($endposter,$bgfile);
-gen_dv_from_png($startposter,3,$startposter_dv);
-gen_dv_from_png($endposter,3,$endposter_dv);
-my $normalized_video_body = gen_video_body($srcfile);
-glue_dv($opts{'o'},$startposter_dv,$normalized_video_body,$endposter_dv);
+#create_endposter_png($endposter,$bgfile);
+#gen_dv_from_png($startposter,3,$startposter_dv);
+#gen_dv_from_png($endposter,3,$endposter_dv);
+#my $normalized_video_body = gen_video_body($srcfile);
+#glue_dv($opts{'o'},$startposter_dv,$normalized_video_body,$endposter_dv);
#### Functions #########
@@ -119,7 +119,7 @@ sub read_meta {
sub create_startposter_png {
my $name = shift;
my $bgfile = shift;
- my $f = `convert $bgfile -pointsize 72 -fill white -gravity NorthWest -draw "text 450,167 \'$meta->{'presenter'}:\'" -pointsize 60 -draw "text 450,300 \'$meta->{'title1'}\'" -draw "text 450,380 \'$meta->{'title2'}\'" -draw "text 450,460 \'$meta->{'title3'}\'" -pointsize 36 -pointsize 36 -draw "text 52,790 \'$meta->{'url'}\'" -draw "text 750,640 \'$meta->{'date-place'}\'" $name`;
+ my $f = `convert $bgfile -pointsize 72 -fill white -gravity NorthWest -draw "text 450,167 \'$meta->{'presenter'}:\'" -pointsize 60 -draw "text 450,300 \'$meta->{'title1'}\'" -draw "text 450,380 \'$meta->{'title2'}\'" -draw "text 450,460 \'$meta->{'title3'}\'" -pointsize 36 -pointsize 36 -draw "text 52,790 \'$meta->{'url'}\'" -draw "text 750,640 \'$meta->{'date'}-$meta->{'place'}\'" $name`;
print $f;
}
@@ -135,7 +135,7 @@ sub gen_dv_from_png {
my $png_file = shift;
my $length = shift;
my $outputvid = shift;
-`ffmpeg -loop_input -t $length -i $png_file -f image2 -f s16le -i /dev/zero -target pal-dv -y $outputvid`;
+`ffmpeg -loop_input -t $length -i $png_file -f image2 -f s16le -i /dev/zero -target pal-dv -y $outputvid`;
}
sub gen_video_body {
@@ -179,8 +179,8 @@ sub normalize_sound {
sub glue_dv {
my $outfile = shift;
my @infiles = @_;
-# my $cmd = 'cat '.join(' ',@infiles).' | ffmpeg -i - -acodec pcm_s16le -vcodec dvvideo -y '.$outfile.' -f avi' ;
- my $cmd = 'cat '.join(' ',@infiles).' | dvgrab -size 0 -stdin -f dv2 -opendml '.$outfile ;
+ my $cmd = 'cat '.join(' ',@infiles).' | ffmpeg -i - -aspect 16:9 -acodec pcm_s16le -vcodec dvvideo -y '.$outfile.' -f avi' ;
+# my $cmd = 'cat '.join(' ',@infiles).' | dvgrab -size 0 -stdin -f dv2 -opendml '.$outfile ;
system($cmd);
}
hotfix/0.7.0.2 Unnamed repository; edit this file 'description' to name the repository.MimesBrønn
aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/ruby-ole/lib/ole/storage/meta_data.rb
blob: be84037df3dd02c39ff6ebd5b9525da0c62e7a86 (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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148