digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mencoder: How to compile mencoder for Athlon? (http://www.digitalfaq.com/archives/encode/9214-mencoder-how-compile.html)

incredible 04-20-2004 07:57 AM

How to compile mencoder for Athlon?
 
The title says it all.

So Vmesquita dont have to keep that job also updated. ;-)

1. What do I need to compile?
2. Which type of mencoder source I have to download?
3. What to do?
4. Thanks! :)

vmesquita 04-20-2004 08:25 AM

Re: How to compile mencoder for Athlon?
 
Quote:

Originally Posted by incredible
The title says it all.

So Vmesquita dont have to keep that job also updated. ;-)

1. What do I need to compile?

You need cygwin on Windows, and generally nothing else on linux.
Quote:

2. Which type of mencoder source I have to download?
The same source.
Quote:

3. What to do?
./configure
make

If you wanted a generic build, then you would use ./configure --enable-runtime-cpudetection
Quote:

4. Thanks! :)
You're welcome!
:D

incredible 04-20-2004 10:27 AM

Thanks! Vmesquita!

I saw that there are also builds avaiable which do not need that cygwin1.dll :?
But no matter ;-)

Ahhh, now I got it, thats why I cant compile on my athlon an intel Build cause I can only compile under linux by doing the? ./configure & make lines

And by this on linux will result an exe ? 8O

kwag 04-20-2004 11:09 AM

Quote:

Originally Posted by incredible

And by this on linux will result an exe ? 8O

No. You'll get "mencoder", and you run it as :arrow: ./mencoder

Unless you made a make && make install
Then, mencoder should be automatically installed, and you should be able to just run it by typing: mencoder

-kwag

incredible 04-20-2004 01:06 PM

Uops!

I meant I need a hint how to compile it for windows *lol*
I got now access to my Linux partition under windows 2000 via ext2fsd and can enter the "\root\MPlayer-1.0pre3try2" folder where I do see "mencoder"

I also installed cygwin via internet on my system Win2000.

What next?

Cause a simple adding of a suffix to that mencoder to mencoder.exe reacts in a message "Program too big for memory" :oops:

Krassi 04-20-2004 01:27 PM

Hi inc,

nice idea.
Here is my compile (cvs:20040420, for AthlonXP systems):
mencoder self extracting file.
UPDATE: makeavi implemented, thanks VMesquita.

Sorry for the self-extracting file, but my webspace upload is limited to 1.5mb
:roll:
The compile is working for me, please let me know if you experience any problems.

Here's a short howto:
Code:

Download MinGW, extract the cvs tar to a folder and access it with e.g. E:/Mplayer and run ./configure (with or without options --help). Run make afterwards and if everything went ok you will have the mencoder.exe in the Mplayer directory.

incredible 04-20-2004 02:51 PM

No matter if CygWin is used or MinWG ...

If I want to ./configure

Its stops by "GCC 2.96 IS NOT SUPPORTED BY US"

I tried to install the newer GCC but it also stops with an error about an "environment variable" ??!.

