Update to media-alchemyst 0.3

This commit is contained in:
Romain Neutron
2013-06-26 17:00:12 +02:00
parent 32875e6698
commit 4b06608caa
8 changed files with 355 additions and 97 deletions

View File

@@ -20,8 +20,9 @@
"imagine/imagine" : "dev-ColorSpaces@dev", "imagine/imagine" : "dev-ColorSpaces@dev",
"jms/serializer" : "~0.10", "jms/serializer" : "~0.10",
"justinrainbow/json-schema" : "~1.3", "justinrainbow/json-schema" : "~1.3",
"mediavorus/mediavorus" : "~0.3", "mediavorus/mediavorus" : "0.3.x-dev@dev",
"media-alchemyst/media-alchemyst" : "~0.2.3", "media-alchemyst/media-alchemyst" : "0.3.x-dev@dev",
"php-ffmpeg/php-ffmpeg" : "0.3.x-dev@dev",
"monolog/monolog" : "~1.3.0", "monolog/monolog" : "~1.3.0",
"mrclay/minify" : "dev-master", "mrclay/minify" : "dev-master",
"neutron/silex-imagine-provider" : "dev-master", "neutron/silex-imagine-provider" : "dev-master",

286
composer.lock generated
View File

@@ -3,7 +3,7 @@
"This file locks the dependencies of your project to a known state", "This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
], ],
"hash": "1adb50a47aa80a6c0631f1e87531f2da", "hash": "8ad2d0c4a9f85c8b8c80bbda1ae83fc9",
"packages": [ "packages": [
{ {
"name": "BadFaith/BadFaith", "name": "BadFaith/BadFaith",
@@ -51,34 +51,86 @@
"time": "2012-04-13 17:43:31" "time": "2012-04-13 17:43:31"
}, },
{ {
"name": "alchemy/ghostscript", "name": "alchemy/binary-driver",
"version": "0.2.0", "version": "1.5.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "git://github.com/alchemy-fr/Ghostscript-PHP.git", "url": "https://github.com/alchemy-fr/BinaryDriver.git",
"reference": "0.2.0" "reference": "1.5.0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/alchemy-fr/Ghostscript-PHP/zipball/0.2.0", "url": "https://api.github.com/repos/alchemy-fr/BinaryDriver/zipball/1.5.0",
"reference": "0.2.0", "reference": "1.5.0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"monolog/monolog": ">=1.0,<2.0", "evenement/evenement": ">=1.0,<2.0",
"monolog/monolog": ">=1.3,<2.0",
"php": ">=5.3.3", "php": ">=5.3.3",
"psr/log": ">=1.0,<2.0",
"symfony/process": ">=2.0,<3.0" "symfony/process": ">=2.0,<3.0"
}, },
"require-dev": { "require-dev": {
"sami/sami": "dev-master", "phpunit/phpunit": ">=3.7,<4.0"
"silex/silex": "1.0.x-dev@dev"
}, },
"type": "library", "type": "library",
"extra": { "autoload": {
"branch-alias": { "psr-0": {
"dev-master": "0.2.x-dev" "Alchemy": "src"
} }
}, },
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Romain Neutron",
"email": "imprec@gmail.com",
"homepage": "http://www.lickmychip.com/"
},
{
"name": "Nicolas Le Goff",
"email": "legoff.n@gmail.com"
},
{
"name": "Phraseanet Team",
"email": "info@alchemy.fr",
"homepage": "http://www.phraseanet.com/"
}
],
"description": "A set of tools to build binary drivers",
"keywords": [
"binary",
"driver"
],
"time": "2013-06-21 15:51:20"
},
{
"name": "alchemy/ghostscript",
"version": "0.4.0",
"source": {
"type": "git",
"url": "https://github.com/alchemy-fr/Ghostscript-PHP.git",
"reference": "0.4.0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/alchemy-fr/Ghostscript-PHP/zipball/0.4.0",
"reference": "0.4.0",
"shasum": ""
},
"require": {
"alchemy/binary-driver": ">=1.5,<2.0",
"php": ">=5.3.3"
},
"require-dev": {
"phpunit/phpunit": ">=3.7,<4.0",
"sami/sami": ">=1.0,<2.0",
"silex/silex": ">=1.0,<2.0"
},
"type": "library",
"autoload": { "autoload": {
"psr-0": { "psr-0": {
"Ghostscript": "src" "Ghostscript": "src"
@@ -105,7 +157,7 @@
"ghostscript", "ghostscript",
"pdf" "pdf"
], ],
"time": "2013-02-01 08:51:59" "time": "2013-06-25 09:12:58"
}, },
{ {
"name": "alchemy/oauth2php", "name": "alchemy/oauth2php",
@@ -660,6 +712,46 @@
], ],
"time": "2013-05-11 07:51:12" "time": "2013-05-11 07:51:12"
}, },
{
"name": "evenement/evenement",
"version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/igorw/evenement",
"reference": "v1.0.0"
},
"dist": {
"type": "zip",
"url": "https://github.com/igorw/evenement/zipball/v1.0.0",
"reference": "v1.0.0",
"shasum": ""
},
"require": {
"php": ">=5.3.0"
},
"type": "library",
"autoload": {
"psr-0": {
"Evenement": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Igor Wiedler",
"email": "igor@wiedler.ch",
"homepage": "http://wiedler.ch/igor/"
}
],
"description": "Événement is a very simple event dispatching library for PHP 5.3",
"keywords": [
"event-dispatcher"
],
"time": "2012-05-30 08:01:08"
},
{ {
"name": "facebook/php-sdk", "name": "facebook/php-sdk",
"version": "v3.2.2", "version": "v3.2.2",
@@ -1160,36 +1252,43 @@
}, },
{ {
"name": "media-alchemyst/media-alchemyst", "name": "media-alchemyst/media-alchemyst",
"version": "0.2.5", "version": "dev-master",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/alchemy-fr/Media-Alchemyst.git", "url": "https://github.com/alchemy-fr/Media-Alchemyst.git",
"reference": "0.2.5" "reference": "85271c70bd5eb6d42d7f02521fb10f3b36307cc7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/alchemy-fr/Media-Alchemyst/zipball/0.2.5", "url": "https://api.github.com/repos/alchemy-fr/Media-Alchemyst/zipball/85271c70bd5eb6d42d7f02521fb10f3b36307cc7",
"reference": "0.2.5", "reference": "85271c70bd5eb6d42d7f02521fb10f3b36307cc7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"alchemy/ghostscript": ">=0.2,<0.3", "alchemy/ghostscript": ">=0.4,<0.5",
"imagine/imagine": "dev-ColorSpaces as 0.4.1", "imagine/imagine": "dev-ColorSpaces",
"mediavorus/mediavorus": ">=0.2,<1.0", "mediavorus/mediavorus": "0.3.x-dev",
"monolog/monolog": ">=1.0,<2.0", "monolog/monolog": ">=1.0,<2.0",
"php": ">=5.3.3", "php": ">=5.3.3",
"php-ffmpeg/php-ffmpeg": ">=0.2,<0.3", "php-ffmpeg/php-ffmpeg": "0.3.x-dev@dev",
"php-mp4box/php-mp4box": ">=0.1,<0.2", "php-mp4box/php-mp4box": ">=0.3,<0.4",
"php-unoconv/php-unoconv": ">=0.1,<0.2", "php-unoconv/php-unoconv": ">=0.3,<0.4",
"pimple/pimple": ">=1.0,<2.0", "pimple/pimple": ">=1.0,<2.0",
"swftools/swftools": ">=0.1,<0.2", "swftools/swftools": ">=0.3,<0.4",
"symfony/console": ">=2.0,<3.0" "symfony/console": ">=2.0,<3.0"
}, },
"require-dev": { "require-dev": {
"neutron/silex-imagine-provider": ">=0.1,<1.0",
"phpexiftool/phpexiftool": ">=0.1,<1.0", "phpexiftool/phpexiftool": ">=0.1,<1.0",
"silex/silex": "1.0.*@dev" "phpunit/phpunit": ">=3.7,<4.0",
"silex/silex": ">=1.0,<2.0"
}, },
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.3-dev"
}
},
"autoload": { "autoload": {
"psr-0": { "psr-0": {
"MediaAlchemyst": "src" "MediaAlchemyst": "src"
@@ -1220,34 +1319,35 @@
"video", "video",
"video processing" "video processing"
], ],
"time": "2013-04-17 23:22:57" "time": "2013-06-26 10:45:28"
}, },
{ {
"name": "mediavorus/mediavorus", "name": "mediavorus/mediavorus",
"version": "0.3.2", "version": "dev-master",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/romainneutron/MediaVorus.git", "url": "https://github.com/romainneutron/MediaVorus.git",
"reference": "0.3.2" "reference": "7e5a4946f0bb2bc341423773db8c494a775ea48f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/romainneutron/MediaVorus/zipball/0.3.2", "url": "https://api.github.com/repos/romainneutron/MediaVorus/zipball/7e5a4946f0bb2bc341423773db8c494a775ea48f",
"reference": "0.3.2", "reference": "7e5a4946f0bb2bc341423773db8c494a775ea48f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"doctrine/collections": ">=1.0,<2.0", "doctrine/collections": ">=1.0,<2.0",
"monolog/monolog": ">=1.0,<2.0", "monolog/monolog": ">=1.0,<2.0",
"php": ">=5.3.0", "php": ">=5.3.0",
"php-ffmpeg/php-ffmpeg": ">=0.2,<1.0", "php-ffmpeg/php-ffmpeg": "0.3.x-dev",
"phpexiftool/phpexiftool": ">=0.1,<1.0", "phpexiftool/phpexiftool": ">=0.1,<1.0",
"symfony/console": ">=2.0,<3.0", "symfony/console": ">=2.0,<3.0",
"symfony/http-foundation": ">=2.0,<3.0" "symfony/http-foundation": ">=2.0,<3.0"
}, },
"require-dev": { "require-dev": {
"jms/serializer": ">=0.10.0,<1.0", "jms/serializer": ">=0.12.0,<0.13.0",
"silex/silex": "1.0.x-dev@dev", "phpunit/phpunit": ">=3.7,<4.0",
"silex/silex": ">=1.0,<2.0",
"symfony/yaml": ">=2.0,<3.0" "symfony/yaml": ">=2.0,<3.0"
}, },
"suggest": { "suggest": {
@@ -1280,7 +1380,7 @@
"keywords": [ "keywords": [
"metadata" "metadata"
], ],
"time": "2013-04-16 17:31:58" "time": "2013-06-25 20:17:26"
}, },
{ {
"name": "monolog/monolog", "name": "monolog/monolog",
@@ -1350,12 +1450,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/mrclay/minify.git", "url": "https://github.com/mrclay/minify.git",
"reference": "6f5721d2db7f290a4528ea4c0b0be21621f670bc" "reference": "3a1f9f55cf8d137e49667a363cb93ccfaac10706"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/mrclay/minify/zipball/6f5721d2db7f290a4528ea4c0b0be21621f670bc", "url": "https://api.github.com/repos/mrclay/minify/zipball/3a1f9f55cf8d137e49667a363cb93ccfaac10706",
"reference": "6f5721d2db7f290a4528ea4c0b0be21621f670bc", "reference": "3a1f9f55cf8d137e49667a363cb93ccfaac10706",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1382,7 +1482,7 @@
], ],
"description": "Minify is a PHP5 app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers", "description": "Minify is a PHP5 app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers",
"homepage": "http://code.google.com/p/minify/", "homepage": "http://code.google.com/p/minify/",
"time": "2013-04-01 15:25:27" "time": "2013-06-24 18:56:00"
}, },
{ {
"name": "neutron/recaptcha", "name": "neutron/recaptcha",
@@ -1646,31 +1746,38 @@
}, },
{ {
"name": "php-ffmpeg/php-ffmpeg", "name": "php-ffmpeg/php-ffmpeg",
"version": "0.2.4", "version": "dev-master",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/alchemy-fr/PHP-FFmpeg", "url": "https://github.com/alchemy-fr/PHP-FFmpeg.git",
"reference": "1c504e9b4d4bcdbc2d8fef5a954127303fae8b77" "reference": "890cbce1f9505e15e20c122c94bc7a2a9ce64417"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://github.com/alchemy-fr/PHP-FFmpeg/archive/1c504e9b4d4bcdbc2d8fef5a954127303fae8b77.zip", "url": "https://api.github.com/repos/alchemy-fr/PHP-FFmpeg/zipball/890cbce1f9505e15e20c122c94bc7a2a9ce64417",
"reference": "1c504e9b4d4bcdbc2d8fef5a954127303fae8b77", "reference": "890cbce1f9505e15e20c122c94bc7a2a9ce64417",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"monolog/monolog": ">=1.0,<2.0", "alchemy/binary-driver": ">=1.5,<2.0",
"php": ">=5.3.3", "doctrine/cache": ">=1.0,<2.0",
"symfony/process": ">=2.0,<3.0" "evenement/evenement": ">=1.0,<2.0",
"php": ">=5.3.3"
}, },
"require-dev": { "require-dev": {
"sami/sami": "dev-master@dev", "phpunit/phpunit": ">=3.7,<4.0",
"silex/silex": "1.0.x-dev@dev" "sami/sami": ">=1.0,<2.0",
"silex/silex": ">=1.0,<2.0"
}, },
"suggest": { "suggest": {
"php-ffmpeg/extras": "A compilation of common audio & video drivers for PHP-FFMpeg" "php-ffmpeg/extras": "A compilation of common audio & video drivers for PHP-FFMpeg"
}, },
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.3-dev"
}
},
"autoload": { "autoload": {
"psr-0": { "psr-0": {
"FFMpeg": "src" "FFMpeg": "src"
@@ -1703,29 +1810,29 @@
"video", "video",
"video processing" "video processing"
], ],
"time": "2013-05-10 21:28:35" "time": "2013-06-25 22:21:12"
}, },
{ {
"name": "php-mp4box/php-mp4box", "name": "php-mp4box/php-mp4box",
"version": "0.1.1", "version": "0.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "git://github.com/alchemy-fr/PHP-MP4Box.git", "url": "https://github.com/alchemy-fr/PHP-MP4Box.git",
"reference": "0.1.1" "reference": "0.3.0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/alchemy-fr/PHP-MP4Box/zipball/0.1.1", "url": "https://api.github.com/repos/alchemy-fr/PHP-MP4Box/zipball/0.3.0",
"reference": "0.1.1", "reference": "0.3.0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"monolog/monolog": ">=1.0,<2.0", "alchemy/binary-driver": ">=1.5,<2.0",
"php": ">=5.3.3", "php": ">=5.3.3"
"symfony/process": ">=2.0,<3.0"
}, },
"require-dev": { "require-dev": {
"silex/silex": "1.0.x-dev@dev" "phpunit/phpunit": ">=3.7,<4.0",
"silex/silex": ">=1.0,<2.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@@ -1750,29 +1857,33 @@
} }
], ],
"description": "PHP MP4Box, an Object Oriented library for easy file conversion with MP4 Box", "description": "PHP MP4Box, an Object Oriented library for easy file conversion with MP4 Box",
"time": "2013-02-11 11:30:00" "keywords": [
"gpac",
"mp4box"
],
"time": "2013-06-25 10:13:06"
}, },
{ {
"name": "php-unoconv/php-unoconv", "name": "php-unoconv/php-unoconv",
"version": "0.1.1", "version": "0.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/alchemy-fr/PHP-Unoconv", "url": "https://github.com/alchemy-fr/PHP-Unoconv.git",
"reference": "0.1.1" "reference": "0.3.0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/alchemy-fr/PHP-Unoconv/zipball/0.1.1", "url": "https://api.github.com/repos/alchemy-fr/PHP-Unoconv/zipball/0.3.0",
"reference": "0.1.1", "reference": "0.3.0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"monolog/monolog": ">=1.0,<2.0", "alchemy/binary-driver": ">=1.5,<2.0",
"php": ">=5.3.3", "php": ">=5.3.3"
"symfony/process": ">=2.0,<3.0"
}, },
"require-dev": { "require-dev": {
"silex/silex": "1.0.x-dev@dev" "phpunit/phpunit": ">=3.7,<4.0",
"silex/silex": ">=1.0,<2.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@@ -1800,7 +1911,7 @@
"keywords": [ "keywords": [
"unoconv" "unoconv"
], ],
"time": "2013-02-11 11:38:30" "time": "2013-06-25 09:53:08"
}, },
{ {
"name": "php-xpdf/php-xpdf", "name": "php-xpdf/php-xpdf",
@@ -2262,26 +2373,28 @@
}, },
{ {
"name": "swftools/swftools", "name": "swftools/swftools",
"version": "0.1.1", "version": "0.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/alchemy-fr/PHPSwftools", "url": "https://github.com/alchemy-fr/PHPSwftools.git",
"reference": "0.1.1" "reference": "0.3.0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/alchemy-fr/PHPSwftools/zipball/0.1.1", "url": "https://api.github.com/repos/alchemy-fr/PHPSwftools/zipball/0.3.0",
"reference": "0.1.1", "reference": "0.3.0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"alchemy/binary-driver": ">=1.5,<2.0",
"monolog/monolog": ">=1.0,<2.0", "monolog/monolog": ">=1.0,<2.0",
"php": ">=5.3.3", "php": ">=5.3.3",
"symfony/process": ">=2.0,<3.0" "pimple/pimple": ">=1.0,<2.0"
}, },
"require-dev": { "require-dev": {
"sami/sami": "dev-master@dev", "phpunit/phpunit": ">=3.7,<4.0",
"silex/silex": "1.0.x-dev@dev" "sami/sami": ">=1.0,<2.0",
"silex/silex": ">=1.0,<2.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@@ -2311,7 +2424,7 @@
"flash", "flash",
"swf" "swf"
], ],
"time": "2013-02-11 11:46:21" "time": "2013-06-25 12:09:36"
}, },
{ {
"name": "swiftmailer/swiftmailer", "name": "swiftmailer/swiftmailer",
@@ -2577,16 +2690,16 @@
}, },
{ {
"name": "themattharris/tmhoauth", "name": "themattharris/tmhoauth",
"version": "0.7.5", "version": "0.8.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/themattharris/tmhOAuth.git", "url": "https://github.com/themattharris/tmhOAuth.git",
"reference": "0.7.5" "reference": "0.8.2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/themattharris/tmhOAuth/zipball/0.7.5", "url": "https://api.github.com/repos/themattharris/tmhOAuth/zipball/0.8.2",
"reference": "0.7.5", "reference": "0.8.2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -2610,12 +2723,12 @@
"role": "Developer" "role": "Developer"
} }
], ],
"description": "An OAuth 1.0A library written in PHP by @themattharris, specifically for use with the Twitter API", "description": "An OAuth library written in PHP by @themattharris",
"keywords": [ "keywords": [
"oauth", "oauth",
"twitter" "twitter"
], ],
"time": "2013-02-20 15:57:52" "time": "2013-06-15 18:00:16"
}, },
{ {
"name": "twig/extensions", "name": "twig/extensions",
@@ -3687,6 +3800,9 @@
"badfaith/badfaith": 20, "badfaith/badfaith": 20,
"dailymotion/sdk": 20, "dailymotion/sdk": 20,
"imagine/imagine": 20, "imagine/imagine": 20,
"mediavorus/mediavorus": 20,
"media-alchemyst/media-alchemyst": 20,
"php-ffmpeg/php-ffmpeg": 20,
"mrclay/minify": 20, "mrclay/minify": 20,
"neutron/silex-imagine-provider": 20, "neutron/silex-imagine-provider": 20,
"neutron/silex-badfaith-provider": 20, "neutron/silex-badfaith-provider": 20,

View File

@@ -27,7 +27,26 @@ main:
options: [] options: []
task-manager: task-manager:
options: null options: null
binaries: [] binaries:
ghostscript_binary: null
php_binary: null
convert_binary: null
composite_binary: null
swf_extract_binary: null
pdf2swf_binary: null
swf_render_binary: null
unoconv_binary: null
ffmpeg_binary: null
ffprobe_binary: null
mp4box_binary: null
pdftotext_binary: null
phraseanet_indexer: null
ffmpeg_timeout: 3600
ffprobe_timeout: 60
gs_timeout: 60
mp4box_timeout: 60
swftools_timeout: 60
unoconv_timeout: 60
border-manager: border-manager:
enabled: true enabled: true
checkers: checkers:

View File

@@ -206,7 +206,40 @@ class Application extends SilexApplication
$this->register(new FilesystemServiceProvider()); $this->register(new FilesystemServiceProvider());
$this->register(new FtpServiceProvider()); $this->register(new FtpServiceProvider());
$this->register(new GeonamesServiceProvider()); $this->register(new GeonamesServiceProvider());
$this->register(new MediaAlchemystServiceProvider()); $this->register(new MediaAlchemystServiceProvider());
$this['media-alchemyst.configuration'] = $this->share(function(Application $app) {
$configuration = array();
foreach (array(
'swftools.pdf2swf.binaries' => 'pdf2swf_binary',
'swftools.swfrender.binaries' => 'swf_render_binary',
'swftools.swfextract.binaries' => 'swf_extract_binary',
'unoconv.binaries' => 'unoconv_binary',
'mp4box.binaries' => 'mp4box_binary',
'gs.binaries' => 'ghostscript_binary',
'ffmpeg.ffmpeg.binaries' => 'ffmpeg_binary',
'ffmpeg.ffprobe.binaries' => 'ffprobe_binary',
'ffmpeg.ffmpeg.timeout' => 'ffmpeg_timeout',
'ffmpeg.ffprobe.timeout' => 'ffprobe_timeout',
'gs.timeout' => 'gs_timeout',
'mp4box.timeout' => 'mp4box_timeout',
'swftools.timeout' => 'swftools_timeout',
'unoconv.timeout' => 'unoconv_timeout',
) as $parameter => $key) {
if (isset($this['phraseanet.configuration']['binaries'][$key])) {
$configuration[$parameter] = $this['phraseanet.configuration']['binaries'][$key];
}
}
$imagineDriver = $app['phraseanet.registry']->get('GV_imagine_driver');
$configuration['ffmpeg.threads'] = $app['phraseanet.registry']->get('GV_ffmpeg_threads');
$configuration['imagine.driver'] = $imagineDriver ?: null;
return $configuration;
});
$this->register(new MediaVorusServiceProvider()); $this->register(new MediaVorusServiceProvider());
$this['mediavorus'] = $this->share( $this['mediavorus'] = $this->share(
@@ -327,13 +360,13 @@ class Application extends SilexApplication
} }
if (class_exists('\Gmagick')) { if (class_exists('\Gmagick')) {
return Imagine::DRIVER_GMAGICK; return 'gmagick';
} }
if (class_exists('\Imagick')) { if (class_exists('\Imagick')) {
return Imagine::DRIVER_IMAGICK; return 'imagick';
} }
if (extension_loaded('gd')) { if (extension_loaded('gd')) {
return Imagine::DRIVER_GD; return 'gd';
} }
throw new \RuntimeException('No Imagine driver available'); throw new \RuntimeException('No Imagine driver available');

View File

@@ -18,7 +18,7 @@ namespace Alchemy\Phrasea\Core;
*/ */
class Version class Version
{ {
protected static $number = '3.8.0.a11'; protected static $number = '3.8.0.a12';
protected static $name = 'Carnosaurus'; protected static $name = 'Carnosaurus';
public static function getNumber() public static function getNumber()

View File

@@ -0,0 +1,70 @@
<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2012 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Alchemy\Phrasea\Application;
class patch_3812 implements patchInterface
{
/** @var string */
private $release = '3.8.0.a12';
/** @var array */
private $concern = array(base::APPLICATION_BOX);
/**
* {@inheritdoc}
*/
public function get_release()
{
return $this->release;
}
/**
* {@inheritdoc}
*/
public function require_all_upgrades()
{
return true;
}
/**
* {@inheritdoc}
*/
public function concern()
{
return $this->concern;
}
/**
* {@inheritdoc}
*/
public function apply(base $appbox, Application $app)
{
$binaries = $app['phraseanet.configuration']['binaries'];
foreach ($binaries as $name => $value) {
if ('' === $value) {
$binaries[$name] = null;
}
}
$binaries['ffmpeg_timeout'] = 3600;
$binaries['ffprobe_timeout'] = 60;
$binaries['gs_timeout'] = 60;
$binaries['mp4box_timeout'] = 60;
$binaries['swftools_timeout'] = 60;
$binaries['unoconv_timeout'] = 60;
$app['phraseanet.configuration']['binaries'] = $binaries;
return true;
}
}

View File

@@ -254,10 +254,10 @@ return call_user_func_array(function(Application $app) {
'default' => '', 'default' => '',
'comment' => _('Imagine driver'), 'comment' => _('Imagine driver'),
'available' => array( 'available' => array(
'' => 'Auto', '' => 'Auto',
\MediaAlchemyst\Driver\Imagine::DRIVER_GMAGICK => 'GraphicsMagick', 'gmagick' => 'GraphicsMagick',
\MediaAlchemyst\Driver\Imagine::DRIVER_IMAGICK => 'ImageMagick', 'imagick' => 'ImageMagick',
\MediaAlchemyst\Driver\Imagine::DRIVER_GD => 'GD', 'gd' => 'GD',
) )
), ),
array( array(

View File

@@ -30,7 +30,26 @@ main:
trusted-proxies: [] trusted-proxies: []
debugger: debugger:
allowed-ips: [] allowed-ips: []
binaries: [] binaries:
ghostscript_binary: null
php_binary: null
convert_binary: null
composite_binary: null
swf_extract_binary: null
pdf2swf_binary: null
swf_render_binary: null
unoconv_binary: null
ffmpeg_binary: null
ffprobe_binary: null
mp4box_binary: null
pdftotext_binary: null
phraseanet_indexer: null
ffmpeg_timeout: 3600
ffprobe_timeout: 60
gs_timeout: 60
mp4box_timeout: 60
swftools_timeout: 60
unoconv_timeout: 60
border-manager: border-manager:
enabled: true enabled: true
checkers: checkers: