filename=${filename%.*}
-ulimit -t 3600;/usr/local/bin/ffmpeg -i $1 -y -r 1 -ss 00:00:04 -t 00:00:01 -f image2 $2/$filename.jpg
-ulimit -t 3600;/usr/local/bin/ffmpeg -i $1 -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -vcodec libvpx -b 614400 -acodec libvorbis -y $2/$filename.webm
+/usr/local/bin/ffmpeg -i $1 -y -r 1 -ss 00:00:04 -t 00:00:01 -f image2 $2/$filename.jpg
if [ extension != "mp4" ]
then
- ulimit -t 3600;/usr/bin/ffmpeg -i $1 \
+/usr/bin/ffmpeg -i $1 \
-y \
-acodec aac \
-ab 64k \
-qmin 10 -qmax 51 \
-qdiff 4 \
-ac 1 \
--ar 16000 \
-r 13 \
$2/$filename.mp4
fi
-ulimit -t 3600;/usr/local/bin/ffmpeg2theora $1 -o $2/$filename.ogv
+/usr/local/bin/ffmpeg2theora $1 -o $2/$filename.ogv
+/usr/local/bin/ffmpeg -i $1 -keyint_min 0 -g 250 -skip_threshold 0 -qmin 1 -qmax 51 -vcodec libvpx -b 614400 -acodec libvorbis -y $2/$filename.webm
\ No newline at end of file
}
public function copyLinkFile($source, $dest, $video=false) {
- // TODO delete that return;
- //return;
$origDir = WS_BOOKS . '/working/' . $this->book_id . '/';
$types = array('mp4', 'ogv', 'webm', 'jpg');
if ($video) {
\r
protected $origHTML;\r
\r
- public function __construct($book_id, $vdir, $whole) {\r
+ public function __construct($book_id, $vdir=null, $whole=true) {\r
parent::__construct($book_id, $vdir, $whole);\r
$this->version = 'html';\r
}\r
protected $size;
- public function __construct($book_id, $vdir, $whole) {
+ public function __construct($book_id, $vdir=null, $whole=true) {
global $core;
parent::__construct($book_id, $vdir, $whole);
$this->_copyWorkingFile($v);
- $xml->addChild($k, $v);
- $extras->addChild($k, $v);
+ $xml->addChild($k, html::escapeHTML($v));
+ $extras->addChild($k, html::escapeHTML($v));
}
$colors = $xml->addChild('colors');
protected function _copyWorkingFile($file, $dir = null) {
if (is_null($dir)) {
- $dir = $this->workingDir . '/data/';
+ $dir = $this->vdir . '/data/';
}
$src = $this->workingDir . '/' . $file;
<libraryPaths>\r
<element path="flash.swc" />\r
<element path="..\..\..\as3\scroll.swc" />\r
+ <element path="..\..\..\as\as3\scroll.swc" />\r
</libraryPaths>\r
<!-- External Libraries -->\r
<externalLibraryPaths>\r