Log in

View Full Version : Solved some mencoder issues// Now crashing with avs scripts,in xvid DLLs(xvidvfw.dll)


mordorspfc
26th March 2007, 23:48
When i try without the matrix, the encoding runs fine.

But with the matrix i get that DOS error "Invalid command or file name" . Like when you type anything and press enter, in DOS mode.

Command i used along with the error (its in portuguese):

C:\Download\Mencoder>mencoder.exe
movie0.avs -o movieee.m2v -ovc lavc -nosound -lavcopts vcodec=mpeg2video:vqmin=1:vqscale=3:vrc_maxrate=9800:vrc_buf_size=1835:keyint=15:vqcomp=1.0:vmax_b_frames=2:vb_strategy=0:vb_qfactor=1.5:vb_qoffset=0:preme=2:dia=6:predia=6:mbd=2:mbcmp=262:ildctcmp=262:precmp=262:cmp=256:subcmp=262:mv0:trell:cbp:psnr:aspect=4/3:inter_matrix=20,20,20,20,21,22,23,24,20,20,20,20,21,22,24,25,20,20,20,21,22,24,26,28,20,20,21,22,24,27,29,32,21,21,22,24,28,31,34,39,22,22,24,27,31,37,42,49,23,24,26,29,34,42,52,60,24,25,28,32,39,49,60,80:intra_matrix=8,16,16,16,17,17,18,19,16,16,16,16,17,18,19,20,16,16,16,17,18,19,20,22,16,16,17,18,19,21,23,26,17,17,18,19,21,24,27,31,17,18,19,21,24,28,33,40,18,19,20,23,27,33,42,51,19,20,22,26,31,40,51,64 -of rawvideo -ffourcc MPG2
Comando ou nome do arquivo invalido


Like i said, when i do this same command only without the matrix, it works, but the matrix is essential.

There must be a way to fix this.

Any clue ?

Another thing thats is annoying is that when the encoding finishes , popup that window with the Close and Details buttons. Details says "Mencoder has caused an Invalid Page Fault in Kernel32.dll." I have to reboot using the reset button.
But when it happens the file is already encoded.

Thats it, thanks folks

Regards

danpos
27th March 2007, 00:37
@mordorspfc

Take a look at this Sagittaire's post (http://forum.doom9.org/showthread.php?p=894139#post894139). ;)

See ya,

mordorspfc
27th March 2007, 03:48
Thanks danpos, im trying a very low bitrate conversion, and the profile is for high bitrate, but the functions are well explained. Only thing is i dont know how to use it, its not just copy to a txt file and rename .bat , right ? Cause this didnt worked.

Regards

Edit: the error is (when i rename .bat and run it): "Parsing option on the command line: -ofps"

45tripp
27th March 2007, 23:13
rename?

you have to edit the batch file to contain the values you want,
and comment out/remove flags you don't want to use.

I guess the sugestion is that if you enter the matrices in the fashion sagitaire does, it will work.
If so, try this in a batch:

set E_INTER=20,20,20,20,21,22,23,24,20,20,20,20,21,22,24,25,20,20,20,21,22,24,26,28,20,20,21,22,24,27,29,32,21,21,22,24,28,31,34,39,22,22,24,27,31,37,42,49,23,24,26,29,34,42,52,60,24,25,28,32,39,49,60,80

set E_INTRA=8,16,16,16,17,17,18,19,16,16,16,16,17,18,19,20,16,16,16,17,18,19,20,22,16,16,17,18,19,21,23,26,17,17,18,19,21,24,27,31,17,18,19,21,24,28,33,40,18,19,20,23,27,33,42,51,19,20,22,26,31,40,51,64

mencoder movie0.avs -o movieee.m2v -ovc lavc -nosound -lavcopts vcodec=mpeg2video:vqmin=1:vqscale=3:vrc_maxrate=9800:vrc_buf_size=1835:keyint=15:vqcomp=1.0:vmax_b_frames=2:vb_strategy=0:vb_qfactor=1.5:vb_qoffset=0:preme=2:dia=6:predia=6:mbd=2:mbcmp=262:ildctcmp=262:precmp=262:cmp=256:subcmp=262:mv0:trell:cbp:psnr:aspect=4/3:inter_matrix=20,20,20,20,21,22,23,24,20,20,20,20,21,22,24,25,20,20,20,21,22,24,26,28,20,20,21,22,24,27,29,32,21,21,22,24,28,31,34,39,22,22,24,27,31,37,42,49,23,24,26,29,34,42,52,60,24,25,28,32,39,49,60,80:intra_matrix=8,16,16,16,17,17,18,19,16,16,16,16,17,18,19,20,16,16,16,17,18,19,20,22,16,16,17,18,19,21,23,26,17,17,18,19,21,24,27,31,17,18,19,21,24,28,33,40,18,19,20,23,27,33,42,51,19,20,22,26,31,40,51,64 -of rawvideo -ffourcc MPG2

