svn path=/trunk/; revision=45
twidth=$(($width * $target / $height))
-[ -f "$trans" ] || nohup avconv -i "$video" -s "${twidth}x${target}" -threads auto "$trans" &
+if ! [ -f "$trans" ]; then
+ [ "$target" -le 240 ] && nohup avconv -i "$video" -s "${twidth}x${target}" -b:a 80k -threads auto "$trans" &
+ [ "$target" -gt 240 ] && nohup avconv -i "$video" -s "${twidth}x${target}" -threads auto "$trans" &
+fi
echo "Location: /transcoded/${info}.${target}p.webm"
echo
<html>
<head>
+ <meta name="viewport" content="width=device-width">
<title>$(. $PAGE title)</title>
<style type="text/css">
<!--
* {
box-sizing: border-box;
+ -moz-box-sizing: border-box;
}
body {
#thumblist {
padding: .5em 0 3em 0;
+ text-align: center;
}
#thumblist .thumb {
display: inline-block;
- width: 212px;
- padding: 0;
- margin: .5em;
+ text-align: left;
+ width: 90%;
+ padding: 0 .5em;
+ margin: auto;
vertical-align: top;
word-wrap: break-word;
}
+@media (min-width: 480px){#thumblist .thumb{width: 50%;}}
+@media (min-width: 640px){#thumblist .thumb{width: 33%;}}
+@media (min-width: 1024px){#thumblist .thumb{width: 256px;}}
+
#thumblist .thumb img {
- height: 162px;
+ width: 100%;
}
#thumblist .thumb a {
display: block;