Well .... it seems that this "compiler" thing is not my friend! :(

vmesquita 04-20-2004 02:57 PM

Gcc 2.96 is abuggy version that nobody support, looks like for some reason you got cygwin with this version. :(
My advice: if you got broadband, wipe the cygwin folder and install folder, and download and install everything all over again. I'll be simpler than trying to fix. :wink:

Krassi 04-20-2004 02:59 PM

@inc:
Which MSYS-Version have you downloaded :?:
I'm using an older one and already having gcc 3.2.3 8O

incredible 04-20-2004 03:02 PM

MSYS 1.0.10.exe from here http://sourceforge.net/project/showf...?group_id=2435

Krassi 04-20-2004 03:04 PM

Quote:

Originally Posted by incredible

Ok. I will try it on my second machine and report... Just a second...

Krassi 04-20-2004 03:30 PM

Quote:

Originally Posted by Krassi
Ok. I will try it on my second machine and report... Just a second...

You need to install MinGW and MSYS. First MinGW from here:
http://prdownloads.sf.net/mingw/MinG...1.exe?download
then
http://prdownloads.sf.net/mingw/MSYS...0.exe?download
When the post-install of MSYS appears you have to give it the installation path of MinGW (with / instead of \).
MSYS only has gcc 2.x builtin...

Krassi

incredible 04-20-2004 03:47 PM

I did install totally from new ... everything like you explained ...


if I go into the menplayers folder and hit ./configure

this appears :

http://www.digitalfaq.com/archives/i.../2004/04/3.gif

Krassi 04-20-2004 03:52 PM

This appears if MSYS cannot find a compiler in the path. Have you installed the complete MinGW package :?:
Please verify your path in the post-install. You don't need to uninstall MSYS, just reinstall it.

incredible 04-20-2004 03:59 PM

IT RUNS!

I had also to install that mingw32-make-3.80.0-3.exe

And after that I had (to figure out by myself) that I had to copy make.exe from MinGW to MSys .. if not the command window installer from mSys tells me there's no make.exe found in MinGW!



.... well .. its compiling :) ... see which issues will come as next :lol:

Krassi 04-20-2004 04:02 PM

Quote:

Originally Posted by incredible
And after that I had (to figure out by myself) that I had to copy make.exe from MinGW to MSys .. if not the command window installer from mSys tells me there's no make.exe found in MinGW!

Yep, it is written in the post-install.

rds_correia 04-20-2004 04:11 PM

Thank God I didn't run into any of these problems on my 1st attempt on compiling mencoder.
Else I would have forgot it right away.
Good luck on it Inc. :wink:

incredible 04-20-2004 04:16 PM

Krassi, no matter if I use your build or mine ... the log of MencoderME stops by saying this:

Code:

"G:\IDENTITY\identity_pred.avi" -o "G:\IDENTITY\identity_pred.mpv"MEncoder dev-CVS-040420-17:55-3.2.3 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 2457 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading C:/Programme/MPlayer/mplayer/codecs.conf: 61 audio & 170 video codecs
Reading config file C:/Programme/MPlayer/mplayer/mencoderReading config file temp.conf
font: can't open file: C:/Programme/MPlayer/mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x13600
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [AVIS]  704x576  16bpp  25.000 fps    0.8 kbps ( 0.1 kbyte/s)
[V] filefmt:3  fourcc:0x53495641  size:704x576  fps:25.00  ftime:=0.0400
input fps will be interpreted as 25.00 instead
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [yuvcsp]
==========================================================================
Read DOCS/HTML/en/codecs.html!
==========================================================================
Exiting...

a codecs issue??

rds_correia 04-20-2004 04:19 PM

Hi Inc.,
Most probably!
Just try a VOB source instead of the makeAVIS your feeding mencoder with.
Tell us the results.
Cheers

Krassi 04-20-2004 04:20 PM

Quote:

Originally Posted by incredible
a codecs issue??

Think so. You're using a capture codec, right :?:
Have you tried with a dvd source :?:
I will have a look in the configure options.

@vesmquita: Are you doing a plain configure command or are you using some parameters :?:
Thanks in advance.

Krassi

incredible 04-20-2004 04:22 PM

Nope Im going in using makeavis .... no problems with all builds before :?

DVD Source works! So its a complie/codecs thing i think.

vmesquita 04-20-2004 04:55 PM

Quote:

Originally Posted by incredible
Nope Im going in using makeavis .... no problems with all builds before :?

Actually you need to replace the built-in codecs.conf with a copy that contains ffvfw reference, so mencoder can understand makeavis. You can get the codecs.conf I provided a while ago, search inside the source folder and replace the codecs.conf from the source with the one I provided. :wink:
Sorry I forgot this step. :oops:

Krassi 04-20-2004 04:58 PM

Thank you, Vmesquita :!:
Now i can go to sleep :lol:

Krassi 04-20-2004 05:27 PM

I've updated my compilation:
mencoder self extracting file.
Thank you again, VMesquita, seems to work now.

@inc: Can you test it :?:

kwag 04-20-2004 05:36 PM

Quote:

Originally Posted by Krassi
I've updated my compilation:

Stop it :!: :lol:
I was just testing your previous build, and now I have to abort :twisted:

:lol:
-kwag

rds_correia 04-20-2004 05:52 PM

Hi guys,
Adding up to what VM recommended I would use his text:
Code:

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

and paste it into the latest codecs.conf file that you guys have in your just downloaded mencoder tarball.
You can find it in the tarball under:
/etc/codecs.conf
This way you'll benefit from the usage of makeAVIS plus the latest added codecs if necessary :wink:
Also I would always use Cygwin instead of MinGW for mencoder: although the filesize is higher it is faster when encoding 8O
Note: this will only work with makeAVIS that came with pure and plain FFvfw :!:
It will not work with makeAVIS that comes with latest FFdshow from Athos at Doom9 :roll:
At least on my PC...
Cheers guys

incredible 04-20-2004 06:01 PM

Quote:

Originally Posted by Krassi
I've updated my compilation:
mencoder self extracting file.
Thank you again, VMesquita, seems to work now.

@inc: Can you test it :?:

Same issue .... :oops:

rds_correia 04-20-2004 06:09 PM

Quote:

Originally Posted by Krassi
Thank you, Vmesquita :!:
Now i can go to sleep :lol:

and
Quote:

Originally Posted by incredible
Quote:

Originally Posted by Krassi
I've updated my compilation:
mencoder self extracting file.
Thank you again, VMesquita, seems to work now.

@inc: Can you test it :?:

Same issue .... :oops:

Now the question is: has the poor guy (Krassi) gone to sleep :?: :lol:
Otherwise your best shot (Inc.) is asking VM to make a new build :wink:
'Cause I'm going to bed too 8)
Cheers guys

