From ec9b7649670df61b7402a41e7c7ec3cec3edaf9b Mon Sep 17 00:00:00 2001 From: erlehmann Date: Sun, 2 Mar 2008 09:56:02 +0000 Subject: [PATCH] this doesn't work i know it git-svn-id: http://yolanda.mister-muffin.de/svn@242 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/functions.pl | 3 +- trunk/images/agplv3-155x51.png | Bin 0 -> 4547 bytes trunk/style/default.css | 3 + trunk/tools/daemon.pl | 4 +- trunk/xsl/xhtml.xsl | 28 ++++----- trunk/xsl/xhtml/video.xsl | 101 ++++++++++++++++++++++++++++----- 6 files changed, 110 insertions(+), 29 deletions(-) create mode 100644 trunk/images/agplv3-155x51.png diff --git a/trunk/functions.pl b/trunk/functions.pl index 81c0087..801340a 100644 --- a/trunk/functions.pl +++ b/trunk/functions.pl @@ -186,7 +186,8 @@ sub output_page #send everything including http headers to the user - if xslt chosen is xspf set download filename return $session->header( - -type=>'text/xml', + -type=>'application/xhtml+xml', + # fix the MIME type so that every XSLT works again -charset=>'UTF-8', -cookie=>@cookies ), diff --git a/trunk/images/agplv3-155x51.png b/trunk/images/agplv3-155x51.png new file mode 100644 index 0000000000000000000000000000000000000000..85a4add7d8c767447d987329fc1d754c96f07322 GIT binary patch literal 4547 zcmV;!5j^gRP)<{98FWQhbW?9;ba!ELWdL_~cP?peYja~^ zaAhuUa%Y?FJQ@H15kN^qK~#90?VWqL7FE5+KU=^XUNE%~@n~wIA!g2SF-+{_1Y@nz8eV+GuXJ)NgYxX4(LbMCVrus6^R zSPeW0JPKT`6}%p$tIy3 z2K=eir~lVRGq3>IXG1?o184^3(acT23}CTVv<;CYkbQxhFwza`TA+h3l=7IJsA3NA z5*shsKEkBbw$vop+rVU+xlAkie!T{?qEAU6!+~djD~phAaM7pjL?-S8KD(hGB8IiV zW0>95%YD`XQ-E7E(g%t*s1Ch!4>s^~%mVHJh6CU7u73cWp^;80 zsh{q^CV9!WKJ2wsvGYxVruES8hQKWMy`ji9ANVO2y0{kD#4CFg7@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ypXy;{*X*3&Z=LgzoX-N@knL-9da*k}kAPxP1ZRhQu{bf1~P hqgrXT71&0J{|9FPc~#wpEsFpE002ovPDHLkV1m)Glnnp? literal 0 HcmV?d00001 diff --git a/trunk/style/default.css b/trunk/style/default.css index 6e1c867..8272e53 100755 --- a/trunk/style/default.css +++ b/trunk/style/default.css @@ -137,12 +137,15 @@ a border-width: 1px; } +/* div.footer { position: absolute; bottom: 1.5em; margin-right: 1.5em; } +*/ + img.logo-header { display: none; diff --git a/trunk/tools/daemon.pl b/trunk/tools/daemon.pl index 8737ea0..496d4b0 100755 --- a/trunk/tools/daemon.pl +++ b/trunk/tools/daemon.pl @@ -178,7 +178,7 @@ while(1) $vwidth = int($vheight*($width/$height)/8 + .5)*8; $abitrate = 64; - $vbitrate = int($filesize*8) / $duration + .5) - $abitrate; + $vbitrate = int(($filesize*8) / $duration + .5) - $abitrate; #TODO: add metadata information system "ffmpeg2theora --optimize --videobitrate $vbitrate --audiobitrate $abitrate --sharpness 0 --width $vwidth --height $vheight --output $root/videos/$id /tmp/$id"; @@ -208,7 +208,7 @@ while(1) } else { - TODO: maybe make this event-driven by using the kernels has-this-file-changed-interface ? + #TODO: maybe make this event-driven by using the kernels has-this-file-changed-interface ? sleep 10; } } diff --git a/trunk/xsl/xhtml.xsl b/trunk/xsl/xhtml.xsl index 90be52d..79b2f1b 100755 --- a/trunk/xsl/xhtml.xsl +++ b/trunk/xsl/xhtml.xsl @@ -17,14 +17,15 @@ omit-xml-declaration="no" /> + + + + - - - @@ -51,11 +52,16 @@ + + + + + - + @@ -63,7 +69,7 @@ - + +
@@ -208,7 +208,9 @@ + @@ -293,7 +295,7 @@ - +