'-quiet',
'-edlout', $edl,
'-osdlevel', 3,
+ '-vf' => 'screenshot',
);
my $epfd = epoll_create(10);
};
}
- my ( $slide_width, $slide_height );
-
my @slides_hires = glob 'www/media/s/hires/p*.jpg';
+ @slides_hires = glob 'shot*.png' unless @slides_hires;
+ my $factor_s_path;
foreach my $factor ( 4, 2, 1 ) {
my $w = $prop->{width} / $factor;
my $h = $prop->{height} / $factor;
my $path = "www/media/s/${w}x${h}";
+ $factor_s_path->{$factor} = $path;
if ( ! -d $path ) {
mkdir $path;
}
}
- if ( $factor == $slide_factor ) {
- my $im = Imager->new( file => "$path/p001.jpg" );
- $slide_width = $im->getwidth;
- $slide_height = $im->getheight;
- }
+ }
+
+ my ( $slide_width, $slide_height );
+
+ my $im = Imager->new( file => $factor_s_path->{ 1 } . '/p001.jpg"')
+ || Imager->new( file => "shot0001.png" ) # from mplayer [s]
+ ;
+ if ( $im ) {
+ $slide_width = $im->getwidth / $slide_factor;
+ $slide_height = $im->getheight / $slide_factor;
+ } else {
+ warn "can't find first slide default to 1/$slide_factor of video size\n";
+ $slide_width = $prop->{width} / $slide_factor;
+ $slide_height = $prop->{height} / $slide_factor;
}
my $html5tv = {
write_file 'www/media.html', $html;
- my $carousel_width = $prop->{width} + Imager->new( file => "www/media/s/$res/p001.jpg" )->getwidth - 80;
+ my $carousel_width = $prop->{width} + $slide_width - 80;
$carousel_width -= $carousel_width % ( $slide_width + 6 ); # round to full slide
my $carousel_height = $slide_height + 2;
--- /dev/null
+<!-- http://microformats.org/wiki/hcalendar-cheatsheet -->
+<div class="vevent">
+ <span class="organiser">
+ Jeff Bonwick and Bill Moore
+ </span>
+ <span class="summary">
+ Oslobodimo hardware – sve što ste željeli znati o RFID-u a niste se usudili pitati
+ </span>
+ <a class="url" href="https://slx.sun.com/1179275620">Kernel Conference Australia 2009</a>,
+ <span class="location">Brisbane, Australia</span>,
+ <abbr class="dtstart" title="2009-07-15">Wednesday 15th July</abbr>
+ <div class="description">
+ Keynote speech from Jeff Bonwick and Bill Moore at <a href="http://au.sun.com/sunnews/events/2009/kernel/">Kernel Conference Australia 2009</a>, 15-17 July. Held at Queensland Brain Institute, University of Queensland, Australia.
+ </div>
+</div>