digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mencoder: Mencoder for Windows (http://www.digitalfaq.com/archives/encode/7740-mencoder-mencoder-windows.html)

vhelp 02-16-2004 05:58 PM

@ vmes,

Quote:

@vhelp
Nice you found out about a config file, even for WinXP users, editing the command-line
can be very confusing sometimes! It's also great to know you're writing a GUI.
Yes my friend, my goal.. is to create in interface similar to TMPG :mrgreen:
But, right now, it looks like Mr McGoo (spelling) :wink:

-vhelp

rds_correia 02-16-2004 06:01 PM

Agree with most of your post VM.
But where did you come up with that beautifull codec.conf file of yours?
I've browsed the whole internet looking for it as we may find more needed files next to it but I really can't find it...
Like that font file that vhelp mentioned.
I also agree with him where "the lesser the trash on screen the better".
Thanks and C ya

Hydeus 02-16-2004 06:07 PM

@Vmesquita
Probably you're right, but I've read (I somewhere in doom9) that lates ffvfw build is very alpha/beta/gama/delta/night-build and was not optimised for speed, also few bugs included for free ;)

@vhlep
Create subfolder \mencoder\mplayer\font and create in it empty file font.desc. But this still produces two lines in cmd window, reporting succes of find, and zera data ;)

vhelp 02-16-2004 06:11 PM

:!: Update guys...

I did some more "what if's" and now the line looks like thus:


Next, we have the following INI script that I'm working on:

Filename: men.ini

Quote:

lavcopts:vcodec=mpeg2video:mbd=1:vqscale=3:vrc_min rate=64:vrc_maxrate=5000:vrc_buf_size=1835:keyint= 250:vlelim=-4:vcelim=7:aspect=4/3:vmax_b_frames=1:
ofps=23.976
o=5.m2v
Now, when you run the BAT script inside a DOS window, this is what you'll
get if all goes well (substitute your .AVI source file)

The above works, and no more error message as previously demonstrated.

Here is the new DOS screen (similar to prev one)

Quote:

MEncoder 1.0pre3-3.2.3 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1467 MHz (Family: 6,
Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 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 H:/MENCODER/mplayer/codecs.conf: 61 audio & 170 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file H:/MENCODER/mplayer/mencoder: No such file or directory
Reading config file h:\mencoder\men.ini
font: can't open file: H:/MENCODER/mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0 data: 0x0 - 0x496F000
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO: [HFYU] 720x480 24bpp 23.976 fps 68684.2 kbps (8384.3 kbyte/s)
[V] filefmt:3 fourcc:0x55594648 size:720x480 fps:23.98 ftime:=0.0417

No video encoder (-ovc) selected. Select one (see -ovc help).
Exiting...
...
mencoder is Finished !!
Press any key to continue . . .
Do I have everything correctly layout for an MPEG-2 encode ??
I ask because this script snip was based on an intial MPEG-1 and I only just
copied it and thanced it to mpeg2video - that's it :roll:

We're definately making some headway here :mrgreen:
But, I'm really getting bushed :( and there's no help from any else here :(
So, I'll do what I can for you all :roll: because its for everyone's best interest :)

-vhelp

vhelp 02-16-2004 06:43 PM

Update !! !! !!

Guys, I MIGHT have it :mrgreen:

stay tuned :!:

FWIW.. the last hurdle w/ the (-ovc) error. It's looking for the encoder :roll:

-vhelp

rds_correia 02-16-2004 06:48 PM

Hang in there buddy. I can only try your way tomorrow.
You see I've been messing with the vrc_minrate&vrc_maxrate and the vqmin&vqmax to see if we can have a "average" quality mode between 3 and 5 or something.
We have to be able to constrain the bitrate a bit otherwise we'll end up with a super encoder, super GUI, super encoded video, but that is out of DVD specs and is not playable at all.
Anyway you haven't told me if you tested the ReactOS command.com.
I tried it today at work and I liked it so much that I'll start using it on the company's laptop that is running W98SE since it's a Celeron 300 with only 64Mb :lol:
Really neat features in ReactOS :D
And that way everybody could just use a loooong batch file without any problems.
Cheers

Dano 02-16-2004 06:49 PM

Hi VHelp,

A couple of suggestions, change vrc_minrate to at least 300, keyint to 18 and maybe vmax_b_frames to 2.

vhelp 02-16-2004 07:00 PM

@ rds,

I scrapped ReactOS because I thought it was a TSR. TSR's require a user
intervention, and you can't close those down from a shell - not w/out having
a "leak".

Is this a TSR app ??
You can tell, because when you exit your DOS window, an TSR screen will
pop, asking you to press Ctrl+C to finally leave it.

If not, I'll give it a try :!: What is required to install this.. where and how ?
-vhelp

rds_correia 02-16-2004 07:07 PM

Hi vhelp,
Also download and try this ReactOS that is a substitute for the command.com that is brought on Win98/ME.
ReactOS shell
Here is the site hosting the file with some explanation ReactOS site
Hope it helps 8)
C ya

