Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Anatol Belski
Hi Leong, On Tue, April 22, 2014 02:31, Chung Leong wrote: I would like to add my AV extension to PECL. The extension gives PHP programmers a way to decode and encode video using the FFmpeg or Libav (the latter is favored by some distros like Debian). I've written about it here:

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Jan Ehrhardt
Anatol Belski in php.pecl.dev (Tue, 22 Apr 2014 10:44:52 +0200): I would strongely discourage you from linking with the libraries built with MinGW. There is hardly any way to avoid that. The extension will only be useable, if it produces at least MP4 (x264) output. This means ffmpeg has to be

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Jan Ehrhardt
Jan Ehrhardt in php.pecl.dev (Tue, 22 Apr 2014 16:28:30 +0200): Anatol Belski in php.pecl.dev (Tue, 22 Apr 2014 10:44:52 +0200): I would strongely discourage you from linking with the libraries built with MinGW. There is hardly any way to avoid that. The extension will only be useable, if it

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Pierre Joye
On Tue, Apr 22, 2014 at 4:28 PM, Jan Ehrhardt php...@ehrhardt.nl wrote: Anatol Belski in php.pecl.dev (Tue, 22 Apr 2014 10:44:52 +0200): I would strongely discourage you from linking with the libraries built with MinGW. There is hardly any way to avoid that. The extension will only be useable,

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Jan Ehrhardt
Pierre Joye in php.pecl.dev (Tue, 22 Apr 2014 16:47:29 +0200): On Tue, Apr 22, 2014 at 4:28 PM, Jan Ehrhardt php...@ehrhardt.nl wrote: There is hardly any way to avoid that. The extension will only be useable, if it produces at least MP4 (x264) output. This means ffmpeg has to be compiled with

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Pierre Joye
On Tue, Apr 22, 2014 at 6:58 PM, Jan Ehrhardt php...@ehrhardt.nl wrote: Anatol Belski in php.pecl.dev (Tue, 22 Apr 2014 18:43:05 +0200): Hi Jan, On Tue, April 22, 2014 17:38, Jan Ehrhardt wrote: I might be mistaken, but isn't the php_enchant.dll extension doing more or less the same thing:

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Pierre Joye
On Tue, Apr 22, 2014 at 7:00 PM, Pierre Joye pierre@gmail.com wrote: On Tue, Apr 22, 2014 at 6:58 PM, Jan Ehrhardt php...@ehrhardt.nl wrote: Anatol Belski in php.pecl.dev (Tue, 22 Apr 2014 18:43:05 +0200): Hi Jan, On Tue, April 22, 2014 17:38, Jan Ehrhardt wrote: I might be mistaken, but

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Jan Ehrhardt
Pierre Joye in php.pecl.dev (Tue, 22 Apr 2014 19:37:53 +0200): On Tue, Apr 22, 2014 at 7:25 PM, Jan Ehrhardt php...@ehrhardt.nl wrote: Just curious: is there any OS still using ext/pspell? If not, should not it be removed? Would love to but not willing to battle for that :) Crystal clear ;-)

Re: [PECL-DEV] Extension proposal: dom_varimport

2014-04-22 Thread Dmitry Koterov
Johannes, Thanks a lot, I modified the extension carefully according to all of your notes. Everything has been covered by tests, here they are: https://github.com/DmitryKoterov/dom_varimport/tree/master/tests About your note You should add the dom extension as dependency in the module structure,

Re: [PECL-DEV] Extension proposal: dom_varimport

2014-04-22 Thread Alexey Zakhlestin
On 22 Apr 2014, at 23:02, Dmitry Koterov dmitry.kote...@gmail.com wrote: Johannes, Thanks a lot, I modified the extension carefully according to all of your notes. Everything has been covered by tests, here they are: https://github.com/DmitryKoterov/dom_varimport/tree/master/tests About

Re: [PECL-DEV] Extension proposal: dom_varimport

2014-04-22 Thread Dmitry Koterov
Thanks! Fixed: https://github.com/DmitryKoterov/dom_varimport/blob/master/dom_varimport.c#L66 Now if somebody e.g. tries to run dl('dom_varimport.so') when dom extension is not loaded, PHP throws an error. Run-time module dependency. Good. On Wed, Apr 23, 2014 at 12:05 AM, Alexey Zakhlestin

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Chung Leong
Okay, I tried loading the FFmpeg DLLs manually. It turns out that it's impossible to avoid loading MSVCRT.DLL into the process. FFmpeg imports from ADVAPI.DLL and USER32.DLL. Those system DLLs in turn will bring in MSVCRT.DLL. Even if we link statically or rebuild FFmpeg in VC, MSVCRT.DLL will

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Jan Ehrhardt
Anatol Belski in php.pecl.dev (Tue, 22 Apr 2014 21:53:35 +0200): The msvcrt.dll is now a known DLL, meaning that it is a system component owned and built by Windows. It is intended for future use only by system-level components. and neither PHP nor ffmpeg are system-level. So that is not an issue

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Jan Ehrhardt
Chung Leong in php.pecl.dev (Wed, 23 Apr 2014 05:18:09 +0200): I just realized that PHP5TS.DLL imports the same DLLs. Yes, but advapi.dll and user32.dll are system-level components on Windows. Thus they are allowed to use msvcrt.dll. On Wed, Apr 23, 2014 at 4:52 AM, Jan Ehrhardt

Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg

2014-04-22 Thread Anatol Belski
Jan, On Wed, April 23, 2014 05:08, Jan Ehrhardt wrote: Anatol Belski in php.pecl.dev (Tue, 22 Apr 2014 21:53:35 +0200): The msvcrt.dll is now a known DLL, meaning that it is a system component owned and built by Windows. It is intended for future use only by system-level components. and