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)

rds_correia 04-22-2004 05:21 PM

Quote:

Originally Posted by yaz
@incredible
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).
thx
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)/ffdshow.ax"
out YV12

Hi,
Good thinking yaz.
It took me several days to reach the same result as you did.
But I only came up to that conclusion last night.
Where were you last week :evil:
Just kidding with you of course :D although I did the same finding yesterday night :?

@Inc.
Two good things about working with makeAVIS from FFdshow:
1-It's based on directshow routines and doesn't have a bug from VfW that whenever you hover your mouse pointer on top of a fake avi file explorer.exe would crash.
2-Guys like Hydeus or Marcellus that loved FFvfw from the begining and that helped us on the 1st mencoder findings will only have one version of FFvfw installed on their system. You see now FFdshow is a package with old FFdshow+FFvfw+makeAVIS :)
This way they install one FF package that will encode through FFvfw and be able to make a fake avi to test with mencoder and match results.
So I am inclined to provide a general non cpu optimized compiling of mencoder with a modded codecs.conf file for use with new makeAVIS on the newbie page.
Maybe this way we gather more people around us :wink:
Cheers

incredible 04-22-2004 05:36 PM

@ yaz

Code:

Opening video decoder: [vfw] Win32/VfW video codecs
Loaded DLL driver ffvfw
VDec: vo config request - 704 x 576 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (704x576 fourcc=3267706d [mpg2])
Selected video codec: [makeavis] vfm:vfw (FFvfw makeavis)

DO you see the line:
VDec: vo config request - 704 x 576 (preferred csp: Packed YUY2)

To me that seems to be an advice of mencoder that he prefers YUY2 input?? Or maybe I do see something wrong.... :?: ... so everything will be internally converted to YUY2 before the encoding part of the mencoder engine starts its work. ;-) (like in CCE, maybe)

@ RDS
Yep, sounds very logical ... (although i never had problems when using FFvfw makeavis via ffvfw.dll) :? :)

@ Vmesquita

No matter what I do set as "--confdir=XXXXX" before compiling ... the path everytime will point to linux system logic:
Code:

