The ffmpeg-php is an extension for PHP that adds an easy to use, object-oriented
API for accessing and retrieving information from video and audio files. It has
methods for returning frames from movie files as images that can be manipulated
using PHP's image functions. This works well for automatically creating
thumbnail images from movies. ffmpeg-php is also useful for reporting the
duration and bitrate of audio files (mp3, wma...).
The ffmpeg-php can access many of the video formats supported by ffmpeg (mov,
avi, mpg, wmv...)
WWW: http://ffmpeg-php.sourceforge.net/
Remove expired ports:
2018-12-30 net/pecl-mosquitto: Works only with EOL php 5.6
2018-12-30 net/pecl-ip2location: Works only with EOL php 5.6
2018-12-30 net/pecl-yp: Works only with EOL php 5.6
2018-12-30 net/pecl-oauth: Works only with EOL php 5.6
2018-12-30 net/pecl-apn: Works only with EOL php 5.6
2018-12-30 textproc/pecl-doublemetaphone: Works only with EOL php 5.6
2018-12-30 textproc/pecl-ctemplate: Works only with EOL php 5.6
2018-12-30 textproc/pecl-xslcache: Works only with EOL php 5.6
2018-12-30 textproc/libmrss-php: Works only with EOL php 5.6
2018-12-30 textproc/pecl-stem: Works only with EOL php 5.6
2018-12-30 textproc/pecl-wbxml: Works only with EOL php 5.6
2018-12-30 textproc/pecl-syck: Works only with EOL php 5.6
2018-12-30 textproc/pecl-yaml1: Works only with EOL php 5.6
2018-12-30 deskutils/surrealtodo: Works only with EOL php 5.6
(Only the first 15 lines of the commit message are shown above )
graphics/php5-ffmpeg: unbreak with ffmpeg 4.0
ffmpeg_movie.c:978:29: error: no member named 'codec_name' in 'struct
AVCodecContext'; did you mean 'coded_frame'?
} else if (decoder_ctx->codec_name[0] != '\0') {
^~~~~~~~~~
coded_frame
/usr/local/include/libavcodec/avcodec.h:2760:35: note: 'coded_frame' declared
here
attribute_deprecated AVFrame *coded_frame;
^
ffmpeg_movie.c:978:43: error: invalid operands to binary expression ('AVFrame'
(aka 'struct AVFrame') and 'int')
} else if (decoder_ctx->codec_name[0] != '\0') {
~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~
ffmpeg_movie.c:979:35: error: no member named 'codec_name' in 'struct
AVCodecContext'
codec_name = decoder_ctx->codec_name;
~~~~~~~~~~~ ^
PR: 227726
Reported by: antoine (via exp-run)
Introduce PHP flavors.
Ports using USES=php:phpize, php:ext, php:zend, and php:pecl are now
flavored. They will automatically get flavors (php56, php70, php71, php72)
depending of the versions they support (set with IGNORE_WITH_PHP). As a
consequence, ports using USES=pear and USES=horde are also flavored.
PR: 226242
Submitted by: mat
Exp-run by: antoine
Approved by: portmgr
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D14208
graphics/php5-ffmpeg: unbreak runtime with ffmpeg 3.x
$ echo CFLAGS+=-Werror=implicit-function-declaration >>Makefile.local
$ make
[...]
ffmpeg_movie.c:1228:13:error: implicit declaration of function
'avcodec_alloc_frame' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
frame = avcodec_alloc_frame();
^
PR: 214191
Pointy hat to: jbeich
Approved by: portmgr blanket
graphics/php5-ffmpeg: unbreak build with ffmpeg 3.x
ffmpeg_movie.c:975:41: error:
use of undeclared identifier 'CODEC_ID_MPEG2TS'; did you mean
'AV_CODEC_ID_MPEG2TS'?
} else if (decoder_ctx->codec_id == CODEC_ID_MPEG2TS) {
^~~~~~~~~~~~~~~~
AV_CODEC_ID_MPEG2TS
/usr/local/include/libavcodec/avcodec.h:647:5: note: 'AV_CODEC_ID_MPEG2TS'
declared here
AV_CODEC_ID_MPEG2TS = 0x20000, /**< _FAKE_ codec to indicate a raw MPEG-2 TS
^
ffmpeg_frame.c:502:34: error:
use of undeclared identifier 'PIX_FMT_YUV420P'; did you mean
'AV_PIX_FMT_YUV420P'?
_php_convert_frame(ff_frame, PIX_FMT_YUV420P);
^~~~~~~~~~~~~~~
ffmpeg_frame.c:514:50: error:
use of undeclared identifier 'PIX_FMT_YUV420P'; did you mean
'AV_PIX_FMT_YUV420P'?
avpicture_alloc((AVPicture*)resampled_frame, PIX_FMT_YUV420P,
^~~~~~~~~~~~~~~
/usr/local/include/libavutil/pixfmt.h:62:5: note: 'AV_PIX_FMT_YUV420P' declared
here
AV_PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per
2x2 Y samples)
^
PR: 214191
Approved by: portmgr blanket
Don't use extension.ini any more, and have each extension install in its
file, so the order remains the same.
Every PHP (or Zend) extension now installs its own .ini file in
/usr/local/etc/php. A PHP extension will be automatically activated
when installed. The order into which extensions are loaded is
automatically guessed. In some very rare cases, the guess will be
wrong, and PHP_MOD_PRIO will need to be set. Refer to the USES=php
section of the Porter's Handbook for more information.
Convert ports touching etc/php/extensions.ini manually, or telling the
OP to do it.
And finally, bump PORTREVISION for all php extensions.
PR: 210697
Submitted by: mat
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D7022
- Update to 0.6.0.20120114 (latest snapshot)
- Add LICENSE
- Update dependency: use multimedia/ffmpeg instead of multimedia/ffmpeg0
- Support STAGEDIR
- Cleanup Makefile
- Reformat pkg-descr
- Use single space after WWW:
- Take maintainership
Changes: http://sourceforge.net/p/ffmpeg-php/code/commit_browser
- Update php4-ffmpeg to 0.5.1 (last version for php4)
- Upgrade php5-ffmpeg from slave to standalone port and update to 0.6.0
PR: ports/126143
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
Approved by: maintainer timeout (acm; 4 weeks)
New ports: graphics/php4-ffmpeg graphics/php5-ffmpeg
The ffmpeg-php is an extension for PHP that adds an easy to use,
object-oriented API for accessing and retrieving information from video and
audio files. It has methods for returning frames from movie files as images
that can be manipulated using PHP's image functions. This works well for
automatically creating thumbnail images from movies. ffmpeg-php is also useful
for reporting the duration and bitrate of audio files (mp3, wma...).
The ffmpeg-php can access many of the video formats supported by ffmpeg (mov,
avi, mpg, wmv...)
WWW: http://ffmpeg-php.sourceforge.net/