FFMPEG eklentisi sorunsuz kurulamaz mı ?

Başlatan emreseckin, 19 Mayıs 2011 - 00:56:07

« önceki - sonraki »

0 Üyeler ve 3 Ziyaretçi konuyu incelemekte.

emreseckin

Arkadaşlar Merhaba FFMPEG eklentisi yüklemeye çalışıyorum her zaman ki gibi ve hata aldım yine her zaman ki gibi :) SSH ile uzaktan kurulum yapacak bir baba yiğit varsa elinden öpeceğim :)
FFMPEG in kurulması için gereken kodlar.
Kod:
cd /usr/local/src
wget http://www3.mplayerhq.hu/MPlayer/rel...061022.tar.bz2
wget http://rubyforge.org/frs/download.ph..._1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/s...me-3.97.tar.gz
wget http://easynews.dl.sourceforge.net/s...php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/o...g-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/v...s-1.1.2.tar.gz


Kod:
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
tar jxvf essential-20061022.tar.bz2
tar jxvf ffmpeg-php-0.5.0.tbz2


Kod:
mkdir /usr/local/lib/codecs/
up2date -i subversion -yada- yum install subversion
up2date -i ruby -yada- yum install ruby


Kod:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /usr/local/src/mplayer
svn update
cd /usr/local/src
mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/
mkdir /usr/local/src/tmp
chmod 777 /usr/local/src/tmp
export TMPDIR=/usr/local/src/tmp


Kod:
cd /usr/local/src/lame-3.97
./configure && make && make install
cd /usr/local/src/libogg-1.1.3
./configure && make && make install
ldconfig
cd /usr/local/src/libvorbis-1.1.2
./configure && make && make install
cd /usr/local/src/flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
cd /usr/local/src/mplayer
./configure && make && make install
cd /usr/local/src/ffmpeg/
./configure --enable-mp3lame --enable-libogg --enable-vorbis --disable-mmx --enable-shared


Kod:
echo '#define HAVE_LRINTF 1 '****config.h
make
make install


Kod:
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51

FFMPEG-PHP:



Kod:
cd /usr/local/src/ffmpeg-php-0.5.0/
phpize
./configure
make
make install

php.ini'ye eklememiz gereken satır


Kod:
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so

Not: Burdaki klasöradını ffmpeg-php'nin make install komutundan sonra göreceksiniz, kendi makinenize göre değiştiriniz.

son olarak apache sunucumuzu yeniden çalıştırıyoruz:


Kod:
service httpd restart


ve ben bu adımda takıldım.
Kod:
cd /usr/local/src/lame-3.97
./configure && make && make install

verdiği hata ;
root@emre:/usr/local/src/lame-3.97# ./configure && make && make install
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

bu durumda ne yapılabilir ?

Saavedro

checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH

Gcc kurmayı dene.

if

C derleyicisi kurulu değil sisteminizde, hata çıktısına göre, ya da derleyicinin bulunduğu dizin ile ./configure komutu için öntanımlanmış dizin aynı değil. Önce c derleyicisini(gcc) kurunuz, yine aynı hatayı verirse derleyicinin nerde olduğunu gösteren yolu girmek gerek.

Saavedro erken davranmış.

Hangi dağıtımı kullanıyorsunuz @emreseckin?


emreseckin