incredible 04-20-2004 06:32 PM

Yep, but the idea is that not everything will end up on Vmesquita as he is running on many things simultaniously! ;-)

And ... its nice if I can understand what Im doing & using 8) :D

For assurance, heres a "little part" of the beginning of my codecs.conf.h file in the Mplayer Directory after ./configure

Code:

* GENERATED FROM ./etc/codecs.conf, DO NOT EDIT! */

codecs_t builtin_video_codecs[] = {
{{ 0x53495641, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, /* fourcc */
{ 0x53495641, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* fourccmap */
{ 0x32595559, 0x32315659, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, /* outfmt */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* outflags */
{ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, /* infmt */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* inflags */
"makeavis", /* name */
"FFvfw makeavis", /* info */
NULL, /* comment */
"ffvfw", /* dll */
"vfw", /* drv */
{ 0x00000000, 0, 0,{ 0, 0, 0, 0, 0, 0, 0, 0 } }, /* GUID */
0 /* flags */, 2 /* status */, 0 /* cpuflags */ }
,
{{ 0x10000001, 0x10000002, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, /* fourcc */
{ 0x10000001, 0x10000002, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* fourccmap */
{ 0x4D504553, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, /* outfmt */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* outflags */
{ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }, /* infmt */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, /* inflags */
"mpegpes", /* name */
"Mpeg PES output (.mpg or Dxr3/DVB card)", /*

As you can see "makeavis" is determined as found in the codecs.conf file I did change before in the "etc" Folder :?
I did NOT use a text edit appl. so the format structure of codecs.conf is in the state as it has to be.

Tonight I wanna get that CygWin running. Maybe that could help, or I still am doing something wrong, .. or there is a "change" in the newest CVS which doesn't allow makeavis :?

Krassi 04-21-2004 02:08 AM

Quote:

Originally Posted by kwag
Stop it :!: :lol:
I was just testing your previous build, and now I have to abort :twisted:

:oops:
I should have named it "alpha version" :lol:

@inc:
I will have a look at this again. @work i can only test/compile it during my timeouts :wink:

Krassi 04-21-2004 04:22 AM

Ok,

i'm sitting in front of an Intel machine now, so i've compiled it with all cpu optimisations.
Here it is:
mencoder for Intel & AMD
Can somebody do a short test :?: Thanks.
Tomorrow evening i will be able to compile it on my Athlon system.

vmesquita 04-21-2004 08:20 AM

Quote:

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. :(

vmesquita 04-21-2004 01:19 PM

@incredible
Did you do a:
Code:

make clean
before ./configure so the old compiled data is discarded? Also, I remembered that you have to include a build switch to enable win32 codecs. So please do configure with the following switches:
Code:

$ ./configure --enable-largefiles --enable-static --confdir=mplayer/  --enable-win32
This will enable win32 codecs. large files (bigger than 2Gb support), make satic build (so the only needed DLL is cygwin1.dll), and change the configdir to a usable one, otherwise you won't be able to use a external configfile because it will point to a place that doesn't exist in windows.
Sorry for only remembering this now. :oops:

incredible 04-21-2004 02:24 PM

Quote:

and change the configdir to a usable one, otherwise you won't be able to use a external configfile because it will point to a place that doesn't exist in windows.
My friend ... what do you mean by this??

Cause I got this output now in cygWin:
Code:

$ ./configure --enable-largefiles --enable-static --confdir=mplayer/ -enable
-win32
Detected operating system: CYGWIN
Detected host architecture: i386
Checking for cc version ... 3.3.1, ok
Checking for CPU vendor ... AuthenticAMD (6:8:1)
Checking for CPU type ...  AMD Athlon(tm)
Checking for GCC & CPU optimization abilities ... athlon-4
Checking for kernel support of mmx ... yes
Checking for kernel support of mmx2 ... yes
Checking for kernel support of 3dnow ... yes
Checking for kernel support of 3dnowex ... yes
Checking for kernel support of sse ... yes
Checking for mtrr support ... yes
Unknown parameter: -enable-win32

Administrator@win2000 /cygdrive/d/Mplayer
$

To WHICH directory I have to point that confdir???

At least I found out that unknown parameter
it was....

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

But still which directory should be used for confdir ???

Ahhh. now i check it, its the folder "mplayer" within the folder where mencoder will be stored!

incredible 04-21-2004 02:42 PM

I CANT BELEIVE IT, IT RUNS!!!!!
Even makeavis now works!!

And its fast! :D

vmesquita 04-21-2004 02:45 PM

I edited the post, it should be --enable-win32 as you figured out. The confdir parameter is to allow you to use external configuration files (one of them is codecs.conf). If you don't specify this, mencoder will look for configuration files in /home/username/.mplayer, which doesn't exists for windows. Now that the internal configfile already has MakeAVIS specified you probably won't need any other external configuration files, but if you post a compilation later and someone wants to use a different codecs.conf for some reason, he'll be able to do it. :wink:

EDIT:
To make the executable half its size, you can
Code:

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

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

fozzieb 04-21-2004 03:19 PM

i still can't get it to except makeavis source to work, even using this compile command line


does the --enable-largefiles work for other sources (jigdo for getting debian)

cheers

vmesquita 04-21-2004 03:25 PM

You also need to modify /etc/codecs.conf like rds_correa suggested before, have you done that? This enable-largefiles may work with other sources which configure has this option. :wink:

fozzieb 04-21-2004 03:28 PM

Quote:

You also need to modify /etc/codecs.conf like rds_correa suggested before
my fault, i forget to do this :oops:

fozzieb 04-21-2004 04:05 PM

Still not working ...

Here is my output


Code:

Source Width:720 Source Height:576 Aspect:1.000000

Mencoder.exe -include temp.conf -lavcopts vbitrate=25998:vpass=1 "C:\BILLY_CONNOLLY_LIVE_2002\VIDEO_TS\test.avi" -o "C:\BILLY_CONNOLLY_LIVE_2002\VIDEO_TS\test.mpv"MEncoder dev-CVS-040421-21:37-3.2.3 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 2606 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading C:/Dvd Tools/MencoderMe/mplayer/codecs.conf: Reading config//codecs.conf: Using built-in default codecs.conf.
Reading config file C:/Dvd Tools/MencoderMe/mplayer/mencoderReading config file temp.conf
font: can't open file: C:/Dvd Tools/MencoderMe/mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0xC9200
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [AVIS]  720x576  16bpp  20.000 fps    0.6 kbps ( 0.1 kbyte/s)
[V] filefmt:3  fourcc:0x53495641  size:720x576  fps:20.00  ftime:=0.0500
input fps will be interpreted as 25.00 instead
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [yuvcsp]
==========================================================================
Opening video decoder: [vfw] Win32/VfW video codecs
Can't open library ffvfw
VDecoder init failed :(
Read DOCS/HTML/en/codecs.html!
==========================================================================
Exiting...



All times are GMT -5. The time now is 05:39 AM  —  vBulletin © Jelsoft Enterprises Ltd

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