MEncoder dev-CVS-040420-06:00-3.3.1 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 2236 MHz (Family: 6, Stepp
ing: 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 /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
tory
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

:(

rds_correia 04-22-2004 05:44 PM

Quote:

Originally Posted by incredible
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..."

Hi Inc.,
Don't remember how the window looked like when I was using ffvfw.dll but look at mine with ffdshow.ax.
No colorspace convertion.
Am I Right?
Or are you talking about the red font text?

Quote:

C:\VIDEO\mplayer>mencoder -include zMEnc_AVIS.ini d:\bttf\bttf_ma.avi -o c:\vide
o\mplayer\bttf_test.m2v
MEncoder dev-CVS-040417-14:52-3.3.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner 549.7 MHz (Family: 6, Step
ping: 3)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading /home/Rui/.mplayer/codecs.conf: Can't open '/home/Rui/.mplayer/codecs.co
nf': No such file or directory
Reading mplayer//codecs.conf: 64 audio & 177 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/Rui/.mplayer/mencoder: No such file or directory
Reading config file zMEnc_AVIS.ini
font: can't open file: /home/Rui/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0 data: 0x0 - 0x475600
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO: [AVIS] 528x576 16bpp 25.000 fps 0.8 kbps ( 0.1 kbyte/s)
[V] filefmt:3 fourcc:0x53495641 size:528x576 fps:25.00 ftime:=0.0400
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
Loaded DLL driver codecs\ffdshow.ax
VDec: vo config request - 528 x 576 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (528x576 fourcc=3267706d [mpg2])
Selected video codec: [makeavis] vfm:vfw (FFvfw makeavis)
================================================== ========================
Writing AVI header...
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[mpeg2video @ 0x908410]rc buffer underflowmin 0mb A-V:0.000 [0:0]
Pos: 9.2s 231f ( 0%) 5fps Trem: 516min 1178mb A-V:0.000 [1474:0]
Writing AVI index...
Fixing AVI header...

Video stream: 1474.403 kbit/s (184300 bps) size: 1702936 bytes 9.240 secs 23
1 frames
Terminate batch job (Y/N)?
But then I changed to YUY2 and look what it did. It called SwS...

Quote:

C:\VIDEO\mplayer>mencoder -include zMEnc_AVIS.ini d:\bttf\bttf_ma.avi -o c:\vide
o\mplayer\bttf_test.m2v
MEncoder dev-CVS-040417-14:52-3.3.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner 543.2 MHz (Family: 6, Step
ping: 3)
Detected cache-line size is 32 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading /home/Rui/.mplayer/codecs.conf: Can't open '/home/Rui/.mplayer/codecs.co
nf': No such file or directory
Reading mplayer//codecs.conf: 64 audio & 177 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/Rui/.mplayer/mencoder: No such file or directory
Reading config file zMEnc_AVIS.ini
font: can't open file: /home/Rui/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0 data: 0x0 - 0x475600
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO: [AVIS] 528x576 16bpp 25.000 fps 0.8 kbps ( 0.1 kbyte/s)
[V] filefmt:3 fourcc:0x53495641 size:528x576 fps:25.00 ftime:=0.0400
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
Loaded DLL driver codecs\ffdshow.ax
VDec: vo config request - 528 x 576 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from Packed YUY2 to Planar YV12 using MMX2
videocodec: libavcodec (528x576 fourcc=3267706d [mpg2])
Selected video codec: [makeavis] vfm:vfw (FFvfw makeavis)
================================================== ========================
Writing AVI header...
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[mpeg2video @ 0x908410]rc buffer underflowmin 0mb A-V:0.000 [0:0]
Pos: 2.4s 59f ( 0%) 5fps Trem: 0min 0mb A-V:0.000 [547:0]
Writing AVI index...
Fixing AVI header...

Video stream: 547.020 kbit/s (68377 bps) size: 161371 bytes 2.360 secs 59 f
rames
Terminate batch job (Y/N)?
So what's a packed YUY2? Ideas anyone?
Cheers

Prodater64 04-22-2004 06:15 PM

May it help you?

www.viewcast.com/faq.asp%3Ffaqcat%3DOsprey%2BProducts+%22packed+YUY 2%22+explanation&hl=es]In order to compress with DivX you must utilize a YUV format and not RGB. If you are using a capture application like VirtualDub simply open VirtualDub and, after selecting File>Capture AVI, select the video>format menu and verify that the color format is set to Yuv12 or recommended 4:2:2 packed(YUY2).[/url]

Packed YUY2 seems to be a color space 4:2:2
Is your avi captured, created or maybe your avi codec set to 4:2:2 color space?

Prodater64 04-22-2004 08:42 PM

Quote:

Originally Posted by fozzieb
any news on the gui front (allowing to change crop settings)?

In my Windows version, when I cancel 2 pass encode, crop values became not grayed. Can you use that for now, until VM updates the GUI?

vmesquita 04-22-2004 09:15 PM

Please note that cropped width and height doesn't really crop, because I haven't implemented autocrop for now. I really need to come up with a better name, this is gettins misleading. Right now, there's no way to crop from inside MEncodeME and probably there still won't be for the next version because I need to test how mencoder autocrop works and I am lacking time now (as usual). :wink:

Prodater64 04-22-2004 09:43 PM

Quote:

Originally Posted by vmesquita
I really need to come up with a better name, this is gettins misleading.

Then, are these values film pixel width and height?

vmesquita 04-22-2004 09:54 PM

Quote:

Originally Posted by Prodater64
Then, are these values film pixel width and height?

This values are resized height and width. No cropping is done right now. MEncodeME does not detect and remove black borders right now.

incredible 04-23-2004 12:56 AM

@ RDS

If compiling Mencoder, try to setup the makeavis part of the codecs.conf to YV12,YUY2 ! Maybe by this you wont keep the YV12 IF you also did change in your avs script to YUY2! (thats what we should test - wich col.conversion ist fatser and better)

@ Prodater

a) YEP, if you capture in mjpeg the most common colSpace is YUY2, also when using HuffYUV

