projects
/
HTML5TV.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
659425f
)
select 1/4 resolution for slides
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 10 Oct 2009 23:11:00 +0000
(
01:11
+0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 10 Oct 2009 23:11:00 +0000
(
01:11
+0200)
bin/mplayer.pl
patch
|
blob
|
history
diff --git
a/bin/mplayer.pl
b/bin/mplayer.pl
index
c067e7b
..
a7e8de2
100755
(executable)
--- a/
bin/mplayer.pl
+++ b/
bin/mplayer.pl
@@
-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 => '',
},
}