Home > Adult Video Script, Linux > Howto install mencoder-1.0rc1 for Adult Video Script on CentOs

Howto install mencoder-1.0rc1 for Adult Video Script on CentOs

Hi,

UPDATE: this howto is outdated, i will write a new one today (mencoder is not compatible with h264 from RPMforge)!

Follow my previous howto to install the RPMForge release for CentOs 5.x. Once installed run the following command:

yum install libjpeg-devel libpng-devel libungif-devel pkgconfig libdv-devel speex-devel libmad-devel lame-devel xvidcore-devel x264-devel libmpcdec-devel faac-devel

Once the process is finished download the following archives:

wget -c http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2
wget -c http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2

Install the codecs:

tar xjf all-20071007.tar.bz2
mkdir -p /usr/local/lib/codecs
cp -a all-20071007/* /usr/local/lib/codecs/
cd ..

Install mencoder and mplayer:

tar xjf MPlayer-1.0rc1.tar.bz2
cd MPlayer-1.0rc1
TMPDIR=/root ./configure --prefix=/usr/local
make
make install

Once finished mencoder will be installed in /usr/local/bin/mencoder, and mplayer in /usr/local/bin/mplayer. Mencoder is compatible with the latest Adult Video Script conversion line.

Thats it 🙂

  1. waz
    November 3, 2009 at 10:01 pm

    cannot find way to install mencoder and mplayer from the guide gettings this error after I hit the command “make” errors below:
    x264.c: In function ‘X264_init’:
    x264.c:162: error: ‘x264_param_t’ has no member named ‘b_bframe_adaptive’
    x264.c:225: error: ‘struct ‘ has no member named ‘b_bframe_rdo’
    x264.c:250: error: ‘struct ‘ has no member named ‘psz_rc_eq’
    make[1]: *** [x264.o] Error 1
    make[1]: Leaving directory `/usr/src/MPlayer-1.0rc1/libavcodec’
    make: *** [libavcodec/libavcodec.a] Error 2

    RPMforge is already done, help.
    thanks.

  2. November 4, 2009 at 9:10 am

    Hi,

    This happens because the x264 rpm has been upgraded and there is a incompatibility between mencoder-1.0rc1 and x264. I recommend you install a newer version of mencoder (SVN, although its not perfectly compatible with AVS) or disable h264 support in mencoder.

  3. waz
    November 4, 2009 at 11:04 am

    thanks.
    I started all over and followed your guide, what i have done is:

    1. rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
    2. yum install libjpeg-devel libpng-devel libungif-devel pkgconfig libdv-devel speex-devel libmad-devel lame-devel xvidcore-devel x264-devel libmpcdec-devel faac-devel
    3. download the following archives from above (all-20071007.tar.bz2 and MPlayer-1.0rc1.tar.bz2) in /usr/src/
    4. Install the codecs from guide
    5. Install mencoder and mplayer: here im stock on “make” command error :
    make[1]: *** [x264.o] Error 1
    make[1]: Leaving directory `/usr/src/MPlayer-1.0rc1/libavcodec’
    make: *** [libavcodec/libavcodec.a] Error 2

    pls correct me if m doing wrong,thanks

  4. November 4, 2009 at 11:37 am

    Hi,

    Your not doing anything wrong, i did something wrong, i forgot to check before publishing (something that i’ve used for more than 2 years). Basically the rpmforge
    repository has a updated version of x264 which is not compatible with mencoder-1.0rc1. The solution would be to install mencoder from SVN or just install mencoder
    from rpmforge via yum.

    • waz
      November 4, 2009 at 12:29 pm

      its working now!!!

      but problem with error Video maximum size cannot be bigger then the php values for ‘post_max_size’ or ‘upload_max_filesize’.
      Edited php.ini and set to 1000M (htaccess doesnt have the line prior to that)

      config.local chmod 777 done, restart apache ,reboot server no luck

      and

      Siteadmin System Check shows Safe Mode = 0 ,where it suppose to be “passed”

      the rest are fine

  5. November 4, 2009 at 12:15 pm

    Hi,

    You can also disable h264 in mencoder (–disable-x264), but this means that there will be no support for h264 encoded files 😦

  6. waz
    November 4, 2009 at 1:27 pm

    i c, can you give me the right command line to disable that?
    and do you have any idea about this post_max_size’ and ‘upload_max_filesize’error from my last post

    thanks

  7. November 4, 2009 at 2:13 pm

    Hi,

    TMPDIR=/root/sources ./configure –prefix=/usr/local –disable-x264

    You need to edit php.ini and modify post_max_size and upload_max_filesize (you also need to restart apache for the modifications to have effect).

  8. waz
    November 4, 2009 at 2:31 pm

    thanks.

    tried edit php.ini set it to 1000M saved and restarted everything No Luck.
    still getting error.

    siteadmin system check still detects 2M (max_upload_filesize) 8M (max_post_size)

    ps. htaccess do not have lines post and upload filesize

  9. ArcAiN6
    November 19, 2009 at 12:07 am

    Well, i’ve followed all of these tutorials, but i’m still seeing an issue.
    even when i use the -disable-x264 option, i still get errors during make:
    x264.o x264.c
    x264.c: In function ‘X264_init’:
    x264.c:162: error: ‘x264_param_t’ has no member named ‘b_bframe_adaptive’
    x264.c:164: error: ‘x264_param_t’ has no member named ‘b_bframe_pyramid’
    x264.c:225: error: ‘struct ‘ has no member named ‘b_bframe_rdo’
    x264.c:250: error: ‘struct ‘ has no member named ‘psz_rc_eq’
    make[1]: *** [x264.o] Error 1
    make[1]: Leaving directory `/root/MPlayer-1.0rc1/libavcodec’
    make: *** [libavcodec/libavcodec.a] Error 2

    also seeing error if i try to install it via yum:

    mplayer-1.0-0.41.svn20090711.el5.rf.i386 from rpmforge has depsolving problems
    –> Missing Dependency: libdirectfb-1.2.so.0 is needed by package mplayer-1.0-0.41.svn20090711.el5.rf.i386 (rpmforge)
    mplayer-1.0-0.41.svn20090711.el5.rf.i386 from rpmforge has depsolving problems
    –> Missing Dependency: libcucul.so.0 is needed by package mplayer-1.0-0.41.svn20090711.el5.rf.i386 (rpmforge)
    Error: Missing Dependency: libcucul.so.0 is needed by package mplayer-1.0-0.41.svn20090711.el5.rf.i386 (rpmforge)
    Error: Missing Dependency: libdirectfb-1.2.so.0 is needed by package mplayer-1.0-0.41.svn20090711.el5.rf.i386 (rpmforge)
    You could try using –skip-broken to work around the problem
    You could try running: package-cleanup –problems
    package-cleanup –dupes
    rpm -Va –nofiles –nodigest

    if i run package-cleanup –dupes, or package-cleanup –problems no problems are found.

    Also seeing another issue here… permissions maybe?
    This could be to dodgy permissions in place due to the fact i’m installing on a centos 5.4 based server with plesk panel hosting. The issue is this:

    PHP CLI
    missing (/usr/bin/php)
    MEncoder
    missing (/usr/bin/mencoder)
    MPlayer
    missing (/usr/local/bin/mplayer)
    FFMpeg
    missing (/usr/bin/ffmpeg)
    FLVTool2
    missing (/usr/bin/flvtool2)
    Formats Error (mplayer or mencoder not installed)!

  1. No trackbacks yet.

Leave a comment