Forums [Archives] Forums [Archives] (
-   Video Encoding and Conversion (
-   -   Mencoder: How to compile mencoder for Athlon? (

incredible 04-21-2004 04:09 PM


Originally Posted by vmesquita
To make the executable half its size, you can

strip mencoder.exe
And to make it half of the half smaller:

./upx mencoder.exe
But you need the UPX package installed in cygwin for this to work. :wink:

In my case I need to type

cd X:/Path to extracted Mplayer CVS folder where compiled mencoder.exe resists

upx mencoder exe

./upx mencoder.exe ... wont work ;-)

1.529 kb :arrow: the smallest mencoder I ever had :lol:

BTW for readers of this thread.

Whe I did download the CygWin ... I did NOT download the whole thing!
I just downloaded the base install (default) and checked also "gcc", "make" and also "upx" ... that was enough and by this less MBs for downloading ... well for the purpose of the intention to just compile mencoder 8)

incredible 04-21-2004 04:11 PM

@ Fozzieb

DID you set the option in the ./configure line as quoted by VMesquita above?
Did you change BEFORE processing ./configure the codecs.config in the "etc" Folder of "MPlayer-XXXXX" Folder to the one VMesquita suggested??

@ Vmesquita

Can the UPX'ed version of the mencoder.exe be just provided to other who do not have UPX, neither CygWin installed??

fozzieb 04-21-2004 04:17 PM


I have done both and still no joy, I'll do once more to be sure


rds_correia 04-21-2004 05:23 PM

Hi guys,
I think this needs to have a sticky here.
Please post as much as you can on your method since you are one of the latest most succefull guys compiling mencoder.
Pls state which Cygwin packages you downloaded.
Also which methods used for a general CPU compilation.
We'll add CPU optimizations later :wink:

incredible 04-21-2004 05:58 PM

Well even I did set the right path to the "mplayer" dir where the config files are placed ...

./configure --enable-largefiles --enable-static --confdir=mplayer/ -- enable-win32

.... I still get that "not found" error in the log.

I did one compiling using just "mplayer/" and one compiling using the whole path "C:/Programme/MPlayer/mplayer/".
As you see on the first try "he" cant recognise it, ..... and on the second try he finds the codecs.conf (although the codecs.config is set before compiling in the "etc" Folder of "MPlayer CVS XXXX").

So mencoder still gots not the correct path 8O


Reading /home/Administrator/.mplayer/codecs.conf: Can't open '/home/Administrato
r/.mplayer/codecs.conf': No such file or directory
Reading C:/Programme/MPlayer/mplayer//codecs.conf: 61 audio & 170 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/Administrator/.mplayer/mencoder: No such file or direc
Reading config file C:\Programme\MPlayer\templates\MakeAVISnew.conf
font: can't open file: /home/Administrator/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc

It would make more sense if he just recognises the path "mplayer/" as its not possible to provide compilings to others where a special user system path is set.

Another Point....

VMesquita ... where can I find a list of all ./configure ... settings which could be added for compiling??

Cause that could be VERY helpful for others reading this and for shure for me for tweaking purposes when doing the compiling :D

Thanks a lot!

@ riu

Well ... until I dont know the whole list of possible configure parameters it would not make sense to post a clear "howto" ... so lets get into this a bit more and the result will be a sticky Ill make for all :)

rds_correia 04-21-2004 06:09 PM

Hi Inc.,
Fair enough buddy.
Hope you post a sticky in the next 12 hours :lol:
Gotta rush :wink:

vmesquita 04-21-2004 09:44 PM

This is wierd... Using that setting works for me... :? Please try --confdir=./mplayer/ (notice the dot).

To get a complete list of setting, just do:

./configure --help

Krassi 04-22-2004 12:30 AM


Originally Posted by vmesquita

Originally Posted by Krassi
i'm sitting in front of an Intel machine now, so i've compiled it with all cpu optimisations.

I think this won't run in any CPU :!:
Because if you compiled with all optimization, it means that you binary is optimized for 3dnow! and SSE2 at the same time, and there's no CPU capable of handling this. :(

Hi, maybe your right.
I thought mencoder is able to detect the right opts:

CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Krassi 04-22-2004 01:35 AM

Maybe i've missed something yesterday, but is that codecs.conf error really important :?:
Isn't it using the default codecs.conf which we have already patched :?:

This is the log vmesquita's build is giving me:

CPU: Intel Pentium 4/Xeon/Celeron Foster 2741 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading /cygdrive/c/.mplayer/codecs.conf: Can't open '/cygdrive/c/.mplayer/codec
s.conf': No such file or directory
Reading mplayer//codecs.conf: Can't open 'mplayer//codecs.conf': No such file or
Using built-in default codecs.conf.

incredible 04-22-2004 03:46 AM


Reading mplayer//codecs.conf: Can't open 'mplayer//codecs.conf':
Do you got in the same folder where mencoder.exe is another folder "mplayer" where the codecs.conf file exists ??

fozzieb 04-22-2004 05:52 AM

using Cygwin to compile, my exe is 6Mb, after "strip mencoder.exe" it is 5Mb,
why is it so big?

I think I will install linux on my other drive and have a bash (feeling brave)

any news on the gui front (allowing to change crop settings)?

incredible 04-22-2004 06:02 AM


Yep, mencoder.exe will take about 5.1xx kb when its compiled (not yet stripped!). So stripping should result in less MBs.
BUT as you can read VMesquitas suggestions more above you also can download the UPX package for CygWin which allows you a REAL compression to almost 1-2 MBs! So read the thread in here carefully :wink:
To add packages to a ready installed CygWin .. just open the setup.exe ... choose a download server from the list and then enter the package options/choosing in the Setup.exe Window. There you will see by hitting "View" the packages which are avaiable. ;-)
So you don't need to download that whole CygWin system :!:

