ffmpeg-php | PHP extension for video editing , wrapping ffmpeg | Video Utils library

 by   tony2001 PHP Version: Current License: GPL-2.0

kandi X-RAY | ffmpeg-php Summary

kandi X-RAY | ffmpeg-php Summary

ffmpeg-php is a PHP library typically used in Video, Video Utils applications. ffmpeg-php has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

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…​). ffmpeg-php can access many of the video formats supported by ffmpeg (mov, avi, mpg, wmv…​). Originally hosted at the project seems to be abandoned right now. So here is a fork of it with minor modifications required to make it work with recent PHP versions.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ffmpeg-php has a low active ecosystem.
              It has 84 star(s) with 60 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 9 open issues and 6 have been closed. On average issues are closed in 2 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ffmpeg-php is current.

            kandi-Quality Quality

              ffmpeg-php has 0 bugs and 0 code smells.

            kandi-Security Security

              ffmpeg-php has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ffmpeg-php code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ffmpeg-php is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              ffmpeg-php releases are not available. You will need to build from source code and install.
              ffmpeg-php saves you 880 person hours of effort in developing the same functionality from scratch.
              It has 2013 lines of code, 35 functions and 3 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ffmpeg-php
            Get all kandi verified functions for this library.

            ffmpeg-php Key Features

            No Key Features are available at this moment for ffmpeg-php.

            ffmpeg-php Examples and Code Snippets

            No Code Snippets are available at this moment for ffmpeg-php.

            Community Discussions

            QUESTION

            FFMpeg with PHP-7.0 on Ubuntu
            Asked 2018-Oct-25 at 21:21

            I have a NGINX server with PHP-7.0 and I would like to install the ffmpeg-php extension. I've been trying for a few days now and in many ways.

            The method that worked so far was compiling ffmpeg (https://ffmpeg.org/releases/ffmpeg-4.0.2.tar.bz2) manually, but when trying to compile ffmpeg-php (https: // sourceforge. net / projects / ffmpeg-php / files / ffmpeg-php / 0.6.0 / ffmpeg-php-0.6.0.tbz2 / download) I am encountering the following error message:

            root@zumbiserver-mercury:~/php7-ffmpeg# make /bin/bash

            /root/php7-ffmpeg/libtool --mode=compile cc -I. -I/root/php7-ffmpeg -DPHP_ATOM_INC -I/root/php7-ffmpeg/include -I/root/php7-ffmpeg/main -I/root/php7-ffmpeg -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/php7-ffmpeg/ffmpeg-php.c -o ffmpeg-php.lo libtool: compile: cc -I. -I/root/php7-ffmpeg -DPHP_ATOM_INC -I/root/php7-ffmpeg/include -I/root/php7-ffmpeg/main -I/root/php7-ffmpeg -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /root/php7-ffmpeg/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:104:0, from /usr/include/php/20151012/Zend/zend_stream.h:28, from /usr/include/php/20151012/Zend/zend.h:41, from /usr/include/php/20151012/main/php.h:36, from /root/php7-ffmpeg/ffmpeg-php.c:40: /usr/include/x86_64-linux-gnu/bits/stat.h:91:21: error: field ‘st_atim’ has incomplete type struct timespec st_atim; /* Time of last access. / ^ /usr/include/x86_64-linux-gnu/bits/stat.h:92:21: error: field ‘st_mtim’ has incomplete type struct timespec st_mtim; / Time of last modification. / ^ /usr/include/x86_64-linux-gnu/bits/stat.h:93:21: error: field ‘st_ctim’ has incomplete type struct timespec st_ctim; / Time of last status change. / ^ /usr/include/x86_64-linux-gnu/bits/stat.h:152:21: error: field ‘st_atim’ has incomplete type struct timespec st_atim; / Time of last access. / ^ /usr/include/x86_64-linux-gnu/bits/stat.h:153:21: error: field ‘st_mtim’ has incomplete type struct timespec st_mtim; / Time of last modification. / ^ /usr/include/x86_64-linux-gnu/bits/stat.h:154:21: error: field ‘st_ctim’ has incomplete type struct timespec st_ctim; / Time of last status change. / ^ In file included from /usr/include/php/20151012/Zend/zend_stream.h:28:0, from /usr/include/php/20151012/Zend/zend.h:41, from /usr/include/php/20151012/main/php.h:36, from /root/php7-ffmpeg/ffmpeg-php.c:40: /usr/include/x86_64-linux-gnu/sys/stat.h:364:31: error: array type has incomplete element type ‘struct timespec’ const struct timespec __times[2], ^ /usr/include/x86_64-linux-gnu/sys/stat.h:371:54: error: array type has incomplete element type ‘struct timespec’ extern int futimens (int __fd, const struct timespec __times[2]) __THROW; ^ In file included from /usr/include/php/20151012/main/php.h:395:0, from /root/php7-ffmpeg/ffmpeg-php.c:40: /usr/include/php/20151012/Zend/zend_virtual_cwd.h:218:2: error: unknown type name ‘time_t’ time_t expires;
            ^ /usr/include/php/20151012/Zend/zend_virtual_cwd.h:248:86: error: unknown type name ‘time_t’ CWD_API realpath_cache_bucket
            realpath_cache_lookup(const char *path, int path_len, time_t t); ^ /root/php7-ffmpeg/ffmpeg-php.c: In function ‘zm_startup_ffmpeg’: /root/php7-ffmpeg/ffmpeg-php.c:108:5: warning: implicit declaration of function ‘avcodec_init’ [-Wimplicit-function-declaration] avcodec_init(); ^ /root/php7-ffmpeg/ffmpeg-php.c:111:5: warning: ‘av_register_all’ is deprecated [-Wdeprecated-declarations] av_register_all(); ^ In file included from /root/php7-ffmpeg/ffmpeg-php.c:43:0: /usr/local/include/libavformat/avformat.h:2025:6: note: declared here void av_register_all(void);

            ...

            ANSWER

            Answered 2018-Oct-25 at 19:23

            That ffmpeg-php is a long dead project that hasn't been updated for 10 years. Don't waste your time. If you must use a wrapper see FFmpegPHP or PHP-FFMpeg which appear to be actively maintained as of now.

            Do you even need a wrapper? Perhaps you can just directly use the ffmpeg tool in your scripts. See FFmpeg Wiki: PHP.

            Source https://stackoverflow.com/questions/52995200

            QUESTION

            PHP 7 / Symfony 3.4 Generate video from multiple images using ffmpeg tool
            Asked 2017-Oct-23 at 08:00

            I recently started development on Symfony 3.4. I would like to generate video from a set of images using ffmpeg tool. And in this video I would like to display a text on start of the video and some text at the end of the video.

            Is there any already existing Symfony/PHP package which I can use and generate the video out of images?

            So far on searching, I came across following two packages, but when on trial I could not generate the video out of multiple images.

            1. PHP-FFMpeg Tried with this package but did not get any success and came across this existing issue which says that its not possible using this package.

            2. ffmpeg-php-class Also tried with this package, with reference to Example # 20 , but it only generates video for the single image only.

            ...

            ANSWER

            Answered 2017-Oct-23 at 08:00

            Save all your images in single folder and name it in format img###.png where # is sequence number. Then use slideshow FFMPEG command to generate video:

            Source https://stackoverflow.com/questions/46883944

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ffmpeg-php

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/tony2001/ffmpeg-php.git

          • CLI

            gh repo clone tony2001/ffmpeg-php

          • sshUrl

            git@github.com:tony2001/ffmpeg-php.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link