But it's the same thing you originally tried and I doubt it.
nice batch from sagitaire though.

My suggestion is you change your mencoder version

mordorspfc
28th March 2007, 05:02
@Immersion
Thanks for helping.

I mean, i copy and paste sagittarie's mencoder profile into a .txt file, and renamed it from
.txt to .bat, that's why i said "rename".

By testing your suggestion, i had the idea (dont know why i had it) of put the matrix
numbers between quotations, and worked, both ways :

mencoder.exe movie0.avs -o moviee.m2v -ovc lavc -nosound -lavcopts vcodec=mpeg2video:vqmin=1:vqscale=3:vrc_maxrate=9800:vrc_buf_size=1835:keyint=15:vqcomp=1.0:vmax_b_frames=2:vb_strategy=0:vb_qfactor=1.5:vb_qoffset=0:preme=2:dia=6:predia=6:mbd=2:mbcmp=262:ildctcmp=262:precmp=262:cmp=256:subcmp=262:mv0:trell:cbp:psnr:aspect=4/3:inter_matrix="8,8,8,8,9,10,11,12,8,8,8,8,9,11,11,13,8,8,9,9,10,12,14,15,8,8,9,10,12,14,16,18,9,9,10,12,15,17,20,23,10,11,12,14,17,22,27,33,11,11,14,16,20,27,35,44,12,13,15,18,23,33,44,64":intra_matrix="8,8,8,8,9,9,10,10,8,8,8,8,9,9,10,10,8,8,8,9,9,10,10,11,8,8,9,9,10,10,11,13,9,9,9,10,11,12,13,15,9,9,10,10,12,14,16,20,10,10,10,11,13,16,21,25,10,10,11,13,15,20,25,32" -of rawvideo -ffourcc MPG2

and

set E_INTER="20,20,20,20,21,22,23,24,20,20,20,20,21,22,24,25,20,20,20,21,22,24,26,28,20,20,21,22,24,27,29,32,21,21,22,24,28,31,34,39,22,22,24,27,31,37,42,49,23,24,26,29,34,42,52,60,24,25,28,32,39,49,60,80"

set E_INTRA="8,16,16,16,17,17,18,19,16,16,16,16,17,18,19,20,16,16,16,17,18,19,20,22,16,16,17,18,19,21,23,26,17,17,18,19,21,24,27,31,17,18,19,21,24,28,33,40,18,19,20,23,27,33,42,51,19,20,22,26,31,40,51,64"

mencoder movie0.avs -o movieee.m2v -ovc lavc -nosound -lavcopts vcodec=mpeg2video:vqmin=1:vqscale=3:vrc_maxrate=9800:vrc_buf_size=1835:keyint=15:vqcomp=1.0:vmax_b_frames=2:vb_strategy=0:vb_qfactor=1.5:vb_qoffset=0:preme=2:dia=6:predia=6:mbd=2:mbcmp=262:ildctcmp=262:precmp=262:cmp=256:subcmp=262:mv0:trell:cbp:psnr:aspect=4/3:inter_matrix=%E_INTER%:intra_matrix=%E_INTRA% -of rawvideo -ffourcc MPG2

Sagittaire's batch file is working now, very nice file indeed. I still didnt tried other values
because of that other issue, read below (i think its the last one).

There is this kernel32.dll error that i described, mencoder crashes when finishing an
encoding or a pass. So, using sagittaire's profile, i found that this error do not allow me
to make 2 or 3 passes conversions, Mencoder stop working after the first pass. If i drag
down the error window (the one with the Close and Details buttons) and "hide" it near
the clock/tray icons , i can continue using the pc, but when i reboot, it freezes, so i have
use the reset cpu button, and i already have to backup the registry, in DOS mode, because
it damaged something, and was not initializing Windows anymore.
I need bad to fix this.

Ill try another mencoder version, im using the latest i think.

Sugestions for this prob, anyone ??

Regards.

45tripp
28th March 2007, 16:52
I'd try
in the following order

1.get precompiled mencoder from sherpya http://oss.netfarm.it/mplayer-win32.php

if not solved
2.replace kernel32.dll

if still not solved
3.format

mordorspfc
29th March 2007, 21:17
Damn.
Tried the precompiled for athlon, another version that comes with a tool called Super, and replacing kernel32.dll (with one i found on the DLLs site). Nothing worked.

