You are not logged in.

#1 2009-05-25 08:23:11

algol.tr
Member
Registered: 2008-04-27
Posts: 41

[SOLVED]Mplayer/Mencoder with mp3lame support

I'm searchig to encode my .avi file to use it with my Zen.
I want to use mencoder to make this and not ffmpeg because there is a useful script based on mencoder.
But mplayer in arch linux repository has not mp3lame support enabled.
I don't know how to build it with this stuff, all my trials to make the PKGBUILD works are failed.

Have someone an idea of how to modify the configure option in mplayer's PKGBUILD to enable mp3lame.

Last edited by algol.tr (2009-05-29 13:20:55)

Offline

#2 2009-05-25 11:17:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

'./configure --help' should give you the (rather extensive) list of options. ABS is really easy to handle but I don't know how things are at the moment bug/sync-wise (I mean the toolchain) and which mplayer should you pick (mplayer-svn maybe?).
Alternatively you can try to encode it w/ a different tool.

Offline

#3 2009-05-25 11:55:53

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

As far as I can tell, the mplayer in the repos does have mp3lame support. The lame package is added as a dependency and hence mplayer was built against lame. There's also no --disable-mp3lame or --disable-lame in the pkgbuild so it is autodetected by the configure script.

Offline

#4 2009-05-28 17:23:33

algol.tr
Member
Registered: 2008-04-27
Posts: 41

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

But i've this output:

[marco@Marco-Laptop Downloads]$ mencoder -o /home/marco/ZEN/output.avi -oac mp3lame -ovc xvid -xvidencopts bitrate=800 -vf scale=320:240 /home/marco/Desktop/Downloads/Basquash\!\ 08\ -\ Sub\ Ita\ by\ Kiavik.mkv
MEncoder dev-SVN-rUNKNOWN-4.4.0 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

parse error at line 308
MPlayer was compiled without libmp3lame support.
[marco@Marco-Laptop Downloads]$

any suggestion?

Offline

#5 2009-05-28 17:24:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

I don't know if mplayer-svn can be counted as "from the repo".

Offline

#6 2009-05-28 17:44:42

algol.tr
Member
Registered: 2008-04-27
Posts: 41

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

using
./configure --help there is:
I've this options:

  --disable-mp3lame         disable LAME MP3 encoding support [autodetect]   
  --disable-mp3lame-lavc    disable LAME in libavcodec [autodetect]

Offline

#7 2009-05-28 18:46:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

That's right, you can use those options to configure your mplayer the way you like.
I'd also suggest dropping spaces in filenames, but that has nothing to do w/ mplayer/mencoder.

Offline

#8 2009-05-28 18:54:27

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

if the only options available with ./configure --help are --disable-{mp3lame,mp3lame-lavc} then doesn't that mean they are enabled by default? in that case why is he getting the error at the start of this post?

mine seems to have it, though i don't have a file to test right now:

> mencoder -oac help
MEncoder UNKNOWN-4.4.0 (C) 2000-2009 MPlayer Team
137 audio & 296 video codecs

Available codecs:
   copy     - frame copy, without re-encoding (useful for AC3)
   pcm      - uncompressed PCM audio
   mp3lame  - cbr/abr/vbr MP3 using libmp3lame
   lavc     - FFmpeg audio encoder (MP2, AC3, ...)
   faac     - FAAC AAC audio encoder

Offline

#9 2009-05-28 19:00:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

algol.tr -> MEncoder dev-SVN-rUNKNOWN-4.4.0 (C) 2000-2009 MPlayer Team
brisbin33 -> MEncoder UNKNOWN-4.4.0 (C) 2000-2009 MPlayer Team

"svn" - need I say more? If you compile w/ --enable-{mp3lame,mp3lame-lavc} and still nothing, that may be a bug.
http://bbs.archlinux.org/viewtopic.php?id=72919

Offline

#10 2009-05-28 20:07:24

algol.tr
Member
Registered: 2008-04-27
Posts: 41

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

@brisbin33
what version are you using?

Offline

#11 2009-05-28 20:17:39

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

it's just stock mplayer installed via pacman -S mplayer on my x86_64 machine

also i just tested, mine uses the mp3lame codec just fine.

> pacman -Q mplayer
mplayer 29318-1.1

Offline

#12 2009-05-28 21:29:29

algol.tr
Member
Registered: 2008-04-27
Posts: 41

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

I'm using mplayer i686, maybe an error of building?

ps: sorry for my english, I'm italian

Offline

#13 2009-05-28 21:58:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

Why did you install mplayer-svn? Can you try the stock one? 'pacman -Sy mplayer' should be enough.

Offline

#14 2009-05-29 06:57:36

algol.tr
Member
Registered: 2008-04-27
Posts: 41

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

I've already mplayer from i686 repository.
I reistalled it and now it works properly.
I don't know what's happened. thank you guys

Offline

#15 2009-05-29 11:22:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

Mplayer and mplayer-svn can have different options enabled, I'd guess that this was the reason some your scripts failed.
If you're all set now, please mark the topic as [SOLVED].

Offline

#16 2009-05-29 13:21:30

algol.tr
Member
Registered: 2008-04-27
Posts: 41

Re: [SOLVED]Mplayer/Mencoder with mp3lame support

sure. thanks again! big_smile

Offline

Board footer

Powered by FluxBB