Author Topic: using ffmpeg with php  (Read 17997 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
using ffmpeg with php
« on: November 27, 2016, 02:29:58 PM »
Hi awesome,

I just installed ffmpeg from CentOS web panel GUI. I found on internet that for using ffmpeg with php we also required to use some ffmpeg_php packages.. so I checked it in my phpinfo, but nothing shown as ffmpeg installed.

So I am confused, because I didn't find any document with proper implementation of ffmpeg with php, I wanted to use ffmpeg to stream a live video of my personal PC with my CWP server which has ffmpeg installed to teach students on some url.

I don't want code, instead I am looking for some good documentation or any other resource to learn the same.

I have 1 more question, is it OK to update system from terminal using yum update, while CWP is already installed, or If I update
it, then will it have any issue with CentOS web panel.

Thanks in advance :)

Offline
*****
Re: using ffmpeg with php
« Reply #1 on: November 27, 2016, 02:59:51 PM »
cd /usr/src/ffmpeg-php/trunk

phpize
./configure
make && make install

Offline
*
Re: using ffmpeg with php
« Reply #2 on: November 27, 2016, 03:07:13 PM »
thanks sir,

I tried running your commands, and successfully installed the same..

Code: [Select]
cd /usr/src/ffmpeg-php/trunk

phpize
./configure
make && make install

and after it I tried running make test and I got below test failed, will it have any issue.

Code: [Select]
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
ffmpeg getFrame test [tests/getFrame.phpt]
ffmpeg getFrameResampled test [tests/getFrameResampled.phpt]
ffmpeg getFrames forward test [tests/getFramesForward.phpt]
ffmpeg getFrames forward test [tests/getFramesForwardPassedEnd.phpt]
ffmpeg getFrame in reverse order test [tests/getFramesInReverseOrder.phpt]
ffmpeg getFramesNoArg test [tests/getFramesNoArg.phpt]
ffmpeg getID3Info() test [tests/getID3Info.phpt]
ffmpeg get key frames test [tests/getNextKeyFrame.phpt]
ffmpeg persistent movie test [tests/persistentMovie.phpt]
=====================================================================

also please let me know what is the next step for me. as per my question.
« Last Edit: November 27, 2016, 03:09:04 PM by muhammad »

Offline
*****
Re: using ffmpeg with php
« Reply #3 on: November 28, 2016, 05:38:23 AM »
ignore make test

Offline
***
Re: using ffmpeg with php
« Reply #4 on: May 06, 2017, 06:23:56 AM »
Give  a try with our autoinstaller script. https://www.24x7servermanagement.com/ffmpeginstaller/
https://www.24x7servermanagement.com/
Server Management, Server Security, Server Monitoring.
India's Leading Managed Service Provider !!

Offline
*
Re: using ffmpeg with php
« Reply #5 on: May 18, 2017, 05:58:39 PM »
I have the same problem..