[Help] Masalah FFmpeg, Mplayer, Mencoder, flvtool2 di lxadmin kloxo -master

Discussion in 'Dedicated Server dan Colocation' started by Andie Odestory, 16 Jun 2012.

Thread Status:
Not open for further replies.
  1. Andie Odestory

    Andie Odestory Beginner 2.0

    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Gini Tuan. saya kan pake lxadmin kloxo. nah website nya ngebutuhin FFmpeg, Mplayer, Mencoder, flvtool2. nah saya coba dengan mengistallnya paket seperti berikut. (sekalian share)

    HTML:
    Gunakan Putty Terminal
    
    1. cd /usr/src/ 
    
    2. Download ffmpeginstaller 3 series Latest Stable Release http://ffmpeginstaller.com
    
    wget http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg3/ffmpeginstall.3.2.1.tar.gz 
    
    Note: ffmpeginstaller 3 scripts will install stable versions of all binaries. ffmpeginstaller version 4 will install all latest dependencies of ffmpeg and mplayer, and also use svn version of ffmpeg and mplayer. Version 4 and 5 may cause problem on your VPS. I recommend you install Version 3. 
    
    3. Unzip the file 
    
    tar -xzvf ffmpeginstall.3.2.1.tar.gz 
    cd ffmpeginstall.3.2.1 
    
    4. Run the installer. 
    
    ./install.sh 
    
    The script will find your php.ini, enter the php.ini full path to confirm the installation. 
    
    This process will take about 30 minutes and it will install the following packages: 
    
    ffmpeg 
    Mplayer 
    A52decoder 
    Amrnb and Amrwb 
    All codecs 
    facc and faad2 
    Ruby 
    flvtool2 
    ffmpeg-php 
    Mplayer and Mencoder 
    Lame 
    Libogg 
    Libvorbis 
    Libtheora 
    Libwmf 
    opencoreamr 
    vorbistools 
    X264 
    MP4Box 
    Xvidcore 
    
    5. Reboot the server. 
    
    6. Verify ffmpeg module listing in php and other modules. 
    
    php -m | grep ffmpeg 
    
    ls -lah /usr/local/cpffmpeg/bin/

    HTML:
    [root@localhost ~]# php -m | grep ffmpeg
    [root@localhost ~]# ls -lah /usr/local/cpffmpeg/bin/
    total 23M
    drwxr-xr-x 2 root root 4.0K Jun 14 05:12 .
    drwxr-xr-x 8 root root 4.0K Jun 14 05:06 ..
    -rwxr-xr-x 1 root root  62K Jun 14 04:59 a52dec
    -rwxr-xr-x 1 root root  11K Jun 14 04:59 amrnb-decoder
    -rwxr-xr-x 1 root root  10K Jun 14 04:59 amrnb-decoder-etsi
    -rwxr-xr-x 1 root root  11K Jun 14 04:59 amrnb-decoder-if2
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-etsi
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-etsi-vad2
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-if2
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-if2-vad2
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-vad2
    -rwxr-xr-x 1 root root  12K Jun 14 04:59 amrwb-decoder
    -rwxr-xr-x 1 root root  11K Jun 14 04:59 amrwb-decoder-if2
    -rwxr-xr-x 1 root root  14K Jun 14 04:59 amrwb-encoder
    -rwxr-xr-x 1 root root  14K Jun 14 04:59 amrwb-encoder-if2
    -rwxr-xr-x 1 root root 3.8K Jun 14 04:54 erb
    -rwxr-xr-x 1 root root  20K Jun 14 04:59 extract_a52
    -rwxr-xr-x 1 root root  30K Jun 14 05:01 faac
    -rwxr-xr-x 1 root root 119K Jun 14 05:01 faad
    -rwxr-xr-x 1 root root  72K Jun 14 05:09 ffmpeg
    -rwxr-xr-x 1 root root  77K Jun 14 05:09 ffserver
    -rwxr-xr-x 1 root root   52 Jun 14 04:54 flvtool2
    -rwxr-xr-x 1 root root  388 Jun 14 04:54 irb
    -rwxr-xr-x 1 root root 448K Jun 14 04:55 lame
    -rwxr-xr-x 1 root root 2.4K Jun 14 04:53 libwmf-config
    -rwxr-xr-x 1 root root  13K Jun 14 04:53 libwmf-fontmap
    -rwxr-xr-x 1 root root 7.9M Jun 14 05:12 mencoder
    -rwxr-xr-x 1 root root 444K Jun 14 04:55 mp3rtp
    -rwxr-xr-x 1 root root 8.1M Jun 14 05:12 mplayer
    -rwxr-xr-x 1 root root  15K Jun 14 04:57 oggdec
    -rwxr-xr-x 1 root root  58K Jun 14 04:57 oggenc
    -rwxr-xr-x 1 root root  30K Jun 14 04:57 ogginfo
    -rwxr-xr-x 1 root root  15K Jun 14 05:09 qt-faststart
    -rwxr-xr-x 1 root root 1.6K Jun 14 04:54 rdoc
    -rwxr-xr-x 1 root root 1.3M Jun 14 05:03 re2c
    -rwxr-xr-x 1 root root 1.5K Jun 14 04:54 ri
    -rwxr-xr-x 1 root root 1.8M Jun 14 04:54 ruby
    -rwxr-xr-x 1 root root  162 Jun 14 04:54 testrb
    -rwxr-xr-x 1 root root  28K Jun 14 04:57 vorbiscomment
    -rwxr-xr-x 1 root root  25K Jun 14 04:53 wmf2eps
    -rwxr-xr-x 1 root root  25K Jun 14 04:53 wmf2fig
    -rwxr-xr-x 1 root root  23K Jun 14 04:53 wmf2gd
    -rwxr-xr-x 1 root root  23K Jun 14 04:53 wmf2svg
    -rwxr-xr-x 1 root root  29K Jun 14 04:53 wmf2x
    -rwxr-xr-x 1 root root 722K Jun 14 05:03 x264
    -rwxr-xr-x 1 root root 1.3M Jun 14 05:02 yasm
    [root@localhost ~]# 
    Tapi kok pas konfigurasi website saya arahkan ke root yang terinstall ffmpeg dan kawan2 /usr/local/bin/ffmpeg #lainnya gak sukses load modulenya eh ternyata :( .

    saya penasaran coba test menginstall clipbucket. dan hasilnya

    [​IMG]

    Mohon bantuannya dari master2, terutama dari yang pakai kloxo :) newbie here,
    oh ya saya pakai centos 5.8
     
  2. cpserv

    cpserv Expert 1.0

    Messages:
    866
    Likes Received:
    123
    Trophy Points:
    43
    yg nomer 4 ada pesan error apa ngga?
    yg nomer 6 itu keluar resultnya ngga?

    check extensions directorynya ada dimana.
    Code:
    php -i | grep extensions
    

    load modulenya
    Code:
    echo 'extension=ffmpeg.so' >> /lokasi/file/php.ini
    
    restart apache/httpd-nya deh. terus check lagi pake langkah kayaq yg nomer 6 itu.
     
  3. Andie Odestory

    Andie Odestory Beginner 2.0

    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    waktu install step 4 tidak ada error pak.
    result step no 6 seperti berikut.

    Code:
    [root@localhost ~]# php -m | grep ffmpeg
    [root@localhost ~]# ls -lah /usr/local/cpffmpeg/bin/
    total 23M
    drwxr-xr-x 2 root root 4.0K Jun 14 05:12 .
    drwxr-xr-x 8 root root 4.0K Jun 14 05:06 ..
    -rwxr-xr-x 1 root root  62K Jun 14 04:59 a52dec
    -rwxr-xr-x 1 root root  11K Jun 14 04:59 amrnb-decoder
    -rwxr-xr-x 1 root root  10K Jun 14 04:59 amrnb-decoder-etsi
    -rwxr-xr-x 1 root root  11K Jun 14 04:59 amrnb-decoder-if2
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-etsi
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-etsi-vad2
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-if2
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-if2-vad2
    -rwxr-xr-x 1 root root  13K Jun 14 04:59 amrnb-encoder-vad2
    -rwxr-xr-x 1 root root  12K Jun 14 04:59 amrwb-decoder
    -rwxr-xr-x 1 root root  11K Jun 14 04:59 amrwb-decoder-if2
    -rwxr-xr-x 1 root root  14K Jun 14 04:59 amrwb-encoder
    -rwxr-xr-x 1 root root  14K Jun 14 04:59 amrwb-encoder-if2
    -rwxr-xr-x 1 root root 3.8K Jun 14 04:54 erb
    -rwxr-xr-x 1 root root  20K Jun 14 04:59 extract_a52
    -rwxr-xr-x 1 root root  30K Jun 14 05:01 faac
    -rwxr-xr-x 1 root root 119K Jun 14 05:01 faad
    -rwxr-xr-x 1 root root  72K Jun 14 05:09 ffmpeg
    -rwxr-xr-x 1 root root  77K Jun 14 05:09 ffserver
    -rwxr-xr-x 1 root root   52 Jun 14 04:54 flvtool2
    -rwxr-xr-x 1 root root  388 Jun 14 04:54 irb
    -rwxr-xr-x 1 root root 448K Jun 14 04:55 lame
    -rwxr-xr-x 1 root root 2.4K Jun 14 04:53 libwmf-config
    -rwxr-xr-x 1 root root  13K Jun 14 04:53 libwmf-fontmap
    -rwxr-xr-x 1 root root 7.9M Jun 14 05:12 mencoder
    -rwxr-xr-x 1 root root 444K Jun 14 04:55 mp3rtp
    -rwxr-xr-x 1 root root 8.1M Jun 14 05:12 mplayer
    -rwxr-xr-x 1 root root  15K Jun 14 04:57 oggdec
    -rwxr-xr-x 1 root root  58K Jun 14 04:57 oggenc
    -rwxr-xr-x 1 root root  30K Jun 14 04:57 ogginfo
    -rwxr-xr-x 1 root root  15K Jun 14 05:09 qt-faststart
    -rwxr-xr-x 1 root root 1.6K Jun 14 04:54 rdoc
    -rwxr-xr-x 1 root root 1.3M Jun 14 05:03 re2c
    -rwxr-xr-x 1 root root 1.5K Jun 14 04:54 ri
    -rwxr-xr-x 1 root root 1.8M Jun 14 04:54 ruby
    -rwxr-xr-x 1 root root  162 Jun 14 04:54 testrb
    -rwxr-xr-x 1 root root  28K Jun 14 04:57 vorbiscomment
    -rwxr-xr-x 1 root root  25K Jun 14 04:53 wmf2eps
    -rwxr-xr-x 1 root root  25K Jun 14 04:53 wmf2fig
    -rwxr-xr-x 1 root root  23K Jun 14 04:53 wmf2gd
    -rwxr-xr-x 1 root root  23K Jun 14 04:53 wmf2svg
    -rwxr-xr-x 1 root root  29K Jun 14 04:53 wmf2x
    -rwxr-xr-x 1 root root 722K Jun 14 05:03 x264
    -rwxr-xr-x 1 root root 1.3M Jun 14 05:02 yasm
    [root@localhost ~]#

    saya load modeule nya
    Code:
    [root@localhost ~]# php -i | grep ffmpeg
    [root@localhost ~]# echo 'extension=ffmpeg.so' >> /etc/php.ini
    [root@localhost ~]# echo 'extension=ffmpeg.so' >> /etc/php.ini
    [root@localhost ~]# php -i | grep ffmpeg
    PHP Warning:  Module 'ffmpeg' already loaded in Unknown on line 0
    ffmpeg
    ffmpeg support (ffmpeg-php) => enabled
    ffmpeg-php version => 0.5.3.1
    ffmpeg-php gd support  => enabled
    ffmpeg.allow_persistent => 0 => 0
    ffmpeg.show_warnings => 0 => 0
    [root@localhost ~]# service httpd restart
    Stopping httpd:                                            [  OK  ]
    Starting httpd:                                            [  OK  ]
    [root@localhost ~]#
    
    restart httpd
    masih tetap peringatan di clipbucketnya
    begitupun yang lain

    Code:
    [root@localhost ~]# php -i | grep flvtool2
    PHP Warning:  Module 'ffmpeg' already loaded in Unknown on line 0
    [root@localhost ~]# php -i | grep mncoder
    PHP Warning:  Module 'ffmpeg' already loaded in Unknown on line 0
    [root@localhost ~]#
    
     
  4. Andie Odestory

    Andie Odestory Beginner 2.0

    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    ini screen shoot modulenya

    [​IMG]
     

    Attached Files:

    • ff.PNG
      ff.PNG
      File size:
      20.7 KB
      Views:
      30
  5. Mahavikri

    Mahavikri Apprentice 1.0

    Messages:
    344
    Likes Received:
    31
    Trophy Points:
    28
    solusinya gmn nih jadinya? saya juga pngen install ffmpeg tapi belum berhasil :109:
     
  6. mixmaxspace

    mixmaxspace Hosting Guru

    Messages:
    1,235
    Likes Received:
    99
    Trophy Points:
    48
    Hahahaha kalo saya mah sudah ninggalin tuh yang namanya FFMPEG, kalau dulu pas dedi masih sewa dan di manage sana, instalasi FFMPEG dikenakan cost kalo gak salah 25us, dan sekarang sudah sedikit permintaan jadi ditiadakan FFMPEG diserver baru.
    Pengalaman nyoba instal sendiri juga belum berhasil. Mungkin bisa googling lagi ajah.
     
  7. cpserv

    cpserv Expert 1.0

    Messages:
    866
    Likes Received:
    123
    Trophy Points:
    43
    itu yg nomer 4 ga ada resultnya namanya :D

    php -i | grep extensions

    itu beneran extensions tulisannya. bukan ffmpeg.

    "PHP Warning: Module 'ffmpeg' already loaded in Unknown on line 0"

    itu warning kayaqnya karena ke-load 2 kali ya? coba aja edit manual file php.ini-nya.
     
  8. Andie Odestory

    Andie Odestory Beginner 2.0

    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    dan ternyata di /etc/php.ini tidak ada extension=ffmpeg.so

    saya tambah manual di baris terakhir
    Code:
    [ffmpeg]
    extension=ffmpeg.so

    masih tetap tidak terdeteksi ffmpeg dan kawan2nya.

    mohon bantuan master untuk load module ffmpeg di kloxo
    dan php.ini yang manakah yang default kloxo apakah benar yang berada di /etc/php.ini ?
     
  9. cpserv

    cpserv Expert 1.0

    Messages:
    866
    Likes Received:
    123
    Trophy Points:
    43
    Code:
    php -i | grep php.ini
    
    udah nyoba install langsung lewat yum (pake rpmforge repo) ?
     
  10. Andie Odestory

    Andie Odestory Beginner 2.0

    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    iya bener pak ./etc/php.ini tapi unable load ffmpeg padahal udah saya tambahkan manual. module '/usr/lib/php/modules/ffmpeg.so' ada di folder tersebut.

    Code:
    [root@localhost ~]# php -i | grep php.ini
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ffmpeg.so' - libavformat.so.52: cannot open shared object file: No such file or directory in Unknown on line 0
    Configuration File (php.ini) Path => /etc
    Loaded Configuration File => /etc/php.ini
    [root@localhost ~]#
    
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...