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

2014-04-23 Thread Pierre Joye
On Wed, Apr 23, 2014 at 7:43 PM, Jan Ehrhardt wrote: > Hi Anatol, > > anatol@belski.net, 23/04/14, 19:19: >> >> > The previous message was a little clearer: >> > https://mailman.videolan.org/pipermail/x264-devel/2011-May/008517.html >> >> I don't see where it was issue with building with MSVC

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

2014-04-23 Thread Jan Ehrhardt
Hi Anatol, anatol@belski.net, 23/04/14, 19:19: > The previous message was a little clearer: > https://mailman.videolan.org/pipermail/x264-devel/2011-May/008517.html I don't see where it was issue with building with MSVC in that link, the person just started to build with MinGW right on. To

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

2014-04-23 Thread Jan Ehrhardt
Pierre Joye in php.pecl.dev (Wed, 23 Apr 2014 19:01:56 +0200): >see: > >http://libav.org/platform.html#Windows The only reference to x264 over there is in Paragraph 4.4: Compilation under Cygwin Also note this one: If you want to build Libav with additional libraries, download Cygwin "Devel" pac

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

2014-04-23 Thread Pierre Joye
see: http://libav.org/platform.html#Windows If a github repository is provided with ready to be used sources, we will make it. By the way, linking is not the problem, never was. I could link anything vs anything. The problems appear at runtime, and they can be pretty hard to track down. Cheers,

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

2014-04-23 Thread Jan Ehrhardt
Pierre Joye in php.pecl.dev (Wed, 23 Apr 2014 18:11:01 +0200): >That being said, it is possible to build libav with vc, especially with >2013. If you can provide a ready to be used sources tree, we will happily >use it to provide automatic binaries build, which will then be available >at the same

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

2014-04-23 Thread Pierre Joye
On Apr 23, 2014 4:10 PM, "Chung Leong" wrote: > > The distinction seems entirely philosophical. The usage of MSVCRT.DLL > either leads to problems or it doesn't. How code executes in the computer > isn't affected by our classification of it. > > In any event, it's possible to manually bind the Zer

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

2014-04-23 Thread Jan Ehrhardt
Chung Leong in php.pecl.dev (Wed, 23 Apr 2014 16:10:01 +0200): >The distinction seems entirely philosophical. The usage of MSVCRT.DLL >either leads to problems or it doesn't. How code executes in the computer >isn't affected by our classification of it. > >In any event, it's possible to manually bi

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

2014-04-23 Thread Chung Leong
The distinction seems entirely philosophical. The usage of MSVCRT.DLL either leads to problems or it doesn't. How code executes in the computer isn't affected by our classification of it. In any event, it's possible to manually bind the Zeranoe DLLs to the VC9 or VC11 CRT. On Wed, Apr 23, 2014 a

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

2014-04-23 Thread Pierre Joye
On Wed, Apr 23, 2014 at 9:49 AM, Jan Ehrhardt wrote: > Pierre Joye in php.pecl.dev (Wed, 23 Apr 2014 08:53:47 +0200): >>However, we do not support that for any libraries we provide or bundle >>and for any pecl extension we build and provide. There are way too >>many possible issues and we wasted p

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

2014-04-23 Thread Jan Ehrhardt
Pierre Joye in php.pecl.dev (Wed, 23 Apr 2014 08:53:47 +0200): >However, we do not support that for any libraries we provide or bundle >and for any pecl extension we build and provide. There are way too >many possible issues and we wasted plenty of times trying to fixing >these issues. It is easier

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

2014-04-22 Thread Pierre Joye
On Wed, Apr 23, 2014 at 8:48 AM, Jan Ehrhardt wrote: > "Anatol Belski" in php.pecl.dev (Wed, 23 Apr 2014 07:56:07 +0200): >>> https://projects.blender.org/scm/viewvc.php/trunk/lib/win64/ffmpeg/Readme.txt?view=markup&root=bf-blender >>> http://www.blender.org/download/ >> >>Blender is not PHP. It m

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

2014-04-22 Thread Jan Ehrhardt
"Anatol Belski" in php.pecl.dev (Wed, 23 Apr 2014 07:56:07 +0200): >> https://projects.blender.org/scm/viewvc.php/trunk/lib/win64/ffmpeg/Readme.txt?view=markup&root=bf-blender >> http://www.blender.org/download/ > >Blender is not PHP. It might work if they only use the same compiler and >dont mix C

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

2014-04-22 Thread Anatol Belski
Hi Leong, > -Original Message- > From: Chung Leong [mailto:cleong...@gmail.com] > Sent: Wednesday, April 23, 2014 4:07 AM > To: Anatol Belski > Cc: pecl-dev@lists.php.net > Subject: Re: [PECL-DEV] Extension Proposal: Video Encoding using FFmpeg > > Okay, I tried

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 compone

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 wrote: > >> Ch

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

2014-04-22 Thread Chung Leong
I just realized that PHP5TS.DLL imports the same DLLs. On Wed, Apr 23, 2014 at 4:52 AM, Jan Ehrhardt wrote: > Chung Leong in php.pecl.dev (Wed, 23 Apr 2014 04:06:33 +0200): > >Okay, I tried loading the FFmpeg DLLs manually. It turns out that it's > >impossible to avoid loading MSVCRT.DLL into t

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 no

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 04:06:33 +0200): >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

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 stil

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

2014-04-22 Thread Anatol Belski
On Tue, April 22, 2014 20:22, Chung Leong wrote: > If loading msvcrt.dll is considered harmful, I guess I could just load > the DLLs manually and redirect imports of functions in msvcrt.dll to the > current CRT. It's never advisable to go that deep into an OS's internals > but that's the only pract

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 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 ;-) Jan -- PEC

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

2014-04-22 Thread Pierre Joye
On Tue, Apr 22, 2014 at 7:25 PM, Jan Ehrhardt wrote: > Pierre Joye in php.pecl.dev (Tue, 22 Apr 2014 19:01:20 +0200): >>Also aspell is not supported on windows, for the exact reasons we >>listed here. But it is also useless in regard to the other backends. > > Just curious: is there any OS still u

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:01:20 +0200): >Also aspell is not supported on windows, for the exact reasons we >listed here. But it is also useless in regard to the other backends. Just curious: is there any OS still using ext/pspell? If not, should not it be removed? Jan --

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 wrote: > On Tue, Apr 22, 2014 at 6:58 PM, Jan Ehrhardt 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.

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 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: >> >>No

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 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: > >No, all the deps provided for the core and PECL exts are linked w

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

2014-04-22 Thread Anatol Belski
Hi Jan, On Tue, April 22, 2014 17:38, Jan Ehrhardt wrote: > Pierre Joye in php.pecl.dev (Tue, 22 Apr 2014 16:47:29 +0200): > >> Which means it links against the default crt, which is sadly the VC6 >> one, available by defatult on all windows install. > > I might be mistaken, but isn't the php_ench

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

2014-04-22 Thread Anatol Belski
Jan, Leong, On Tue, April 22, 2014 17:09, Jan Ehrhardt wrote: > 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 >> wrote: >> >>> There is hardly any way to avoid that. The extension will only be >>> useable, if it produces at least

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): >Which means it links against the default crt, which is sadly the VC6 >one, available by defatult on all windows install. I might be mistaken, but isn't the php_enchant.dll extension doing more or less the same thing: https://github.c

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 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 x264 support

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 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, if it pr

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, i

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 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: > http:/

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

2014-04-21 Thread Chung Leong
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: http://www.php-qb.net/index.php/2-uncategorised/16-a-new-bridge-between-php-an