Musepack Forums  

Go Back   Musepack Forums > Main > MPC for UNIX

Thread Tools Search this Thread Display Modes
Old 21 January 2007, 07:41 pm   #1
Posts: n/a
Default mppenc 1.16 slower? maybe it's my compiler

hey folks. i was glad to hear there's a new mppenc out. i was hoping for a binary, like previous releases, but i went ahead and compiled it.

i finally got around to using it today, and it seems the encoding speed is pretty slow. I'm currently running at around 7x, where normally with 1.15 i'd be getting 22x. not that it makes much difference, since i'm ripping and encoding at the same time, but it still worries me.

i noticed 1.15 uses nasm to compile and 1.16 doesn't.

i'm running Arch Linux, which is a bleeding edge i686 distro. i have cmake 2.4.5, gcc 4.1.2, automake 1.10, autoconf 2.61, nasm 0.98.39 ... that's all i could think of that is relevant.

anyway, so i'm hoping to see people reporting their 1.15 vs 1.16 speeds (i'm assuming no slowdown, since somebody else would have complained by now), and hopefully a statically linked binary. or maybe instructions on how to extract a deb package, since they have binaries.

  Reply With Quote
Old 21 January 2007, 07:53 pm   #2
Posts: n/a

don't you hate when people post without doing some research first?

well, i extracted the rarewares deb package, and yes, it encodes faster.

so then something about my compiler is producing slower builds than what you guys are using, that wasn't there in 1.15.
  Reply With Quote
Old 21 January 2007, 11:12 pm   #3
Musepack developer
xmixahlx's Avatar
Join Date: Nov 2004
Location: seattle, washington usa
Posts: 111
Send a message via ICQ to xmixahlx

the difference is compiler flags... try using -O3 -ffast-math

-xmixahlx, the one they call "mike" -|-
xmixahlx is offline   Reply With Quote
Old 26 January 2007, 08:24 pm   #4
Posts: n/a

Originally Posted by xmixahlx View Post
the difference is compiler flags... try using -O3 -ffast-math
hmm that hasn't improved things. am i doing it wrong?

make clean
CFLAGS="-O3 -ffast-math" make

i also tried exporting CFLAGS first, then running make. same results.
  Reply With Quote
Old 27 January 2007, 12:50 pm   #5
Lefungus's Avatar
Join Date: Jul 2004
Posts: 131

I only got those awful speeds when using a debug binary. Anyway, it's entirely dependent on your CFLAGS. You can gain a bit by tweaking it, or crippling it.
mppenc-1.16 *should* use correct cflags by default (they're no the best for your arch but should work ok on most cpu).
Since you're using arch linux, please post the PKGBUILD you're using.

About nasm, it's not used in 1.16 because as far as I'm aware:
- It's 3dnow code only
- It has been disabled for ages in previous mppenc versions
Lefungus is offline   Reply With Quote
Old 29 January 2007, 08:01 am   #6
Posts: n/a

actually, i don't have a PKGBUILD as i simply tried building mppenc to see how it performed (i wanted to see how the new fast seeking compared between 1.15 and 1.16 on a 30-minute recording)

i used the default cflags at first, then tried specifying the ones xmix recommended.
lefungus, you're an arch user, right? i think i've seen you on the forums there (i'm known as paranoos usually). you've compiled mppenc on an arch system, and it ran full speed? i haven't done anything strange (to my knowledge!), so i can't understand it. especially considering i can compile 1.15 and it works fine.
  Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mppenc 1.16/libmpcdec 1.2.3 Seed General 8 11 December 2006 03:03 am
mppenc 1.16 installation on kubuntu? monkman MPC for UNIX 2 02 December 2006 05:56 pm
mppenc 1.15v Seed General 5 05 September 2005 01:03 am
mppenc 1.15u Seed General 7 03 March 2005 04:37 am
mppenc 1.15t Seed General 1 25 February 2005 12:17 pm

All times are GMT. The time now is 05:02 am.

Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2021, vBulletin Solutions Inc.