apt-get install gcc
komutu ile kurdum ve hata veren kod çalıştı fakat tam yüklendi mi acaba ?
root@emre:/usr/local/src/lame-3.97# ./configure && make && make install
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... none
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking for library containing strerror... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) none
checking for function prototypes... yes
checking for string.h... (cached) yes
checking dmalloc.h usability... no
checking dmalloc.h presence... no
checking for dmalloc.h... no
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking linux/soundcard.h usability... yes
checking linux/soundcard.h presence... yes
checking for linux/soundcard.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking version of GCC... 4.4.5
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for short... yes
checking size of short... 2
checking for unsigned short... yes
checking size of unsigned short... 2
checking for int... yes
checking size of int... 4
checking for unsigned int... yes
checking size of unsigned int... 4
checking for long... yes
checking size of long... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for long long... yes
checking size of long long... 8
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking for working long double with more range or precision than double... yes
checking for uint8_t... yes
checking for int8_t... yes
checking for uint16_t... yes
checking for int16_t... yes
checking for uint32_t... yes
checking for int32_t... yes
checking for uint64_t... yes
checking for int64_t... yes
checking for IEEE854 compliant 80 bit floats... yes
checking for ieee854_float80_t... no
checking for ieee754_float64_t... no
checking for ieee754_float32_t... no
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for gettimeofday... yes
checking for strtol... yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for socket... yes
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
checking ncurses/termcap.h usability... no
checking ncurses/termcap.h presence... no
checking for ncurses/termcap.h... no
checking for initscr in -ltermcap... no
checking for initscr in -lcurses... no
checking for initscr in -lncurses... no
checking for cos in -lm... yes
checking for cos in -lffm... no
checking for cos in -lcpml... no
checking for sf_open_read in -lsndfile... no
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking use of ElectricFence malloc debugging... no
checking use of file io... lame
checking use of analyzer hooks... yes
checking use of mpg123 decoder... yes (Layer 2, 3)
checking if the lame frontend should be build... yes
checking if mp3x is requested... no
checking if mp3rtp is requested... no
checking glibc mathinline bug... no
checking use of VBR bitrate histogram... yes, simulated termcap
checking for FLOAT8 as float... no
checking for nasm... no
checking for additional optimizations... no
checking for debug options... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libmp3lame/Makefile
config.status: creating libmp3lame/i386/Makefile
config.status: creating frontend/Makefile
config.status: creating mpglib/Makefile
config.status: creating doc/Makefile
config.status: creating doc/html/Makefile
config.status: creating doc/man/Makefile
config.status: creating include/Makefile
config.status: creating Dll/Makefile
config.status: creating misc/Makefile
config.status: creating debian/Makefile
config.status: creating dshow/Makefile
config.status: creating ACM/Makefile
config.status: creating ACM/ADbg/Makefile
config.status: creating ACM/ddk/Makefile
config.status: creating ACM/tinyxml/Makefile
config.status: creating lame.spec
config.status: creating mac/Makefile
config.status: creating config.h
config.status: executing depfiles commands
-su: make: komut yok

if

@emreseckin, yararlandığın herhangi bir kaynak var mı? Ffmpeg kurmadan önce kurman gereken paketleri kurdun mu? sudo aptitude install build-essential komutundan sonra tekrar deneyiniz. İkincisi ./configure --help komutunun çıktısını inceleyiniz.

heartsmagic

Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

emreseckin

#6
http://www.turkhackteam.net/linux-server-yonetim/491450-ffmpeg-ffmpeg-php-mplayer-libogg-libvorbis-mp3lame-kurulumlari.html

FFmpeg kurmadan önce hangi paketleri kurmalıyım ki bilmiyorum lütfen yardım edin :)


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 19 Mayıs 2011 - 10:04:22

verdiğiniz kodu kurdum
root@emre:~# ./configure --help
-bash: ./configure: Böyle bir dosya ya da dizin yok

Khan

Alıntı yapılan: emreseckin - 19 Mayıs 2011 - 09:59:09
http://www.turkhackteam.net/linux-server-yonetim/491450-ffmpeg-ffmpeg-php-mplayer-libogg-libvorbis-mp3lame-kurulumlari.html

FFmpeg kurmadan önce hangi paketleri kurmalıyım ki bilmiyorum lütfen yardım edin :)


Mesaj tekrarı yüzünden mesajınız birleştirildi. Bu mesajın gönderim tarihi : 19 Mayıs 2011 - 10:04:22

verdiğiniz kodu kurdum
root@emre:~# ./configure --help
-bash: ./configure: Böyle bir dosya ya da dizin yok
Sisteminizde hangi dağıtım yüklü?
Neden elle derlemeyi deniyorsunuz?
FFmpeg depolardan kurulmuyor mu?

emreseckin

Debian yüklü
heralde direk apt-get install ffmpeg demek istiyorsunuz ?
Ben nette sadece ffmpeg paketini görmedim tek tek elle kuruluyor.

Saavedro

Alıntı yapılan: emreseckin - 19 Mayıs 2011 - 11:55:47
Debian yüklü
heralde direk apt-get install ffmpeg demek istiyorsunuz ?
Ben nette sadece ffmpeg paketini görmedim tek tek elle kuruluyor.
http://debian-multimedia.org/
sudo aptitude install build-essential Bunu kurduysan ./configure den sonra make komutu çalışması lazım.

emreseckin

Zaten kurulu
root@emre:~# sudo aptitude install build-essential
Hiçbir paket kurulmayacak, yükseltilmeyecek ya da kaldırılmayacak.
0 paket yükseltildi, 0 yeni kuruldu, 0 kaldırıldı, 0 yükseltilmedi.
Arşivlerden 0 B veri alınacak.Paketler açıldıktan sonra 0 B yer kullanılacak.