Note:sorry for double posting :wink:
And it's not a TSR. You can exit it with a simple "exit" command or by closing it's window. Give it a shot. I'm pretty sure it won't let u down.
Edit: just copy the exe file to your folder of choice (best where mencoder exe is located and rename it to Cmd.exe.
Double click it "Et voilá":nice windows 2000 like shell :wink:
Cheers

vhelp 02-16-2004 07:20 PM

@ rds,

ut-oooo. looks like reactOS does not accept initial params. Looks like it
won't work :( :( :(

My delphi app can call it up, but when I pass it a simple param string (below)
only a dos window pops up.

Quote:

s:=od1.FileName;
s:='h:command.com ' + od1.filename;
WinExec(StrPlCopy(pc,s,4096),SW_ShowNormal);
** Note, I renamed the .exe to "command.com"
** Note 2, the od1.filename is my .BAT file.

I'm totally stumped !! :roll:
-vhelp

rds_correia 02-16-2004 07:22 PM

Hey,
Where are Karl, Inc., Phil, Razor, Krassi these days?
These guys can really twist encoder options.
I sure would like to have them around so we could try something.
It seams that ffvfw problem got everybody on the downside...
But that's just temporary guys.
If we can't do it with ffvfw or mencoder, heck we'll find something even better, faster and predictable.
We were born to put 3 seasons of the simpsons on one zip drive like SansGrip said :wink:
Come on guys, cheer up.
C ya

vhelp 02-16-2004 07:24 PM

@ rds,

I revised my post above yours.
-vhelp

rds_correia 02-16-2004 07:25 PM

Code:

s:=od1.FileName;
s:='h:command.com ' + od1.filename;
WinExec(StrPlCopy(pc,s,4096),SW_ShowNormal);

8O 8O 8O
Man I really don't know what that means...
You could be right.
Anyway the docs say we have to rename it to Cmd.exe specifically.
Else we better discard it :cry:
C ya

vhelp 02-16-2004 07:29 PM

ok, will do. CMD.EXE it is :)
-vhelp

rds_correia 02-16-2004 07:30 PM

Aaaannnndddd, does it work now??? :D

vhelp 02-16-2004 07:51 PM

So far, when I call CMD.EXE and my param string, the only thing that
happens, is that a DOS window pops upon and a screen full of CMD's nonsense :confused:

I'm still working on trying to get CMD to accept parameter string ie,

CMD h:\mencoder\mencoder.exe

Just doesn't want to happen. Perhaps CMD does not have param capabilities ??

-vhelp

vhelp 02-16-2004 08:10 PM

