Control Web Panel

WebPanel => FFMPEG => Topic started by: muhammad on November 27, 2016, 02:29:58 PM

Title: using ffmpeg with php
Post by: muhammad 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 :)
Title: Re: using ffmpeg with php
Post by: Sandeep on November 27, 2016, 02:59:51 PM
cd /usr/src/ffmpeg-php/trunk

phpize
./configure
make && make install
Title: Re: using ffmpeg with php
Post by: muhammad 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.
Title: Re: using ffmpeg with php
Post by: Sandeep on November 28, 2016, 05:38:23 AM
ignore make test
Title: Re: using ffmpeg with php
Post by: 24x7servermanagement on May 06, 2017, 06:23:56 AM
Give  a try with our autoinstaller script. https://www.24x7servermanagement.com/ffmpeginstaller/
Title: Re: using ffmpeg with php
Post by: sllz on May 18, 2017, 05:58:39 PM
I have the same problem..