$ 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
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
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
- 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
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/