• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] How to compile FFMPEG on Linux x86-64 with CentOs 6.5 Final + cPanel installed

Started by Bob.Weston,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pkwebhost

Quote from: Bob.Weston on
I also followed that link at the beginning and never could get it to work and many other tutorials on the net.. that is why I wrote this tutorial because it does work if you go step by step.

If my tutorial doesn't work and you have a VPS, you may want to contact the server owner and ask them if they have some security turned on that would block FFMPEG.

Dear Sir

i upload tester its working fine

http://www.samatube.com/tester/ff.php

but when i upload avi file throug phpvibe its show

http://www.samatube.com/video/16442/progress-avi/

  •  

Bob.WestonTopic starter

The processing stuck can be due to several reasons:
1. Old ffmpeg
2. Wrong ffmpeg command
3. Bad bin path
  •  

pkwebhost

Quote from: Bob.Weston on
The processing stuck can be due to several reasons:
1. Old ffmpeg
2. Wrong ffmpeg command
3. Bad bin path

i installed ffmpeg the command you provide and the version is

root@vps2 [~]# ffmpeg
ffmpeg version n2.4.6-150-gfa1ca88-phpvibe Copyright (c) 2000-2015 the FFmpeg de                                                                                        velopers
  built on Jan 31 2015 15:28:24 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
  configuration: --prefix=/home/ffmpeg_build --extra-cflags=-I/home/ffmpeg_build                                                                                        /include --extra-ldflags=-L/home/ffmpeg_build/lib --bindir=/usr/bin --extra-libs                                                                                        =-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --                                                                                        enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-l                                                                                        ibvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --enable-ffplay                                                                                         --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthr                                                                                        eads --enable-libfdk_aac --enable-libopus --enable-libfreetype --enable-libspeex                                                                                         --extra-version=phpvibe
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfi                                                                                        le}...

Use -h to get full help or, even better, run 'man ffmpeg'
root@vps2 [~]#


root@vps2 [~]# which ffmpeg
/usr/bin/ffmpeg
root@vps2 [~]#

root@vps2 [~]# which php
/usr/local/bin/php
root@vps2 [~]#

i already set these path
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Bob.WestonTopic starter

Quote from: pkwebhost on
i installed ffmpeg the command you provide and the version is

root@vps2 [~]# ffmpeg
ffmpeg version n2.4.6-150-gfa1ca88-phpvibe Copyright (c) 2000-2015 the FFmpeg de                                                                                        velopers
  built on Jan 31 2015 15:28:24 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
  configuration: --prefix=/home/ffmpeg_build --extra-cflags=-I/home/ffmpeg_build                                                                                        /include --extra-ldflags=-L/home/ffmpeg_build/lib --bindir=/usr/bin --extra-libs                                                                                        =-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --                                                                                        enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-l                                                                                        ibvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --enable-ffplay                                                                                         --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthr                                                                                        eads --enable-libfdk_aac --enable-libopus --enable-libfreetype --enable-libspeex                                                                                         --extra-version=phpvibe
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfi                                                                                        le}...

Use -h to get full help or, even better, run 'man ffmpeg'
root@vps2 [~]#


root@vps2 [~]# which ffmpeg
/usr/bin/ffmpeg
root@vps2 [~]#

root@vps2 [~]# which php
/usr/local/bin/php
root@vps2 [~]#

i already set these path

As with Mario's question.. you probably don't have enough to run it correctly.
The tester works because it is only a basic command line.
Have you tried different variables in the output line php coding?
Mario could help you with setting up a basic command output line for the videocron.php just to see what your best command line is.

Also be sure your php.ini and apache is set up with the correct variables to ensure your process is not being killed or "terminated" early.
Your php handler should also be set to DSO.
All that information is available in the help file included with the package.
This tutorial only helps u set up the FFMPEG on the server, nothing more.
You still have to follow the rest of the setup procedures listed in the help file.

Your best option is to get a dedicated server up and running..
  •  

theprocss

  •  

yafe3

im facing some issue cant install ffmpeg