(BTW: I also did download the whole Win32 codec package and installed it to my CygWin system manually! before I did compile ... maybe thats also necessary!? maybe the compiler refers also to them?!)

According to cropping .... seems that MencoderME DOES NOT crop! even its mentioned in the GUI ... there are only Scale and Expand set in the commandline which means (IMHO) resize & addborders.

Best would be to use :Crop:scale:Expand .And also these parameters to set in the GUI .... in the GUI you only have to enter the values which will be outputted by FitCD or Moviestacker.

Also there could be "ready made" choices for i.E. 720To704 (only cropping)

Watch my posting in the GUI Thread, there I did post a Commandline where only the needed Crop: is used for 720 to 704 conversion :arrow: much faster :)

vmesquita 04-22-2004 07:27 AM

The win32 codec pack is not needed in windows, if I recall correctly.
MencoderMe does not crop, because it doesn't detect the cropping parameters (yet). The names "cropped width and height" can be a little misleading.
This. and "detect that we going from 720 to 704 and just crop" is in my to-do list. Unfortunatelly right now I have to finish a command-line mail client for university... I hate this stupid projects where every student creates exactly the same project with the same strict rules so the teacher can verify and them throw in the garbage can... :evil:

incredible 04-22-2004 08:47 AM


Originally Posted by vmesquita
This. and "detect that we going from 720 to 704 and just crop" is in my to-do list. Unfortunatelly right now I have to finish a command-line mail client for university...

That was no "hurry up" :D (and I think you didnt understand it like that), just an advice as the config files can be tweaked manually.

So we should also take note that this is a newbie from scratch GUI which allows (already in this state) very good automatisms.

So if someone is a bit in mencoder line programming (which is easy), he just can add/delete what he wants so it fits personal purposes.

yaz 04-22-2004 08:50 AM

would u ever make your compile(s) available or it's all just for fun. i'd love if i'd get well maintained athlon compile(s).
y (the selfish)
ps. u wouldn't keep 'old' makeavis. milan has heavily debugged this part of ffdshow too but there's no ffvfw.dll anymore. the codec.conf should be sg like this:
videocodec makeavis
info "FFdshow makeavis"
status untested
fourcc AVIS
driver vfw
dll "(path)/"
out YV12

incredible 04-22-2004 09:09 AM

As you can read above my last compile is still not perfect.
I want that there doesn't have to be a codecs.conf WITHING the compiling so the codecs.conf will be found in the folder "mplayer" within the folder where mencoder will exist on the HD
By this you can tweak yor codecs.conf manually "independent" from the compiling ----> That's exact your purpose :wink:

Also I first want to see which configure options are also avaiable for compiling.

Whats about that "...there's no ffvfw.dll anymore..." ???
Whats the issue or whats the advantage if set to .../ ???


out YV12
I wouldn't do that as if for example I feed makeavis using a YUY2 source I leave it as it is as mencoder Commandwindows also says "prefered planar YUY2"! So as mencoder already wants finally a YUY2 why should I do another colorspace conversion?

yaz 04-22-2004 09:20 AM


Originally Posted by incredible
Whats about that "...there's no ffvfw.dll anymore..." ???
Whats the issue or whats the advantage if set to .../ ???

the new ffdshow releases do not install any ffvfw.dll (the 'decoder' for .avis) anymore. is used also for serving avis.
advantage? u can use the debugged makeavis. that's all. i just noted it cus i see always quite old makeavis recommended for mencoder.
the bests

incredible 04-22-2004 09:25 AM

I do see in our old used codecs.conf only YV12 is still used 8O


videocodec makeavis
  info "FFvfw makeavis"
  status untested
  fourcc AVIS
  driver vfw
  dll ffvfw
  out YV12

I ll try tonight

out YV12,YUY2

... yep youre rigth I still got that makeavis which refers to ffvfw.dll ... but if everything works, is there a reason why I should upgrade to thenewest makeavis? Whats debugged? (I do not remember now)

yaz 04-22-2004 09:33 AM

yv12 is ok. afaik, it's native to menc. if u feed sg different menc will convert it. (at least, it should)
why to change? why not to change ? :-))) till u got no problem, there's no reason, really. but if u have, u can never tell whether it's the source, it's avisynth, it's the serving or it's mencoder. i'm just taming mencoder so i'd like to keep other source of error as minimal as can. that's my point.
the bests

incredible 04-22-2004 09:49 AM

Hey yaz :)


yv12 is ok. afaik, it's native to menc. if u feed sg different menc will convert it.
Thats the problem ... everytime I do start encding .. the command window gives me besides the whole lines a line where mencoder says ".... planar YUY2 prefered..."

Thats why I was " 8O " when I saw that only YV12 is set to the codecs.conf file in the "ffvfw makeavis" part.

Till now I dont know any encoder who likes yv12 as input, also CCE uses YUY2.

So thats waht I will find out if its really native cause if yv12 would not be native this would mean more speed consumption for a not needed YUY2 to YV12 and then back to YUY2 conversion :arrow: slower encoding and less quality :!:
In case of DVD source no matter as it will so or so be in yv12, but if you do use mjpeg sources which are in YUY2 or going into makeavis using YUY2 in your AVS script (maybe as some filters need it) it would be better to keep it IF in mencoder YUY2 would be native. And that would also be responsable for less encoding speed by using makeavis compared to direct VOB input (although VOBs are yv12)


All times are GMT -5. The time now is 01:54 PM  —  vBulletin Jelsoft Enterprises Ltd

Site design, images and content © 2002-2022 The Digital FAQ,
Forum Software by vBulletin · Copyright © 2022 Jelsoft Enterprises Ltd.