PDA

View Full Version : What mplayer build to use on the core2 duo?


morph166955
20th December 2006, 05:53
So im sitting here enjoying my brand new lenovo x60 with its nice shiny 2.0GHz Core2 Duo and i say "wow this would be even cooler with mplayer loaded". So i go to http://ffdshow.faireal.net/mirror/mplayer/ to get celticdruid's most recent build and I see all sorts of different versions. I don't however see one specifically for any of intels new core or core2 processors. Which version do I go with? As far as I know, the core2 duo in my laptop isnt technically a Pentium 4 or a Pentium M. I'd rather not use the version that has the cpu detection in it and isnt optimized (i used to see a speed diff in starting and general running on my T43 between the Pentium M and the standard version).

So the question (kinda a 2 parter) is which version should I use? If none of them are applicable, does celtic post his source or his patches anywhere so i can compile my own. I'd have no problem uploading my version for others using similar processors can use it I just need to know what to do (i have a comp sci degree so compiling is no stranger to me, i'd just rather do it the same way as celtic since it definitely works). I've read the things online about using mingw and that much i understand...its more of the compiler options and patches and stuff.

Thanks in advance.

celtic_druid
20th December 2006, 08:00
Best I guess would be -march=core2, but that requires gcc 4.3.x. Otherwise I think the currently recommend thing is -march=prescott, but I recall their was some argument over that earlier.

If you compile mplayer yourself then configure I think will give you -march=prescott automatically.

I'll see about adding a prescott/c2d build next time. Might even try gcc 4.3, but that is probably asking for trouble with mingw.

The pentium-m build should be ok. Probably not much speed difference between that an a prescott build.

morph166955
20th December 2006, 15:59
awesome...a perfect answer from the man himself.

I guess my only other question is what (if any) patches do you apply to mplayer when you compile it and where can i get my hands on them?

celtic_druid
20th December 2006, 16:23
All patches, etc. are linked on my site. Sometimes some additional work needs to be done. Like for this build I had to remove S_IRGRP, etc. since they aren't supported under windows. Basically just patching to enable SSE.

morph166955
21st December 2006, 20:14
where on your site are the patches? i went looking and i couldn't find them. maybe im looking in the wrong place?

morph166955
29th December 2006, 17:08
for anyone who was looking at this thread, i officially have mplayer compiling properly on my core2 using mingw. im currently adding some more codecs/video outputs to the build and once thats done i have no problem releasing it for those who want it. all i need i someone to give me some webspace to put it since mine has a very low bandwidth cap as of late.

For those wondering about the technical specs on it, im compiling with gcc 4.3.0 (yea that in itself is a miracle to get working i know) and the ./configure script detected it as a core2 and is using the march and mtune settings of core2 to optimize the code. its doing a build now so ill post up the current output of ./configure once thats done so you can see what is and what is not thus far included incase anyone wants anything specifically added. just to note, i have a few things that arent loaded yet that im going to load, im just doing this a few packages at a time incase something breaks i wanna know what it was so i can fix it.

I hope people enjoy it, i know celtic is doing a prescott build but i figured since the core2 is such a radically different chip in comparison to others that people would enjoy a version of mplayer specifically tuned to it.

morph166955
29th December 2006, 17:29
Output (Truncated, only the end) from my current ./configure:


Byte order: little-endian
Optimizing for: core2 mmx mmxext sse sse2 cmov mtrr

Languages:
Messages/GUI: en
Manual pages: en

Enabled optional drivers:
Input: ftp network tv dvdread dvdnav
Codecs: qtx x264 xvid libavcodec real win32 faad2 libmpeg2 liba52 mp3lib tremor(internal) gif
Audio output: dsound win32 mpegpes(file)
Video output: winvidix cvidix md5sum directx gif89a pnm jpeg mpegpes(file) opengl tga
Audio filters:

Disabled optional drivers:
Input: vstream pvr radio tv-v4l2 tv-v4l1 live555 cddb cdda libdvdcss vcd dvb smb
Codecs: libdv amr_wb amr_nb xanim faac musepack libdts libtheora speex twolame toolame libmad liblzo
Audio output: sun alsa openal jack polyp esd arts oss ivtv dxr2 nas sdl
Video output: xvidix bl zr zr2 ivtv dxr3 dxr2 sdl vesa png fbdev svga caca aa ggi xmga mga dga xvmc xv x11 dfbmga directfb tdfx_vid s3fb tdfxfb 3dfx
Audio filters: ladspa



Things still to load:
Input: smb, libdvdcss (its built and installed...mplayer just isnt detecting it...im workin on that), live555, vcd
Codecs: libtheora
Video Output: png(maybe, its having issues compiling)

if you want anything else, just lemme know and possibly lemme know where i can download the source for that from if you have that...it will make life easier so i dont have to go hunt it down.

also fyi, these builds are "vanilla". I pulled them from the svn last night (dev-SVN-r217810-4.3.0). i did not load any patches to them. if anyone has any recommendations for patches let me know.

oh and since i know you cant see it here...yes...pthread is loaded using pthreadGC2.dll

Syncline
4th January 2007, 02:48
Just out of curiosity, any thoughts on how this build would work on an original core duo chip as opposed to a core 2 duo?

morph166955
4th January 2007, 03:07
in my best opinion...not too well

what most people don't realize is that there is a MASSIVE difference between the core and core2 processors. just because the names are similar doesn't mean they are. I just got back from work (its 9pm and ive been in a server closet that is actually a closet) and my brain is a ball of mush so i really dont have the brain power to go into it more right now...maybe i will tomorrow. suffice it to say, celtics prescott build is much more suited to the core chip then my core2 build.

and for those wondering about my build. ive held off on releasing because im getting a weird memory fault when doing x264 with mencoder and im not sure why...once i get that fixed ill release it. i dont want to release something that doesnt work 100%

Syncline
4th January 2007, 06:33
Thinking about what you said, I do realize that there quite a number of changes between the core duo and core 2 duo. I guess I was thinking about it only from the dual core perspective, but thanks for the info nonetheless. Hope you get your build working.

foxyshadis
4th January 2007, 15:34
I've found it to be the opposite, pentium m and core duo work better with core2 builds (and vice versa) than either do with prescott builds, primarily due to the much shorter pipelines, as long as the SSE levels are respected for each. Of course, the pentium m march is best of all - although I've never seen the enormous differences some claim, even between wildly different marches.

morph166955
4th January 2007, 19:14
well to give you just some of my observances. My core2 build is ~20fps faster using some rather crazy settings on fmp4 for its first pass (100 vs 120 fps) and about 10 fps faster on the second pass (~65 vs ~75 fps). Those were done on the same computer using the same command lines, the only diff were the mencoder builds that were used.