if

@emreseckin, ffmpeg Debian depolarında var. Artık kullandığın sürüme göre direk de kurabilirsin, depo ekleyerek de kurabilirsin. Derleme yapmak istersen de http://linuxtours.blogspot.com/2011/05/how-to-install-ffmpeg-on-debian-lenny.html bağlantısı sana ayrdımcı olur.

emreseckin

 Add To Source List:
root@linuxt :~# nano /etc/apt/sources.list

This lines:
deb http://www.debian-multimedia.org lenny main
deb-src http://www.debian-multimedia.org lenny main

nano /etc/apt/sources.list ile listeyi açtım içeriği şöyle
#

# deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 CD Binary-1 2011$

deb cdrom:[Debian GNU/Linux 6.0.1a _Squeeze_ - Official i386 CD Binary-1 201103$

deb http://ftp.tr.debian.org/debian/ squeeze main
deb-src http://ftp.tr.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb http://ftp.tr.debian.org/debian/ squeeze-updates main
deb-src http://ftp.tr.debian.org/debian/ squeeze-updates main


bu kodun en altına

This lines:
deb http://www.debian-multimedia.org lenny main
deb-src http://www.debian-multimedia.org lenny main
bunumu ekleyeceğim This Lines dahil olacak mı ?

if


heartsmagic

Sen squeeze kullanmıyor musun? Eklemeye çalıştığın depo lenny deposu.

Alıntı YapFor squeeze (stable) alpha, amd64, armel, hppa, i386, ia64, mipsel, powerpc and sparc packages
add in your /etc/apt/sources.list
deb http://www.debian-multimedia.org squeeze main non-free
or
deb ftp://ftp.debian-multimedia.org squeeze main non-free
or
deb http://www.debian-multimedia.org stable main non-free
or
deb ftp://ftp.debian-multimedia.org stable main non-free

Temel meseleler oturmadan, bilhassa da İngilizce desteği yoksa Debian gibi dağıtımlarda ısrar edilmesini anlamıyorum.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

emreseckin

Ubuntu debian tabanlı olduğu için debianı tercih ettim squeeze kullanıyorum bu adımda kim yardım edebilir ?
aşağıda ki kodlar son adımlar ;
-Then install it:
root@linuxt :~#cd ffmpeg/
root@linuxt :~#./configure --enable-version3 --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libgsm --enable-postproc --enable-libxvid --enable-libfaac --enable-pthreads --enable-libvorbis --enable-gpl --enable-x11grab --enable-nonfree
root@linuxt :~#make
root@linuxt :~#checkinstall --pkgname=ffmpeg --pkgversion "4:0.5+svn`date +%Y%m%d`" --backup=no --default

ve hata veriyor.
root@emre:~# cd ffmpeg
root@emre:~/ffmpeg# ./configure --enable-version3 --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libgsm --enable-postproc --enable-libxvid --enable-libfaac --enable-pthreads --enable-libvorbis --enable-gpl --enable-x11grab --enable-nonfree
ERROR: libfaac not found

If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.

libfaac yok diyor

heartsmagic

Alıntı yapılan: emreseckin - 19 Mayıs 2011 - 13:53:14
Ubuntu debian tabanlı olduğu için debianı tercih ettim squeeze kullanıyorum bu adımda kim yardım edebilir ?
aşağıda ki kodlar son adımlar ;

Bir önceki iletimde yardım etmeye çalıştım. Ayrıca sistem "bir şey yok" diyorsa kurmak gerekir.

Ubuntu Debian tabanlı olduğu için neden tercih ettin anlamadım. Bir dağıtım bir başkasının tabanı olduğu için tercih edilmez ki.
Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.

emreseckin

Daha önce Linuxa hiç geçmeden Ubuntu'nun Debian tabanlı olduğunu söylediler
Yani Her yönden hız performans Debian daha iyiymiş :)

if

@emreseckin, bence Debian için yeterince hazır değilsiniz. İngilizcenizin de yeterli olmadığı görülüyor. Devam etmek isterseniz yardımcı oluruz yine de. libfaac yükleyin ve kaldığınız yerden devam edin.

heartsmagic

Hayattan çıkarı olmayanların, ölümden de çıkarı olmayacaktır.
Hayatlarıyla yanlış olanların ölümleriyle doğru olmalarına imkân var mıdır?


Böylece yalan, dünyanın düzenine dönüştürülüyor.