broken php packages delivered to ubuntu intrepid
so i can't build ffmpeg as extension , so i must build php from source and vanilla
/configure: line 4735: LTOPTIONS_VERSION: command not found
./configure: line 4736: LTSUGAR_VERSION: command not found
./configure: line 4737: LTVERSION_VERSION: command not found
./configure: line 4738: LTOBSOLETE_VERSION: command not found
checking for a sed that does not truncate output... (cached) /bin/sed
./configure: line 4828: syntax error near unexpected token `lt_decl_varnames,'
./configure: line 4828: `lt_if_append_uniq(lt_decl_varnames, SED, , ,'
http://pecl.php.net/bugs/bug.php?id=14609
Showing posts with label ffmpeg. Show all posts
Showing posts with label ffmpeg. Show all posts
Thursday, June 26, 2008
ffmpeg + mplayer + mencoder script for fedora/centos or any linux host (debian / ubuntu )
needed for this php class where generic install is described bellow
also is now added to google code
http://code.google.com/p/build-ffmpeg/source/checkout
#1 get som prerequizite
#. On Fedora.Centos
# yum install ruby subversion gcc
apt-get install ruby subversion gcc git-core automake unzip
#2.Get faad2 (here are some details)
#http://packages.ubuntu.com/source/intrepid/faad2
wget http://archive.ubuntu.com/ubuntu/pool/universe/f/faad2/faad2_2.6.1.orig.tar.gz
tar -zxvf faad2_2.6.1.orig.tar.gz
cd faad2
./bootstrap
./configure --prefix=/usr;make;make install ;cd ..
#3.Get liba52 - a free ATSC A/52 stream decoder
#http://liba52.sourceforge.net/
wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
tar -zxvf a52dec-0.7.4.tar.gz
cd a52dec-0.7.4
./configure --prefix=/usr;make;make install ;cd ..
#4.Get libgsm http://packages.qa.debian.org/libg/libgsm.html
wget http://ftp.debian.org/debian/pool/main/libg/libgsm/libgsm_1.0.12.orig.tar.gz
tar -zxf libgsm_1.0.12.orig.tar.gz
cd gsm-1.0-pl12
./configure --prefix=/usr;make;make install ;cd ..
#5.Get Faac
wget http://surfnet.dl.sourceforge.net/sourceforge/faac/faac-1.26.tar.gz
tar -zxf faac-1.26.tar.gz
cd faac
./bootstrap
./configure --prefix=/usr;make;make install ;cd ..
#6.Get Lame
wget http://mesh.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
tar -zxf lame-3.97.tar.gz
cd lame-3.97
./configure --prefix=/usr;make;make install;cd ..
#7.Get xvidcore
wget http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.bz2
tar -jxf xvidcore-1.1.3.tar.bz2
cd xvidcore-1.1.3/build/generic/
./configure --prefix=/usr;make;make install
cd ../../../
#8.From http://www.penguin.cz/~utx/amr download amrnb-7.0.0.2.tar.bz2 and amrwb-7.0.0.3.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2
tar -jxvf amrwb-7.0.0.3.tar.bz2
cd amrwb-7.0.0.3
./configure --prefix=/usr;make;make install;cd ..
tar -jxvf amrnb-7.0.0.2.tar.bz2
cd amrnb-7.0.0.2
./configure --prefix=/usr;make;make install;cd ..
#9.Get theora from here http://theora.org/svn/
svn co http://svn.xiph.org/trunk/theora
cd theora
./autogen.sh
./configure --prefix=/usr;make;make install;cd ..
#10.GEt x264 from here http://www.videolan.org/developers/x264.html
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20080625-2245.tar.bz2
tar -jxvf x264-snapshot-20080625-2245.tar.bz2
cd x264-snapshot-20080625-2245
./configure --prefix=/usr --disable-asm --enable-pic ;make ;make install
cd ..
#11.Finally ffmpeg from svn trunk
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --prefix=/usr --enable-libamr-nb --enable-libamr-wb --enable-libvorbis --enable-libxvid --enable-liba52 --enable-libmp3lame --enable-libx264 --enable-libtheora --enable-libfaad --enable-gpl --enable-shared --enable-pthreads --enable-libfaac --enable-nonfree --enable-postproc
make ; make install; cd ..
#Needed for extension after php5-dev is installed
#http://ffmpeg-php.sourceforge.net/
#12.Get ffmpeg-php
wget http://dfn.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.3.1.tbz2
tar -jxvf ffmpeg-php-0.5.3.1.tbz2
cd ffmpeg-php-0.5.3.1
phpize
./configure;make ; make install
#and enable it in php.ini
#echo 'extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so' >> /usr/local/Zend/etc/php.ini
#Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)
#service httpd restart
#Verify if it works
php -r 'phpinfo();' | grep ffmpeg
#13.Get mplayer
wget http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
tar -jxvf essential-20061022.tar.bz2
tar -jxvf MPlayer-1.0rc2.tar.bz2
mkdir -p /usr/lib/codecs/
cd essential-20061022
mv * /usr/lib/codecs/
cd ..
cd MPlayer-1.0rc2/
./configure --prefix=/usr
make; make install;cd ..
#14.Get flvtool2
wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
tar -zxvf flvtool2-1.0.6.tgz
cd flvtool2-1.0.6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd ..
needed for this php class where generic install is described bellow
also is now added to google code
http://code.google.com/p/build-ffmpeg/source/checkout
#1 get som prerequizite
#. On Fedora.Centos
# yum install ruby subversion gcc
apt-get install ruby subversion gcc git-core automake unzip
#2.Get faad2 (here are some details)
#http://packages.ubuntu.com/source/intrepid/faad2
wget http://archive.ubuntu.com/ubuntu/pool/universe/f/faad2/faad2_2.6.1.orig.tar.gz
tar -zxvf faad2_2.6.1.orig.tar.gz
cd faad2
./bootstrap
./configure --prefix=/usr;make;make install ;cd ..
#3.Get liba52 - a free ATSC A/52 stream decoder
#http://liba52.sourceforge.net/
wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
tar -zxvf a52dec-0.7.4.tar.gz
cd a52dec-0.7.4
./configure --prefix=/usr;make;make install ;cd ..
#4.Get libgsm http://packages.qa.debian.org/libg/libgsm.html
wget http://ftp.debian.org/debian/pool/main/libg/libgsm/libgsm_1.0.12.orig.tar.gz
tar -zxf libgsm_1.0.12.orig.tar.gz
cd gsm-1.0-pl12
./configure --prefix=/usr;make;make install ;cd ..
#5.Get Faac
wget http://surfnet.dl.sourceforge.net/sourceforge/faac/faac-1.26.tar.gz
tar -zxf faac-1.26.tar.gz
cd faac
./bootstrap
./configure --prefix=/usr;make;make install ;cd ..
#6.Get Lame
wget http://mesh.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
tar -zxf lame-3.97.tar.gz
cd lame-3.97
./configure --prefix=/usr;make;make install;cd ..
#7.Get xvidcore
wget http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.bz2
tar -jxf xvidcore-1.1.3.tar.bz2
cd xvidcore-1.1.3/build/generic/
./configure --prefix=/usr;make;make install
cd ../../../
#8.From http://www.penguin.cz/~utx/amr download amrnb-7.0.0.2.tar.bz2 and amrwb-7.0.0.3.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2
tar -jxvf amrwb-7.0.0.3.tar.bz2
cd amrwb-7.0.0.3
./configure --prefix=/usr;make;make install;cd ..
tar -jxvf amrnb-7.0.0.2.tar.bz2
cd amrnb-7.0.0.2
./configure --prefix=/usr;make;make install;cd ..
#9.Get theora from here http://theora.org/svn/
svn co http://svn.xiph.org/trunk/theora
cd theora
./autogen.sh
./configure --prefix=/usr;make;make install;cd ..
#10.GEt x264 from here http://www.videolan.org/developers/x264.html
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20080625-2245.tar.bz2
tar -jxvf x264-snapshot-20080625-2245.tar.bz2
cd x264-snapshot-20080625-2245
./configure --prefix=/usr --disable-asm --enable-pic ;make ;make install
cd ..
#11.Finally ffmpeg from svn trunk
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --prefix=/usr --enable-libamr-nb --enable-libamr-wb --enable-libvorbis --enable-libxvid --enable-liba52 --enable-libmp3lame --enable-libx264 --enable-libtheora --enable-libfaad --enable-gpl --enable-shared --enable-pthreads --enable-libfaac --enable-nonfree --enable-postproc
make ; make install; cd ..
#Needed for extension after php5-dev is installed
#http://ffmpeg-php.sourceforge.net/
#12.Get ffmpeg-php
wget http://dfn.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.3.1.tbz2
tar -jxvf ffmpeg-php-0.5.3.1.tbz2
cd ffmpeg-php-0.5.3.1
phpize
./configure;make ; make install
#and enable it in php.ini
#echo 'extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so' >> /usr/local/Zend/etc/php.ini
#Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)
#service httpd restart
#Verify if it works
php -r 'phpinfo();' | grep ffmpeg
#13.Get mplayer
wget http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
tar -jxvf essential-20061022.tar.bz2
tar -jxvf MPlayer-1.0rc2.tar.bz2
mkdir -p /usr/lib/codecs/
cd essential-20061022
mv * /usr/lib/codecs/
cd ..
cd MPlayer-1.0rc2/
./configure --prefix=/usr
make; make install;cd ..
#14.Get flvtool2
wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
tar -zxvf flvtool2-1.0.6.tgz
cd flvtool2-1.0.6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd ..
Sunday, April 13, 2008
Build VLC media player under Ubuntu Hardy (8.04) from git
Here is the full howto
The only addition i can make : vlc and ffmpeg switched to git
so to extract the x264 library you would need these command lines
$ cd extras
$ git clone git://git.videolan.org/x264.git
$ git clone git://git.mplayerhq.hu/ffmpeg/
$ cd ffmpeg
$ git clone git://git.mplayerhq.hu/libswscale/
Here is the full howto
The only addition i can make : vlc and ffmpeg switched to git
so to extract the x264 library you would need these command lines
$ cd extras
$ git clone git://git.videolan.org/x264.git
$ git clone git://git.mplayerhq.hu/ffmpeg/
$ cd ffmpeg
$ git clone git://git.mplayerhq.hu/libswscale/
Thursday, February 07, 2008
building vlc nightly debian/ubuntu way
$sudo apt-get remove vlc vlc-nox libvlc0
$sudo apt-get install xulrunner libxul-dev liblua5.1-0-dev libsvga1-dev libxpm-dev libtwolame-dev libshout3-dev libqt4-dev qt4-dev-tools libfaad2-dev libjack-dev libqt4-core
$sudo apt-get install devscripts
$dget -x http://nightlies.videolan.org/build/gutsy-i386/latest/vlc_0.9.0-svn20080130-0-0.dsc
$cd vlc-0.9.0-svn20080130-0/
$ debuild -i -us -uc -b
$ cd ..
$ dpkg -i vlc_0.9.0-svn20080130-0-0_amd64.deb libvlc1_0.9.0-svn20080130-0-0_amd64.deb libvlc1-dev_0.9.0-svn20080130-0-0_amd64.deb vlc-nox_0.9.0-svn20080130-0-0_amd64.deb
happy flv streaming
$sudo apt-get remove vlc vlc-nox libvlc0
$sudo apt-get install xulrunner libxul-dev liblua5.1-0-dev libsvga1-dev libxpm-dev libtwolame-dev libshout3-dev libqt4-dev qt4-dev-tools libfaad2-dev libjack-dev libqt4-core
$sudo apt-get install devscripts
$dget -x http://nightlies.videolan.org/build/gutsy-i386/latest/vlc_0.9.0-svn20080130-0-0.dsc
$cd vlc-0.9.0-svn20080130-0/
$ debuild -i -us -uc -b
$ cd ..
$ dpkg -i vlc_0.9.0-svn20080130-0-0_amd64.deb libvlc1_0.9.0-svn20080130-0-0_amd64.deb libvlc1-dev_0.9.0-svn20080130-0-0_amd64.deb vlc-nox_0.9.0-svn20080130-0-0_amd64.deb
happy flv streaming
Labels:
ffmpeg,
ubuntu gutsy,
vlc,
vlc nightly,
vlc streaming
Thursday, January 17, 2008
[linux-dvb] leadtek pvr2200 and cx23885 driver on ubuntu server
I try to use it on my ubuntu hardy machine for video capture mainly and mpeg2 stream encoding (have no interest in using tvtuner yet) chipset seems to be Conexant CX23885+CX23416 and xceive3028 http://www.leadtek.com/eng/tv_tuner/specification.asp?pronameid=351&lineid=6&act=2[linux-dvb] leadtek pvr2200 and cx23885 driver
Blogged with Flock
Labels:
cx23885,
ffmpeg,
leadtek pvr2200,
ubuntu,
vlc
Wednesday, November 28, 2007
Alternate way to compile AMR Codec Libraries for GNU-Linux into ffmpeg
This is a home page or amrnb and amrwb libraries, based on the reference implementation. I created it to prevent ugly embedding of the same code to many Open Source projects and to maintain patches and fixes for it.AMR Codec Libraries for GNU-Linux
Alternate way to compile amrcode libraries
is to download the scripts from bellow and then add the copile flags for ffmpeg from svn (or you can install it all in /usr and add no extra flags)--enable-libamr-nb --extra-cflags=-I/opt/libamrnb/include --extra-ldflags=-L/opt/libamrnb/lib
http://ubuntuforums.org/showthread.php?t=178455
I will modify my compile scripts and see how it works
cat ffmpeg_checkout.sh
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cat ffmpeg/configure.sh
./configure --prefix=/usr --enable-libamr-nb --enable-libamr-wb --enable-libogg --enable-libvorbis --enable-libgsm --enable-libxvid --enable-liba52 --enable-libmp3lame --enable-libx264 --enable-libtheora --enable-libfaad --enable-gpl --enable-shared --enable-pthreads --enable-swscaler
cat mplayer_checkout.sh
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
mplayer is configured with --prefix=/usr
also don't forget to install the full code pack
http://www3.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
into /usr/lib/codecs
mkdir /usr/lib/codecs/
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
tar -jxvf all-20071007.tar.bz2
cd all-20071007
mv * /usr/lib/codecs/
cd mplayer
./configure --prefix=/usr
make install
Blogged with Flock
Thursday, July 12, 2007
3gp, 2gp , mp4 conversion issues with ffmpeg
ffmpeg accepts only encoding 3gp , 2gp , mp4 files (E- means encoding D-deconding)
ffmpeg -formats | grep 3gp
E 3g2 3gp2 format
E 3gp 3gp format
DE amr 3gpp amr file format
D mov,mp4,m4a,3gp,3g2,mj2 QuickTime/MPEG4/Motion JPEG 2000 format
ffmpeg -formats | grep mp4
E mp4 mp4 format
E psp psp mp4 format
so it is needed that mencoder to be used to decode the
3gp,2gp,mp4 files
mencoder example.3g2 -nosound -ovc lavc -lavcopts
vcodec=mpeg4 -o example.avi
mplayer -vo null -ao pcm -af
resample=8000,volume=+4db:sc example.3g2
ffmpeg -i example.avi -i audiodump.wav example.flv
ffmpeg accepts only encoding 3gp , 2gp , mp4 files (E- means encoding D-deconding)
ffmpeg -formats | grep 3gp
E 3g2 3gp2 format
E 3gp 3gp format
DE amr 3gpp amr file format
D mov,mp4,m4a,3gp,3g2,mj2 QuickTime/MPEG4/Motion JPEG 2000 format
ffmpeg -formats | grep mp4
E mp4 mp4 format
E psp psp mp4 format
so it is needed that mencoder to be used to decode the
3gp,2gp,mp4 files
mencoder example.3g2 -nosound -ovc lavc -lavcopts
vcodec=mpeg4 -o example.avi
mplayer -vo null -ao pcm -af
resample=8000,volume=+4db:sc example.3g2
ffmpeg -i example.avi -i audiodump.wav example.flv
Wednesday, July 04, 2007
compiling ffmpeg (and mplayer) with amr7 support
http://www.penguin.cz/~utx/amr
apt-get install libgsm1-dev toolame libgsm1-dev libvorbis-dev libogg-dev
apt-get install libfaad2-dev
apt-get install subversion
apt-get install libgsm1-dev libgsmme-dev
apt-get install unzip
apt-get install liba52-0.7.4-dev
apt-get install patch
wget http://downloads.xvid.org/downloads/xvidcore-1.1.2.tar.bz2
tar -jxf xvidcore-1.1.2.tar.bz2
wget http://mesh.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
tar -zxvf lame-3.97.tar.gz
cd lame-3.97
./configure --prefix=/usr;make;make install
cd ..
cd xvidcore-1.1.2/build/generic/
./configure --prefix=/usr;make;make install
cd ../../../
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg/libavcodec/
mkdir amrwb_float
cd amrwb_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
unzip 26204-510.zip
unzip 26204-510_ANSI-C_source_code.zip
cd ..
mkdir amr_float
cd amr_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
unzip 26104-510.zip
unzip 26104-510_ANSI_C_source_code.zip
cd ../../
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.1.tar.bz2
tar -jxvf amrwb-7.0.0.1.tar.bz2
cd amrwb-7.0.0.1
./configure --prefix=/usr ; make ; make install
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2
tar -jxvf amrnb-6.1.0.4.tar.bz2
cd amrnb-6.1.0.4
./configure --prefix=/usr ; make ; make install
./configure --prefix=/usr --enable-libamr-nb --enable-libamr-wb --enable-libogg --enable-libvorbis --enable-libgsm --enable-libxvid --enable-liba52 --enable-libmp3lame --enable-gpl;
make ; make install
cd ..
wget http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2
wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
tar -jxvf essential-20061022.tar.bz2
mkdir /usr/lib/codecs/
cd essential-20061022
mv * /usr/lib/codecs/
cd ..
cd MPlayer-1.0rc1/
./configure --prefix=/opt/mplayer
make; make install
http://www.penguin.cz/~utx/amr
apt-get install libgsm1-dev toolame libgsm1-dev libvorbis-dev libogg-dev
apt-get install libfaad2-dev
apt-get install subversion
apt-get install libgsm1-dev libgsmme-dev
apt-get install unzip
apt-get install liba52-0.7.4-dev
apt-get install patch
wget http://downloads.xvid.org/downloads/xvidcore-1.1.2.tar.bz2
tar -jxf xvidcore-1.1.2.tar.bz2
wget http://mesh.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
tar -zxvf lame-3.97.tar.gz
cd lame-3.97
./configure --prefix=/usr;make;make install
cd ..
cd xvidcore-1.1.2/build/generic/
./configure --prefix=/usr;make;make install
cd ../../../
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg/libavcodec/
mkdir amrwb_float
cd amrwb_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
unzip 26204-510.zip
unzip 26204-510_ANSI-C_source_code.zip
cd ..
mkdir amr_float
cd amr_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
unzip 26104-510.zip
unzip 26104-510_ANSI_C_source_code.zip
cd ../../
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.1.tar.bz2
tar -jxvf amrwb-7.0.0.1.tar.bz2
cd amrwb-7.0.0.1
./configure --prefix=/usr ; make ; make install
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2
tar -jxvf amrnb-6.1.0.4.tar.bz2
cd amrnb-6.1.0.4
./configure --prefix=/usr ; make ; make install
./configure --prefix=/usr --enable-libamr-nb --enable-libamr-wb --enable-libogg --enable-libvorbis --enable-libgsm --enable-libxvid --enable-liba52 --enable-libmp3lame --enable-gpl;
make ; make install
cd ..
wget http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2
wget http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
tar -jxvf essential-20061022.tar.bz2
mkdir /usr/lib/codecs/
cd essential-20061022
mv * /usr/lib/codecs/
cd ..
cd MPlayer-1.0rc1/
./configure --prefix=/opt/mplayer
make; make install
Subscribe to:
Posts (Atom)