Ok, here is (hopefully) the last place that I'm having trouble with. Because
I'm not familiar w/ mencoder's params and MPEG1 or MPEG2 intricicies, I
am flying blindly w/ errors. So, please guide me a little, with the proper
MEPG-2 settings :(

It looks like my mpeg2video is in error somewheres. Perhaps its a mixture
of mpeg1 and mpeg2. I don't know. But, I'm asking for an MPEG-2 specific
set of param strings.

Quote:

Cannot find codec 'mpeg2video:mbd=1:vqscale=3:vrc_minrate=64:vrc_max rate=5000:vr
c_buf_size=1835:keyint=250:vlelim=-4:vcelim=7:aspect=4/3:vmax_b_frames=1:' in li
bavcodec...
Couldn't open video filter 'lavc'.
Failed to open the encoder.
Exiting...
Any help would be much appreciated,
-vhelp

Amenophis 02-16-2004 09:30 PM

the parameters seems to be ok, but if you have not changed the commandline (or ini) you mentioned some posts ago, this could be the reason:

Quote:

Originally Posted by vhelp

Filename: men.ini

Quote:

lavcopts:vcodec=mpeg2video:mbd=1:vqscale=3:vrc_min rate=64:vrc_maxrate=5000:vrc_buf_size=1835:keyint= 250:vlelim=-4:vcelim=7:aspect=4/3:vmax_b_frames=1:
ofps=23.976
o=5.m2v

the syntax of something like this would be better:

Quote:

-of mpeg -ovc lavc -lavcopts vcodec=mpeg2video:mbd=1:vqscale=3:vrc_minrate=64:v rc_maxrate=5000:vrc_buf_size=1835:keyint=250:vleli m=-4:vcelim=7:aspect=4/3:vmax_b_frames=1
-ofps 23.976 -o 5.m2v
additionally, i would suggest the following settings:

Quote:

-of mpeg -ovc lavc -lavcopts vcodec=mpeg2video:mbd=0:vqscale=3:vrc_minrate=64:v rc_maxrate=5000:vrc_buf_size=1835:keyint=15:vlelim =-4:vcelim=7:aspect=4/3:vmax_b_frames=2
-o 5.m2v

vhelp 02-16-2004 10:15 PM

@ Amenophis,

Yes, at first, that is what I did too :lol:

But, then I realize, for configuration files, they (the '-') has to be amitted
from the lines. Also, there seems to be a ass-backwards about its format
or syntax. Things don't add up the same, as when you write your command
line params. That's why I've had nothing but trouble w/ this configuration
file (aka, my men.ini file syntax) But, just believe me, the '-' has to be
amitted, and the file (for the most part) has to be line-delemited. I think
it's more stricker, but doesn't make any sense :confused:

@ rds,

Sorry chap, CMD.EXE is a bomb. I figured out how to execute it w/ a param
string. Unfortunately, it crashes out w/ Exception Errors :confused:

Still, becauase I'm under W98, I truley believe that mencoder does not work
w/ W98 (and probably W98SE/ME too) If it works at all, its only minor or the
simple things, that it can do. But, throw a long and cryptic param string at
it, as in our futile attempts, and it wines like a tight-ass baby :!:

@ rds, I think CMD is ok for minor scripts, but that's about it.

Also to note, until a proper configuration file can be standardized,
or known for its proper syntax, we are looking at a dead horse (us W98/SE/ME)
goe'ers :(

I might play around w/ it for a little while longer, but that's about it. Also,
because of this, looks like my GUI will freeze for the time being :?

I'm really pretty pooped now :confused:
-vhelp

rds_correia 02-17-2004 06:21 AM

Quote:

Originally Posted by vhelp
@ rds,

Sorry chap, CMD.EXE is a bomb. I figured out how to execute it w/ a param
string. Unfortunately, it crashes out w/ Exception Errors :confused:

Still, becauase I'm under W98, I truley believe that mencoder does not work
w/ W98 (and probably W98SE/ME too) If it works at all, its only minor or the
simple things, that it can do. But, throw a long and cryptic param string at
it, as in our futile attempts, and it wines like a tight-ass baby :!:

Gee, sorry that. I'll give it a try today with my laptop running W98 and see if at least I can throw a big command line. Should I experience the same probls we should abandon it.
Quote:

Originally Posted by vhelp
@ rds, I think CMD is ok for minor scripts, but that's about it.

Also to note, until a proper configuration file can be standardized,
or known for its proper syntax, we are looking at a dead horse (us W98/SE/ME)
goe'ers :(

I might play around w/ it for a little while longer, but that's about it. Also,
because of this, looks like my GUI will freeze for the time being :?

I'm really pretty pooped now :confused:
-vhelp

That's understandable big guy. I just would feel very sad if you had to leave us because of this W98 issue. You are a good programmer and a nice GUI could appear but that can only happen if at least you can use the encoder on your system...
I still remember using your nice GUI for bbmpeg. I still use it once in a while. It's really nice.
I'll keep you updated on my tests tonight.
Cheers and thanks


All times are GMT -5. The time now is 07:18 PM  —  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.