Its strange, because it only crashes in the end, the encoding runs fine. At the moment PSNR values shows up, mencoder crash. I thought that maybe could be PSNR, so i removed it from the command line, but didnt worked .

What happens after PSNR values shows up ? DOS prompt window closes ?

I cant format right now, too much stuff in the hd.

Thanks a lot anyway.

45tripp
29th March 2007, 22:26
What happens after PSNR values shows up ? DOS prompt window closes ?

I cant format right now, too much stuff in the hd.


Yes.

I've assumed the crash is not file specific.
If it only happens with one file, then you could attempt 'fixing' the source I guess, or better yet, let it go.

Pookie
30th March 2007, 18:32
Try this mencoder version. Seems to work on multipass mpeg

http://www.mplayerhq.hu/MPlayer/releases/win32/MPlayer-mingw32-1.0pre8.zip

foxyshadis
31st March 2007, 05:35
Two possibilities: Overheating is causing a very specific instability that always causes the same error in the kernel. Unlikely. Much more likely is a bad driver interaction. Mencoder has no kernel-level code so it must be a driver acting up. For starters I'd disable anything intrusive, like antivirus (norton and mcafee are well-known for destabilizing systems), anti-spyware, firewalls, and even daemon tools' SPTI, in that order, to rule them out. By disabling, I mean uninstalling, either automatically or through the registry. I like the registry because it's very easy to make a backup, remove a driver, reboot, and restore if it wasn't the one, but it's easy to make a mistake that leaves you hunting for a windows cd. All drivers are held in [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services] if you want to give that a shot. Other possible culprits could include viruses, rootkits, and pretty much any other driver on the system.

Of course, updating all relevant software and drivers that you can would be a good idea as well, even given that updates have a small likelihood of breaking more than they fix. (-.-)

mordorspfc
31st March 2007, 08:16
Ok guys, first, thanks so much for the help.

Now, couldnt have been antivirus or firewall cause i dont use any of it. I was going to look at the registry like fosyshadis said, but just before it, something came to my mind, something that should have been one of the first things that i had done. To try to encode without using a script.

Instead of
mencoder script.avs -o output.m2v ...............
i use
mencoder test.avi -o output.m2v ............

Man, i felt stupid, and i felt even more stupid when it worked. I was so woried about more complex issues, that didnt thought that could be some conflict with the script or plugins/filters. Really sorry for that.

I installed a non official win9x service pack, with a kernel update, and even downloaded GDB and was trying to debug mencoder. lol

But anyway, it isnt conflicting with avisynth script itself, cause i just tried only with the line "AviSource("C:\Download\amen\test.avi",false) in the script, and worked, so its surely some filter or plugin.

I was using the HighQuality script from DIKO (a great encoding tool), its a free prog, but dont know if its right to post the script.

Ill see if i can find what plugins are creating the error, by adding one by one to the script.

Thanks a lot for the support.

Best regards

foxyshadis
31st March 2007, 09:11
Oh, 98? Forget what I said then, practically anything can damage the kernel in 98, unfortunately. =o And the method I mentioned doesn't apply to 9x.

You wouldn't happen to be using fft3dgpu, would you?

mordorspfc
31st March 2007, 10:20
I thought i had mention i was using win 98, but not, my bad.

And negative, im not using this filter.

mordorspfc
2nd April 2007, 00:19
I said that it was working fine with avisynth scripts, but its not.

But now, its not the kernel32.dll anymore (this one should have been with some filter/plugin). When i try to run with this script (just for test purposes) :

Avisource("C:\k\teste.avi",false)

mencoder.exe cause a page fault in XVIDVFW.DLL. Without the script, putting teste.avi instead of script.avs, in the command line , works fine. So it must be something with mencoder+avisynth scripts. At least now i dont have to reboot, when i click Close , it closes.

Strange thing is, even with a DIVX source, i get the exactly same crash, in the xvid DLLs.

I tried several combinations of xvid DLL files, wich i found in Celtic druid's ftp http://tirnanog.fate.jp/mirror/XviD/

With one of the xvidvfw.dll files i found in there, after i replace it in my system folder, the crash started to happen with xvidcore.dll . I replaced xvidcore.dll with others versions of the ftp, but none worked. I think i used almost all DLLs from there.

I tested with diferent mencoder versions too.

If anyone who has mencoder + avs scripts working under windows (any version) , wants to send your xvid DLLs (xvidvfw.dll, xvidcore.dll and xvid.ax ) i aprecciate.

Any othe ideas ?

Regards,

mordorspfc
2nd April 2007, 07:50
I think i managed to fix this.

It was a matter of find the right xvid version to the right mencoder version.

In sherpya site he informs wich xvid version is supported by his precompiled binaries, so thanks to Immersion for pointing me that site.