b) In vdub or elsewehre in case of 90% of capture cards you have to choose YUY2 (or in very less cases RGB) cause almost no capture card supports digizing in YV12 - which also would be output a worse chroma quality!

kwag 04-23-2004 01:01 AM

Quote:

Originally Posted by incredible
ist fatser and better

Easy on the beer Inc., or you'll get "fat" :lol:

-kwag

yaz 04-23-2004 03:50 AM

@rds_correia
the pleasure is mine :-) i'm here around very frequently but my time & bandwith is quite limited, so i spend that for downloading rather than posting this & that. shame on me :-)
- codecs.conf
it's needed by the player. afaik, menc only needs it on serving fake sources. (i've never tested what'd happen if it's missing completely but i will tonight. the vidc.avis regkey should do everything we want here)
anyway, for feeding avis there's no need to hack the orig file (loading hundreds of codecs defs) u can use your own. a simple text file is accepted but u must drop a 'release yyyymmdd' line to the top. if it's missing menc feels that some outtadate stuff is attempted & kicks off.
my present problem is that the -codecs-file options seems to be b0rked. i've found no way of putting codecs.conf anywhere else than to mplayer/codecs.conf (i hate it)

@incy
imho, menc does not bother too much about what's feeded. & so do all the encoders i know. even cce 2.67 can eat anything. all present encoders have inner conversion routins needed. imho, there's no need (& there's no reason) to keep up with yuy2 anymore. yv12 is the native form of the most common digi sources, so the encoders prefer that by nature. yuy2 is preferred rather on the capture size but it's an other business.
so, imho, your message about 'yuy2 preference' refers to the source u fed not to menc.
btw, u left behind again :-) vmesquita released a brand new compile. so where's yours ? :-)

the bests
y ( gone to test the new menc(me) )

incredible 04-23-2004 04:02 AM

Quote:

Originally Posted by yaz
imho, menc does not bother too much about what's feeded. & so do all the encoders i know. even cce 2.67 can eat anything. all present encoders have inner conversion routins needed. imho, there's no need (& there's no reason) to keep up with yuy2 anymore. yv12 is the native form of the most common digi sources, so the encoders prefer that by nature. yuy2 is preferred rather on the capture size but it's an other business.
so, imho, your message about 'yuy2 preference' refers to the source u fed not to menc.

Makes sense .. but I do see it like "get out the best" ;-)
As I also wanted to do tests on the internal chroma subsampling quality from YV12 to YUY2 (before it gets into mpv YV12 again) done by CCE compared to a ColConversion in avisynth before. But seen as general youre right that all encoders now dont bother and do an conversion-source preparation internally before.

Quote:

btw, u left behind again :-) vmesquita released a brand new compile. so where's yours ? :-)
a) Im not in a compile contest with VMesquita :D :lol:

b) As mentioned there's still that "path" error ... in my compilings but ok as I did set the codecs.conf before compiling this should not matter.
And there are soooo many options in ./configure which I would like to figure out before releasing a build - maybe there's something more to tweak ;-)

I think if Vmesquita did compile the latest CVS then mine wouldn't be different :lol:

yaz 04-23-2004 04:42 AM

@incy
u get me down, really. i hoped a smart little toy to play with on the weekend but ... life's hard ... (sigh)
the bests
y (living now in shadow)

incredible 04-23-2004 05:35 AM

Quote:

u get me down, really. i hoped a smart little toy to play with on the weekend
Means?

Do you want a latest build? But as I understood VMesquita already provided one latest build? Or do you refer to CygWin?


PS:
"inky" 8O :?: :lol:

Pleeeease: Inc., Ink., Andres, Andrew, Andre :arrow: Choose the one you like

:lol:

yaz 04-23-2004 05:55 AM

Quote:

