Help: Problem to install FFmpeg

Status
Not open for further replies.

leonard

Member
10
2014
1
20
I have a problem to install FFmpeg on CentOS.
My VPS OpenVZ (JSON support) − CentOS ver 6.1.19 on Linux under Apache. Template: centos-5-x86_64-cvps-base.

My friend give me some commands to install via SSH:
  1. # yum install ffmpeg ffmpeg-devel ffmpeg-libpostporc - install FFmpeg
  2. # yum install php-devel php-gd - install FFmpeg-php
  3. # ffmpeg-php extension - Browse /ffmpeg-php at SourceForge.net - download
  4. # tar –xjf ffmpeg-php-0.6.0.tbz2 - extracts installations files from archive file .tbz2
  5. # cd ffmpeg-php-0.6.0 - enter the directory where FFmpeg-php installation files are located
  6. # phpize - prepare to build a PHP ext.
  7. # ./configure - run FFmpeg-php configuration and installation
  8. # make - compile FFmpeg-php source files
  9. # make install - install FFmpeg-php
  10. # yum install gcc - GCC
  11. # yum install gd gd-devel php-gd - GD
  12. # service httpd restart - Restart Apache

But when running step 1, it's an error like this:

# yum install ffmpeg ffmpeg-devel ffmpeg-libpostporc
Loaded plugins: fastestmirror, protectbase, replace
Loading mirror speeds from cached hostfile
* addons: cosmos.cites.illinois.edu
* base: mirror.anl.gov
* extras: mirror.steadfast.net
* updates: lug.mtu.edu
0 packages excluded due to repository protections
Setting up Install Process
No package ffmpeg available.
No package ffmpeg-devel available.
No package ffmpeg-libpostporc available.
Nothing to do

I ask and he replied to do like this:
Code:
nano /etc/yum.repos.d/dag.repo – creates a file called "dag.repo"
After creating the file add following information to it:

[dag]
name=DAG RPM Repository
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
Save the file and exit the editor.

add DAG GPG key and update yum:
rpm --import [URL]http://apt.sw.be/RPM-GPG-KEY.dag.txt[/URL]

Once the key is added you must update your yum tool:
yum update

But, I still got error like this:
# nano /etc/yum.repos.d/dag.repo
-bash: nano: command not found

Then, I couldn't contact him again due to something personal life maybe...
Yeah.. Could anyone help me, please? Thank you in advance.
 
4 comments
Thanks Gavo, it's done! Then I repeat installing nano.x86_64 0:1.3.12-1.1 with successful.
Afterward, start again Step 1 above, like this:

# yum install ffmpeg ffmpeg-devel ffmpeg-libpostporc
Loaded plugins: fastestmirror, protectbase, replace
Loading mirror speeds from cached hostfile
* addons: mirror.solarvps.com
* base: mirror.thelinuxfix.com
* extras: mirror.cs.uwp.edu
* updates: bay.uchicago.edu
0 packages excluded due to repository protections
Setting up Install Process
No package ffmpeg-libpostporc available.
Resolving Dependencies
--> Running transaction check
---> [So many Package, and many --> Processing Dependency: blah-blah...]
Complete!

Well Gavo: At this point I stop, as you see there is "No package..." in red, is it problem or just ignore it..?
 
Run these commands from shell, its takes a long time to complete.

Code:
cd /usr/local/src

wget http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg8/ffmpeginstaller.8.0.tar.gz

tar -zxvf  ffmpeginstaller.8.0.tar.gz

cd ffmpeginstaller.8.0

./install
 
cd ffmpeginstaller.8.0
Nope, I need "ffmpeg-php-0.6.0" for MTN into php application that I have, but thanks anyway!
I've got it at sourceforge.net and download manually, then upload to the host. About libpostporc I ignore it.
Now, the problem is solved, all have been installed successfully..!

Thanks so much for guide me nano command and etc... :)
 
Last edited:
Status
Not open for further replies.
Back
Top