select 1/4 resolution for slides
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 10 Oct 2009 23:11:00 +0000 (01:11 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 10 Oct 2009 23:11:00 +0000 (01:11 +0200)
bin/mplayer.pl

index c067e7b..a7e8de2 100755 (executable)
@@ -99,6 +99,8 @@ sub html5tv {
                };
                next unless $s->[2] =~ m{\[(\d+)\]};
 
+               my $res = ( $prop->{width} / 4 ) . 'x' . ( $prop->{height} /4 );
+
                push @{ $sync->{customEvents} }, {
                        startTime => $s->[0],
                        endTime => $s->[1],
@@ -109,7 +111,7 @@ sub html5tv {
                                index => $1,
                                title => $s->[2],
                                description => $s->[2],
-                               src => sprintf('s/117x66/p%08d.jpg', $1),
+                               src => sprintf('s/%s/p%08d.jpg', $res, $1),
                                href => '',
                        },
                }