Originally Posted by incredible
Pleeeease: Inc., Ink., Andres, Andrew, Andre :arrow: Choose the one you like :lol:

dear mr/ms incredible ! (nooo, it's sounds so stupid :-))
Quote:

Originally Posted by incredible
Do you want a latest build? But as I understood VMesquita already provided one latest build? Or do you refer to CygWin?

no, no & no :-) just a simple fully optimized athlon version. just as u promised (years ago :-))
the bests
y

incredible 04-23-2004 06:09 AM

Well as I know Vmesquita offers Athlon optimized versions :?:

Tonight is my "mencoder"-night and I will post a latest CVS compile for Athlon! Promised!
Also I do offer two versions

- Compile where the ffvfw.dll is accepted incl. supported YV12 and YUY2

- Compile where the ffvfw.ax is accepted (as I did check that right, Ill look for riu's (rds_correia) quote on these lines of the codecs.conf ..... and here also incl. supported YV12 and YUY2


Quote:

videocodec makeavis
info "FFdshow makeavis"
status untested
fourcc AVIS
driver vfw
dll "(path)/ffdshow.ax"
out YV12
what does (path)/ffdshow.ax mean??

which path do I have to set?


Inc.

yaz 04-23-2004 06:41 AM

Quote:

Originally Posted by incredible
what does (path)/ffdshow.ax mean??
which path do I have to set?

-(path) is the route to the forlder where ffdshow.ax is installed. (u can put it wherever u want on install) if it's in its right place (sys32), u wouldn't need it at all (i'll test it tonight)
- imho, no need to tackle with the ffvfw/ffdshow business. if the vidc.avis regkey is ok, menc should find the appropriate decoder. why do we have windows, anyway ? :-) (i'll test it tonight)
- would u check why 'codecs-file' option is neglected ? that bothers me much. iirc, this is for finding an other 'codecs.conf' insted of the orig (./mplayer/..) or of the built-in. but maybe i'm wrong about it.
- no need for the orig codecs.conf file ! u can use your own (see my post above) if u put ffvfw there that 'd be used, if u put ffdshow ... (it worx)
- u can serve d2v directly, as dvd2avidg has it's own vfapi. so, if u want to filter within mencoder, u don't need makeavis at all.
the bests
y

jorel 04-23-2004 06:51 AM

Quote:

Originally Posted by incredible
Pleeeease: Inc., Ink., Andres, Andrew, Andre :arrow: Choose the one you like
:lol:

8O ............ :bawl:
now i'm confused!

choosing...
:eyebrows:
....maybe i choose....all!
:lol:

hey,...what about....AN-DRINK ?!?!?
:drunkard:

incredible 04-23-2004 07:57 AM

To clearify that:

My real name is "Andre" but Im known in here as Inc. or Ink (Well I think so) :lol:

incredible 04-23-2004 08:38 AM

Quote:

Originally Posted by yaz
- u can serve d2v directly, as dvd2avidg has it's own vfapi. so, if u want to filter within mencoder, u don't need makeavis at all.
the bests
y

Would that mean:

Code:

videocodec d2v
  info "d2v directshow"
  status untested
  fourcc ???? <------ what should be there?
  driver dshow
  dll "d2vsource.ax" <------ the name of the d2v directshow driver in sys32
  out YV12 <------ DVD Color Space

d2vsource.ax driver
http://aleron.dl.sourceforge.net/sou...e_20030603.zip

Or via VFAPI .. Source via .d2v or if it has to be via "VFAPIConv.exe"

Code:

videocodec VFAPI
  info "VFAPI ReaderCodec"
  status untested
  fourcc VIFP
  driver vfw
  dll VFCodec.dll <------ the name of the VFAPI driver in sys32
  out YV12 <------ DVD Color Space

http://www.doom9.org/Soft21/SupportU...nv-1.05-EN.zip
(anti leech! link just to show where you will find it)

:?:

(Im sitting in front of a MAC in my job right now, so these only "brain" assumptions :wink: )


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

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