make: *** No rule to make target `/tests/Makefile'.  Stop.
root@ukalrraf [~/ffmpeg_sources/ffmpeg]# export TMPDIR=~/mytmp
root@ukalrraf [~/ffmpeg_sources/ffmpeg]# mkdir -p $TMPDIR
root@ukalrraf [~/ffmpeg_sources/ffmpeg]# cd ~/ffmpeg_sources
root@ukalrraf [~/ffmpeg_sources]# git clone git://source.ffmpeg.org/ffmpeg.git
fatal: destination path 'ffmpeg' already exists and is not an empty directory.
root@ukalrraf [~/ffmpeg_sources]# cd ffmpeg
root@ukalrraf [~/ffmpeg_sources/ffmpeg]# git checkout release/2.4
Already on 'release/2.4'
root@ukalrraf [~/ffmpeg_sources/ffmpeg]# PKG_CONFIG_PATH="/home/ffmpeg_build/likgconfig"
root@ukalrraf [~/ffmpeg_sources/ffmpeg]# export PKG_CONFIG_PATH
root@ukalrraf [~/ffmpeg_sources/ffmpeg]# ./configure --prefix="/home/ffmpeg_bui --extra-cflags="-I/home/ffmpeg_build/include" --extra-ldflags="-L/home/ffmpeg_ld/lib" --bindir="/usr/bin" \
> --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopore-amrwb --enable-libvpx --enable-libfaac \
> --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --ble-libvo-aacenc --enable-libxvid --enable-ffplay \
> --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-ptads --enable-libfdk_aac --enable-libopus \
> --enable-libfreetype --enable-libspeex --extra-version=phpvibe
ERROR: libfaac not found


If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
root@ukalrraf [~/ffmpeg_sources/ffmpeg]# make
Makefile:2: config.mak: No such file or directory
Makefile:58: /common.mak: No such file or directory
Makefile:99: /libavutil/Makefile: No such file or directory
Makefile:99: /library.mak: No such file or directory
Makefile:101: /doc/Makefile: No such file or directory
Makefile:184: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'.  Stop.
root@ukalrraf [~/ffmpeg_sources/ffmpeg]# make install
  •  

yafe3

any help for this please

root@ukalrraf [/home/ffmpeg_sources/ffmpeg]# export TMPDIR=$~/tmp
root@ukalrraf [/home/ffmpeg_sources/ffmpeg]# PKG_CONFIG_PATH="/home/ffmpeg_build/lib/pkgconfig"
root@ukalrraf [/home/ffmpeg_sources/ffmpeg]# export PKG_CONFIG_PATH
root@ukalrraf [/home/ffmpeg_sources/ffmpeg]# ./configure --prefix="/home/ffmpeg_build" --extra-cflags="-I/home/ffmpeg_build/include" --extra-ldflags="-L/home/ffmpeg_build/lib" --bindir="/usr/bin" \
> --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac \
> --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --enable-ffplay \
> --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-libfdk_aac --enable-libopus \
> --enable-libfreetype --enable-libspeex --extra-version=phpvibe
-bash: ./configure: No such file or directory
  •  

yafe3

hi sir i run this command
im getting error any help please


Install Libvpx:
Code: [Select]
---------------------------
cd /home/ffmpeg_sources
git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure --prefix="/home/ffmpeg_build" --disable-examples
make
make install
make distclean-----
-----------------------------------
i get this error cant figure  to my help::
fatal: destination path 'libvpx' already exists and is not an empty directory.
root@ukalrraf [/home/ffmpeg_sources]# cd libvpx
root@ukalrraf [/home/ffmpeg_sources/libvpx]# ./configure --prefix="/home/ffmpeg_ild" --disable-examples
-bash: ./configure: No such file or directory
root@ukalrraf [/home/ffmpeg_sources/libvpx]# make
make: *** No targets specified and no makefile found.  Stop.
root@ukalrraf [/home/ffmpeg_sources/libvpx]# make install
make: *** No rule to make target `install'.  Stop.
root@ukalrraf [/home/ffmpeg_sources/libvpx]# make distclean
make: *** No rule to make target `distclean'.  Stop.
root@ukalrraf [/home/ffmpeg_sources/libvpx]#
root@ukalrraf [/home/ffmpeg_sources/libvpx]# Install X264:
-bash: Install: command not found
root@ukalrraf [/home/ffmpeg_sources/libvpx]#
root@ukalrraf [/home/ffmpeg_sources/libvpx]# --enable-postproc
-bash: --enable-postproc: command not found
root@ukalrraf [/home/ffmpeg_sources/libvpx]# cd /home/ffmpeg_sources
root@ukalrraf [/home/ffmpeg_sources]# git clone http://git.chromium.org/webm/libvpx.git
fatal: destination path 'libvpx' already exists and is not an empty directory.
root@ukalrraf [/home/ffmpeg_sources]# cd libvpx
root@ukalrraf [/home/ffmpeg_sources/libvpx]# ./configure --prefix="/home/ffmpeg_build" --disable-examples
-bash: ./configure: No such file or directory
root@ukalrraf [/home/ffmpeg_sources/libvpx]# make
make: *** No targets specified and no makefile found.  Stop.
root@ukalrraf [/home/ffmpeg_sources/libvpx]# make install
make: *** No rule to make target `install'.  Stop.
root@ukalrraf [/home/ffmpeg_sources/libvpx]# make distclean
make: *** No rule to make target `distclean'.  Stop.
root@ukalrraf [/home/ffmpeg_sources/libvpx]#
  •  

neospider69

update on the tutorial

Install Libvpx fix:

cd /home/ffmpeg_sources
git clone https://chromium.googlesource.com/webm/libvpx
cd libvpx
./configure --prefix="/home/ffmpeg_build" --disable-examples
make
make install
make distclean


this one works as of today
  •  

Similar topics (7)