Log in

View Full Version : Getting error with xvid_encraw in megui ..


Pages : 1 [2]

krosswindz
21st December 2008, 16:49
^ does this test program from this (http://forum.doom9.org/showthread.php?p=1224540#post1224540) post work fine for you?

Lenchik
21st December 2008, 17:17
seems to be working fine
doubleclicking makes no errors (closes too fast)
running from commandline like this seems to be fine too.
C:\Documents and Settings\Администратор>cd /d "E:\Fotki-20081211-Дурдинъ"

E:\Fotki-20081211-Дурдинъ>aviwriter_test.exe
Attempting to create temp file 000020D9E3FE8DC0.avi... Success (000007E8)
Re-opening file with no buffering and overlapped I/O... Success (000007F4)

I think the problem is in a conversion between codepages like Unicode, cp1251, ANSI, cp866 and so on...

Usage of only english filenames and foldernames for videos, is a temporary solution, of course.

squid_80
22nd December 2008, 05:05
Yes unicode filenames aren't being handled correctly.
-[NoImage] xvid [error]: Couldn't init AVI file for writing (E:\Fotki-20081211-Дурдинъ\DSCN7271--yuv.avi)
-[NoImage] AVIOutputFile::Init Error: Unable to open file "E:\Fotki-20081211-Ao?aeiu\DSCN7271--yuv.avi" for write: Системе не удается найти указанный путь.

Could you translate that error message (in bold) for me?

krosswindz
22nd December 2008, 05:35
^ http://translate.google.com/translate_t?sl=fr&tl=en#ru|en|%D0%A1%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B5%20%D0%BD%D0%B5%20%D1%83%D0%B4%D0%B0%D0%B5%D1%82%D1%81%D1%8F%20%D0%BD%D0%B0%D0%B9%D1%82%D0%B8%20%D1%83%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%BD%D1%8B%D0%B9%20%D0%BF%D1%83%D1%82%D1%8C gives this "The system can not find the specified path"

@squid any idea on the issue i am facing :(

Lenchik
22nd December 2008, 14:55
Could you translate that error message (in bold) for me?
^ http://translate.google.com/translate_t?sl=fr&tl=en#ru|en|%D0%A1%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D0%B5%20%D0%BD%D0%B5%20%D1%83%D0%B4%D0%B0%D0%B5%D1%82%D1%81%D1%8F%20%D0%BD%D0%B0%D0%B9%D1%82%D0%B8%20%D1%83%D0%BA%D0%B0%D0%B7%D0%B0%D0%BD%D0%BD%D1%8B%D0%B9%20%D0%BF%D1%83%D1%82%D1%8C gives this "The system can not find the specified path"

Yes. Translation is correct.

ankurs
22nd December 2008, 19:01
ankurs: Please grab this small test program (http://www.digitalfoundry.org/andrew/aviwriter_test.exe) and run it from the command line. Paste the output here.
Anyone else wants to try it, feel free but don't clog up the thread unless it reports a failed message.

first off all really sorry that i could'nt be around when you posted this , was busy with real life ..

well i've tried running through command line but it only opens for what about half a second and suddenly vanishes ( the dos windows ) ... any help ?

i can notice a sentence popping up but even before i've even read a single word it vanishes ..

Attempting to create temp file 00000508DB38670A.avi... Success (000007E8)
Re-opening file with no buffering and overlapped I/O... Success (000007F4)
What does this mean? What has been tested?

It tries to create an output avi file using the same methods as xvid_encraw, to try and find out why it doesn't work for ankurs. Your result is normal.

still didnt work .

@squid I have second setup of megui and I see the same error in this thread. I just downloaded the tool and ran it and I get the following error.


Attempting to create temp file 00036304C07AAECB.avi... Success (000007E8)
Re-opening file with no buffering and overlapped I/O... Failed
Error Message: The process cannot access the file because it is being used by an
other process.


I'm skeptical if disabling it actually removes the nasty hooks it puts in place.
If Ankurs comes back and tells me he has Symantec installed as well, I'm going to punch something. Until then I'll see if I can find a different solution.

nopes i dont have symantec anywhere near my machine sir !

I will try to talk to my admins and see if they can provide me with a windows xp sp3 image without symantec installed. That would be something very unlikely that they would have.

any updates ?

ankurs
22nd December 2008, 19:07
ok after trying like nuts and hitting printscreen button on my keyboard like nuts this is the error which i got ...

Attempting to create temp file 00036304C07AAECB.avi... Success (000007E8)
Re-opening file with no buffering and overlapped I/O... Failed
Error Message: The process cannot access the file because it is being used by another process.

??

krosswindz
23rd December 2008, 01:32
^ You can run it from the command prompt instead of double clicking it. start->run->cmd

Lenchik
23rd December 2008, 09:09
Yes unicode filenames aren't being handled correctly.

Is it a problem in MeGUI, xvid_encraw, cmd or Windows? Is there a solution other than using only english filenames?
May be there is a build that supports filenames correctly :confused:

By the way, x264 encoding of files from that folder goes with no errors.

ankurs
23rd December 2008, 12:21
^ You can run it from the command prompt instead of double clicking it. start->run->cmd

i already did , same problem , gets closed in a whimp !

Is it a problem in MeGUI, xvid_encraw, cmd or Windows? Is there a solution other than using only english filenames?
May be there is a build that supports filenames correctly :confused:

By the way, x264 encoding of files from that folder goes with no errors.

x264 works all fine for me as well ... seemingly windows or xvid_encraw , windows might be the better bet !

cweb
24th December 2008, 08:57
i already did , same problem , gets closed in a whimp !



x264 works all fine for me as well ... seemingly windows or xvid_encraw , windows might be the better bet !
cmd shouldn't get closed.. it's a command prompt. Unless you (or some other application) are closing it, it doesn't normally close on its own...

ankurs
24th December 2008, 16:27
cmd shouldn't get closed.. it's a command prompt. Unless you (or some other application) are closing it, it doesn't normally close on its own...

well it does get closed even when i dont close it :confused:

krosswindz
24th December 2008, 21:09
well it does get closed even when i dont close it :confused:

I have no idea what you are doing because I ran it from the command prompt it doesnt close. I hope you are not passing it as an argument to cmd :confused:

cweb
24th December 2008, 22:22
well it does get closed even when i dont close it :confused:

when you do a dir in your command prompt, does it get closed too? It really shouldn't...

Lenchik
25th December 2008, 05:02
About command promt
http://www.google.com/search?rls=ru&q=how+to+run+from+command+promt&num=100&ie=utf-8&oe=utf-8
http://www.amset.info/windows/dosprompt.asp
http://www.sureshotsoftware.com/articles/commandline.html

ankurs
27th December 2008, 23:49
yeah well it still gets closed lenchik ^^

ankurs
20th January 2009, 12:02
bump ! still no help ?

jeffy
20th January 2009, 15:36
http://www.sophos.com/security/analyses/viruses-and-spyware/w32alcraa.html
http://www.sophos.com/support/disinfection/alcra.html

http://support.microsoft.com/kb/896667
http://phorums.com.au/showthread.php?t=209049

ankurs
21st January 2009, 15:56
http://www.sophos.com/security/analyses/viruses-and-spyware/w32alcraa.html
http://www.sophos.com/support/disinfection/alcra.html

http://support.microsoft.com/kb/896667
http://phorums.com.au/showthread.php?t=209049


http://i39.tinypic.com/152djdd.jpg

still no use :confused:

jeffy
21st January 2009, 19:25
Thanks for trying. Really interesting. Sending a PM soon.

ankurs
21st January 2009, 22:58
replied to your pm ^

ankurs
22nd January 2009, 13:43
Jeff's been helping me for the past 2 days in emails with .bat files for listing the registry files , program file contents and cmd permission's etc .

Jeff analyzed the .logs and suggested some things to do and jeff's suggestion worked , well thing is symantec was uninstalled but somehow symantec live update got installed seperately and symantec's files were there in the registry . Also , when i opened symantec live update(which i never knew was there on the server in the first place ) it had symantec setup there and started installing symantec files initially so that it could update them . I let it do it and then , once it was all done did a complete uninstall all over again off symantec + live update , restarted the box and wola !! its solved . Ran a scan with ccleaner and cleaned the registry with it and wola ! now xvid works fine :) .

Answer after months off agony = symantec = UTTER PIECE OF CRAP !

Problem''s solved now , thanks a lot for your help everyone :) . Mods can close this thread now if they want too .

Regards .

cweb
22nd January 2009, 14:07
I'm glad you found the solution eventually!

wickedrami
27th January 2009, 13:04
I've got the same problem, No symantec installed..
Getting 16mb output files in the 2nd pass via both gknot and megui.. ;(

Halp!

Kurtnoise
27th January 2009, 13:27
GK relies on vfw encoders whereas MeGUI only cli tools...So, this is quite strange that you have the same results.

Maybe some conflict between both xvidcore.dll libs. I doubt that but who knows.

jeffy
27th January 2009, 15:50
@wickedrami: Post your script, please. Was the .stats file created as shown in the log (= does it exist)? Do you have any resident antivirus running? Try a small file and post GK log as well.

Do you have the MeGUI option in Options - Settings - Delete intermediate files checked or unchecked?

Sharktooth
30th January 2009, 02:27
GK relies on vfw encoders whereas MeGUI only cli tools...So, this is quite strange that you have the same results.

Maybe some conflict between both xvidcore.dll libs. I doubt that but who knows.
i doubt. the xvid_encraw version that comes with megui will use the xvidcore dll included in megui simply coz it is placed in the same dir as encraw.

krosswindz
30th January 2009, 17:15
I am not sure if this is an issue cause of Symantec as I have the same issue on one my box. The other box running the same configuration with symantec doesnt give any issues, nor does another rip setup running inside a VM. When I run the test application that squid provided in the broken box, it fails too.

wickedrami
4th February 2009, 21:08
@wickedrami: Post your script, please. Was the .stats file created as shown in the log (= does it exist)? Do you have any resident antivirus running? Try a small file and post GK log as well.

Do you have the MeGUI option in Options - Settings - Delete intermediate files checked or unchecked?

I doubt its got anything to do with the script as the same script worked flawlessly on GK.. Not a GK fan here, so I'd prefer a working megui any given day..

.stats file.. It was created.. Deleted.. You need it? I'll run one again.. nd post it here

No antivirus installed.. Hell even the firewalls disabled lol

For some reason, small files work.. Even the bigger ones at times.. It's not stable.. 3\4 times it fails, with a funny sized avi file, nd an imcomplete log.. Here's what the log says: http://forum.doom9.org/showthread.php?p=1245637#post1245637

Delete Intermediate files is unchecked in megui.. I can give u the RDC if needed.. ;)

jeffy
5th February 2009, 00:44
I don't want to diagnose it via RDC, sorry. But there is something interesting, if you look at the log, the time between 10:41:01 and 12:43:16 is a really long period of time. How big is that "funny sized" avi file?

When the job fails again, do the following:

Create a new text file named "Listing.bat". Paste the following line into it and save it to the folder where the intermediate files are, then double click it and paste the file contents here.
dir /a/s/on>Dir_listing.txt

The .stats file is not important ATM. Are you overclocking?

squid_80
5th February 2009, 01:35
Getting 16mb output files in the 2nd pass via both gknot and megui.. ;(
I doubt its got anything to do with the script as the same script worked flawlessly on GK..
Does gordian knot work correctly or not? First you say it doesn't, now you say it does.

Regardless please post the full avs script.

wickedrami
5th February 2009, 17:00
I don't want to diagnose it via RDC, sorry. But there is something interesting, if you look at the log, the time between 10:41:01 and 12:43:16 is a really long period of time. How big is that "funny sized" avi file?

When the job fails again, do the following:

Create a new text file named "Listing.bat". Paste the following line into it and save it to the folder where the intermediate files are, then double click it and paste the file contents here.
dir /a/s/on>Dir_listing.txt

The .stats file is not important ATM. Are you overclocking?

Here you go.. The size of the funny file is in the log below too I believe.. Nope, not overclocking

Volume in drive D is Unnamed
Volume Serial Number is 7EBB-5532

Directory of D:\x

02/05/2009 07:38 AM <DIR> .
02/05/2009 07:38 AM <DIR> ..
02/05/2009 07:38 AM 0 Dir_listing.txt
02/05/2009 07:38 AM 27 Listing.BAT
02/04/2009 12:40 PM 694,726,144 test T80 3_2ch 448Kbps DELAY 0ms.ac3
02/04/2009 12:40 PM 1,170,021,258 test T89 DELAY 0ms.dts
02/04/2009 10:26 PM 16,777,216 test.avi
02/04/2009 04:31 PM 1,177 test.avs
02/04/2009 12:40 PM 1,595,325 test.d2v
02/04/2009 10:26 PM 6,975,189 test.stats
02/04/2009 07:43 AM <DIR> SAGE.50.ACCOUNTS.2009.V15-ADDICTION
8 File(s) 1,890,096,336 bytes

Directory of D:\x\SAGE.50.ACCOUNTS.2009.V15-ADDICTION

02/04/2009 07:43 AM <DIR> .
02/04/2009 07:43 AM <DIR> ..
02/04/2009 07:43 AM 4,732 addiction.nfo
02/04/2009 09:35 AM 15,000,000 add-sa09.001
02/04/2009 09:26 AM 15,000,000 add-sa09.002
02/04/2009 09:12 AM 15,000,000 add-sa09.003
02/04/2009 09:27 AM 15,000,000 add-sa09.004
02/04/2009 09:35 AM 15,000,000 add-sa09.005
02/04/2009 09:07 AM 15,000,000 add-sa09.006
02/04/2009 09:27 AM 15,000,000 add-sa09.007
02/04/2009 09:18 AM 15,000,000 add-sa09.008
02/04/2009 09:32 AM 15,000,000 add-sa09.009
02/04/2009 09:36 AM 15,000,000 add-sa09.010
02/04/2009 09:37 AM 15,000,000 add-sa09.011
02/04/2009 09:37 AM 15,000,000 add-sa09.012
02/04/2009 09:32 AM 15,000,000 add-sa09.013
02/04/2009 08:56 AM 15,000,000 add-sa09.014
02/04/2009 09:39 AM 15,000,000 add-sa09.015
02/04/2009 09:38 AM 15,000,000 add-sa09.016
02/04/2009 09:34 AM 15,000,000 add-sa09.017
02/04/2009 09:29 AM 15,000,000 add-sa09.018
02/04/2009 09:29 AM 15,000,000 add-sa09.019
02/04/2009 09:37 AM 15,000,000 add-sa09.020
02/04/2009 09:24 AM 15,000,000 add-sa09.021
02/04/2009 09:36 AM 15,000,000 add-sa09.022
02/04/2009 09:29 AM 15,000,000 add-sa09.023
02/04/2009 09:22 AM 15,000,000 add-sa09.024
02/04/2009 09:37 AM 15,000,000 add-sa09.025
02/04/2009 08:44 AM 15,000,000 add-sa09.026
02/04/2009 09:26 AM 15,000,000 add-sa09.027
02/04/2009 09:19 AM 15,000,000 add-sa09.028
02/04/2009 08:52 AM 15,000,000 add-sa09.029
02/04/2009 09:30 AM 15,000,000 add-sa09.030
02/04/2009 09:39 AM 15,000,000 add-sa09.031
02/04/2009 09:39 AM 15,000,000 add-sa09.032
02/04/2009 09:33 AM 15,000,000 add-sa09.033
02/04/2009 09:34 AM 15,000,000 add-sa09.034
02/04/2009 09:25 AM 15,000,000 add-sa09.035
02/04/2009 09:11 AM 15,000,000 add-sa09.036
02/04/2009 09:31 AM 15,000,000 add-sa09.037
02/04/2009 09:31 AM 15,000,000 add-sa09.038
02/04/2009 08:57 AM 15,000,000 add-sa09.039
02/04/2009 09:26 AM 15,000,000 add-sa09.040
02/04/2009 09:18 AM 15,000,000 add-sa09.041
02/04/2009 09:31 AM 15,000,000 add-sa09.042
02/04/2009 09:24 AM 15,000,000 add-sa09.043
02/04/2009 07:43 AM 464,196 add-sa09.044
02/04/2009 07:43 AM 1,012 add-sa09.sfv
46 File(s) 645,469,940 bytes

Total Files Listed:
54 File(s) 2,535,566,276 bytes
5 Dir(s) 82,223,534,080 bytes free


Does gordian knot work correctly or not? First you say it doesn't, now you say it does.

Regardless please post the full avs script.

Well it failed that once, cuz I ran the script in gknot without deleting the intermediate files from megui.. However Gknot does work.. ;)

The script:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools-v1.5.5.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\degrainmedian.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Vinverse.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\AGC.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpenFaster.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\ylevelsS.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\soothe.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\DeHalo_alpha.avs")

DGDecode_mpeg2source("D:\x\test.d2v",cpu=2,info=3,idct=4)
HDRAGC()
vinverse()
crop()
dull = last.LanczosResize() # Lanczos (Sharp)
DeHalo_alpha()
DeGrainMedian()
YLevelsS().Tweak()
sharp = dull.SeeSaw()
soothe()
ConvertToYV12()

Parameters not included.. but hope u get the picture

jeffy
5th February 2009, 20:56
DGDecode_mpeg2source("D:\x\test.d2v",cpu=2,info=3,idct=4)
HDRAGC()
vinverse()
crop()
dull = last.LanczosResize() # Lanczos (Sharp)
DeHalo_alpha(dull?)
DeGrainMedian(dull?)
dull.?YLevelsS().Tweak()
sharp = dull.SeeSaw()
soothe(sharp?)
ConvertToYV12()
You hopefully are using the values marked with the ? somewhere. You should have provided at least these parameters, which are crucial. The script in this form does create unused sharp and dull variables otherwise. Might it cause some error? Unsure.

What happens when you try a simple script like this? Does it fail as well?
DGDecode_mpeg2source("D:\x\test.d2v",cpu=2,info=3,idct=4)

wickedrami
5th February 2009, 22:46
You hopefully are using the values marked with the ? somewhere. You should have provided at least these parameters, which are crucial. The script in this form does create unused sharp and dull variables otherwise. Might it cause some error? Unsure.

Here are the parameters:
DGDecode_mpeg2source("D:\x\test.d2v",cpu=2,info=3,idct=4)
HDRAGC(min_sat=0.0,max_sat=1.7,coef_sat=0.85,min_gain=12.0,max_gain=0.1,coef_gain=0.01,shift_u=-5,shift_v=-7)
vinverse()
crop( 4, 74, -4, -74)
dull = last.LanczosResize(656,272) # Lanczos (Sharp)
DeHalo_alpha((rx=2.0,ry=2.0)
DeGrainMedian(mode=4)
YLevelsS(8, 1.05, 255, 0, 255).Tweak(bright=-34,cont=0.05,hue=-4,sat=1.85)
sharp = dull.SeeSaw(NRlimit=0, NRlimit2=5, Sstr=2.22, Szp=1, Slimit=9, Sdamplo=16, Spower=1, sootheT=95, SdampHi=39)
soothe(sharp,dull,30)
ConvertToYV12()


Like I said before, it works in Gknot.. I doubt the script is an issue here..


What happens when you try a simple script like this? Does it fail as well?
DGDecode_mpeg2source("D:\x\test.d2v",cpu=2,info=3,idct=4)

Well not as simple as that.. I've tried something as simple as just cropping, resizing and spresso.. It fails :(

The log u asked for.. Does it help? :confused:

jeffy
6th February 2009, 00:16
DGDecode_mpeg2source("D:\x\test.d2v",cpu=2,info=3,idct=4)
HDRAGC(min_sat=0.0,max_sat=1.7,coef_sat=0.85,min_gain=12.0,max_gain=0.1,coef_gain=0.01,shift_u=-5,shift_v=-7)
vinverse()
crop( 4, 74, -4, -74)
dull = last.LanczosResize(656,272) # Lanczos (Sharp)
DeHalo_alpha((rx=2.0,ry=2.0)
DeGrainMedian(mode=4)
YLevelsS(8, 1.05, 255, 0, 255).Tweak(bright=-34,cont=0.05,hue=-4,sat=1.85)
sharp = dull.SeeSaw(NRlimit=0, NRlimit2=5, Sstr=2.22, Szp=1, Slimit=9, Sdamplo=16, Spower=1, sootheT=95, SdampHi=39)
soothe(sharp,dull,30)
ConvertToYV12()
Lines in bold are not used in the final result. Thanks for the log, but it just proved that the output avi file was changed at the same time as the stats file. Are you using SSE3 version of RemoveGrain? Simply said, is there a file named RemoveGrainSSE3.dll in your plugins folder? (FYI caused weird errors: http://forum.doom9.org/showthread.php?t=129736)

wickedrami
6th February 2009, 23:01
DGDecode_mpeg2source("D:\x\test.d2v",cpu=2,info=3,idct=4)
HDRAGC(min_sat=0.0,max_sat=1.7,coef_sat=0.85,min_gain=12.0,max_gain=0.1,coef_gain=0.01,shift_u=-5,shift_v=-7)
vinverse()
crop( 4, 74, -4, -74)
dull = last.LanczosResize(656,272) # Lanczos (Sharp)
DeHalo_alpha((rx=2.0,ry=2.0)
DeGrainMedian(mode=4)
YLevelsS(8, 1.05, 255, 0, 255).Tweak(bright=-34,cont=0.05,hue=-4,sat=1.85)
sharp = dull.SeeSaw(NRlimit=0, NRlimit2=5, Sstr=2.22, Szp=1, Slimit=9, Sdamplo=16, Spower=1, sootheT=95, SdampHi=39)
soothe(sharp,dull,30)
ConvertToYV12()
Lines in bold are not used in the final result. Thanks for the log, but it just proved that the output avi file was changed at the same time as the stats file. Are you using SSE3 version of RemoveGrain? Simply said, is there a file named RemoveGrainSSE3.dll in your plugins folder? (FYI caused weird errors: http://forum.doom9.org/showthread.php?t=129736)

Deleted the .dll and encoded again.. Still getting the error :(
Thnx for ur efforts to help man.. ;)

Sorry for late response.. I was encoding again to find out.. :)
Just did a x264 in megui, the same script and it worked.. So i guess xvid is the issue here.. :(

Ps: Could u comment on why the lines u specified in the script have no effect on the output

jeffy
7th February 2009, 00:03
Ps: Could u comment on why the lines u specified in the script have no effect on the output
All the lines before this line end up unused in the end, because you don't use the results.
sharp = dull.SeeSaw(

Unless specified the function uses the last clip (the result of the previous operation).
http://avisynth.org/mediawiki/User_defined_script_functions
If the function expects a video clip as its first argument, and that argument is not supplied, then the clip in the special last variable will be used.

So:
DeHalo_alpha(last,rx=2.0,ry=2.0)
DeGrainMedian(last,mode=4)
YLevelsS(last,8, 1.05, 255, 0, 255).Tweak(bright=-34,cont=0.05,hue=-4,sat=1.85)
but sharp = dull.SeeSaw not sharp = last.SeeSaw, so you are using only the dull clip until the end.

wickedrami
7th February 2009, 19:10
^Thnx, I get it now.

TheCreamCrackerBoy
20th June 2009, 15:54
Hello to all,

I can't encode with xvid_encraw at MeGui. Even in the first pass it can't do it. When xvid_encraw opens, suddenly I get that window "xvid_encraw.exe has encountered a problem and needs to close. We are sorry for the inconvenience".

I tried to change Encoder Settings (XviD: 2 pass HQ / XviD: 2 pass HQ HomeTheatre / Xvid: 2pass FAST Home Theatre). It doesn't solve the problem.

Changing the output container from AVI to MKV won't solve the problem either.

MeGui's log is the following:

[Information] Log
-[Information] Versions
--[NoImage] MeGUI Version : 0.3.1.1045
--[NoImage] OS : Windows XP Professional x86 SP3 (5.1.196608.2600)
--[NoImage] Framework used : 2.0 (2.0.50727.42)
-[Information] Hardware
--[NoImage] CPU : Intel(R) Pentium(R) M processor 1.60GHz
-[Information] Log for job3 (video, test.Avs -> test.avi)
--[Information] [20/06/2009 11:49:12] Started handling job
--[Information] [20/06/2009 11:49:12] Preprocessing
--[NoImage] Job commandline: "C:\Program Files\megui\tools\xvid_encraw\xvid_encraw.exe" -i "C:\temp\test.Avs" -single -cq 2 -smoother 0 -max_key_interval 250 -nopacked -quality 5 -vhqmode 0 -closed_gop -lumimasking -notrellis -nochromame -max_bframes 1 -bquant_ratio 162 -bquant_offset 0 -par 1:1 -threads 1 -avi "C:\temp\test.avi"
--[Information] [20/06/2009 11:49:13] Encoding started
--[NoImage] Standard output stream
--[NoImage] Standard error stream
--[Information] [20/06/2009 11:49:16] Job completed


The app "aviwriter_test.exe" in this very forum works ok.

AVS Script is simple:

LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\VSFilter.dll")
DirectShowSource("C:\temp\test.mkv")
#This MKV file has 1 video stream, 1 audio stream and chapters, no subtitles.
Lanczos4Resize(640,352)
AddBorders(0,64,0,64)
TextSub("C:\temp\teste.Portugues.srt")
Lanczos4Resize(320,240)
Trim (0,720)
#This latest line is for testing purposes only.

I don't use Symantec; my hardware is descripted at the end of this post.

VirtualDub opens and encodes the script (AVI XviD output). I am just trying to compare Virtualdub vs xvid encraw, that's all.

Note: I tried to run MeGUI as Administrator. It didn't work, I got the same error.

I read this entire post (so far, 5 pages?). Please let me know if I missed something.

Thank you,
TheCreamCrackerBoy.

Software/Hardware:
Notebook Acer Travelmate 4150
Intel Pentium M 1.6 GHz processor (no dual-core, core2duo or similars)
2 GB Memory RAM
Windows XP with Service Pack 3
Avira AntiVir Personal (free)

Sharktooth
23rd June 2009, 18:50
memtest86+ and prime95 are your friends.
do some hardware checks with those softwares. btw, megui needs to run as admin.

EuropeanMan
5th October 2009, 20:13
I have read the whole thing - and still I Can't do anything :(

XCyber
19th July 2010, 04:35
I am not sure if this is a bug in megui or xvid_encraw, but somethin is not working with russianfilenames properly. :(
This is log from second pass (first pass does no errors)
[NoImage] Standard error stream
-[NoImage] Trying to retrieve width and height from input header
-[NoImage] xvid [info]: Avisynth detected
-[NoImage] xvid [info]: Input colorspace is YV12
-[NoImage] xvid [info]: Input is 640 x 480, 30.000fps (10000000/333333), starting from frame 0
-[NoImage] xvid [info]: Number of frames to encode: 510, Bitrate = 2000kbps
-[NoImage] xvid [info]: xvidcore build version: xvid-1.2.1
-[NoImage] xvid [info]: Bitstream version: 1.2.1
-[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 3DNOW 3DNOWEXT TSC
-[NoImage] xvid [info]: Detected cpus = 2, threads requested = 2, threads in use = 2
-[NoImage] xvid [info]: Threaded input reading active
-[NoImage] xvid [error]: Couldn't init AVI file for writing (E:\Fotki-20081211-Дурдинъ\DSCN7271--yuv.avi)
-[NoImage] AVIOutputFile::Init Error: Unable to open file "E:\Fotki-20081211-Ao?aeiu\DSCN7271--yuv.avi" for write: Системе не удается найти указанный путь.


Commandline from megui

--[NoImage] Job commandline: "C:\Program Files\Xvid\xvid_encraw.exe" -i "E:\Fotki-20081211-Дурдинъ\DSCN7271--yuv.avs" -pass2 "E:\Fotki-20081211-Дурдинъ\DSCN7271--yuv.stats" -bitrate 2000 -kboost 100 -ostrength 0 -chigh 10 -clow 3 -overhead 0 -max_key_interval 100 -nopacked -vhqmode 4 -qmatrix "C:\Program Files\megui\extra\Didees SixOfNine.cqm" -closed_gop -imin 3 -imax 4 -pmin 3 -pmax 5 -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -bmin 3 -bmax 5 -par 1:1 -threads 3 -avi "E:\Fotki-20081211-Дурдинъ\DSCN7271--yuv.avi"

This is the latest megui package of xvid_encraw.

i encountered the same problem while using megui encode xvid video with chinese file name.

-[Information] Log for job1 (video, 巧虎.avs -> )
--[Information] [2010-7-19 10:16:58] Started handling job
--[Information] [2010-7-19 10:16:58] Preprocessing
--[NoImage] Job commandline: "C:\Program Files\megui\tools\xvid_encraw\xvid_encraw.exe" -i "C:\巧虎 1\巧虎.avs" -pass1 "C:\巧虎 1\巧虎_.stats" -bitrate 1000 -kboost 100 -ostrength 10 -oimprove 10 -odegrade 10 -chigh 30 -clow 15 -overhead 0 -vbvmax 4854000 -vbvsize 3145728 -vbvpeak 2359296 -turbo -max_key_interval 250 -vhqmode 4 -lumimasking -imin 1 -pmin 1 -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -bmin 1 -par 1:1 -threads 1
--[Information] [2010-7-19 10:16:59] Encoding started
--[NoImage] Standard output stream
---[NoImage] xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
---[NoImage] Tot: enctime(ms) =85875.00, length(bytes) = 62780888
---[NoImage] Avg: enctime(ms) = 19.02, fps = 52.56, length(bytes) = 13908
---[NoImage] I frames: 26 frames, size = 54442/ 1415511, quants = 2 / 2.00 / 2
---[NoImage] P frames: 2257 frames, size = 19607/ 44254902, quants = 2 / 2.00 / 2
---[NoImage] B frames: 2230 frames, size = 7672/ 17110475, quants = 3 / 3.00 / 3
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 640 x 480, 29.970fps (5000000/166833), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 4513, Bitrate = 1000kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.2
---[NoImage] xvid [info]: Bitstream version: 1.2.2
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
---[NoImage] xvid [info]: Detected cpus = 2, threads requested = 1, threads in use = 1
--[Information] [2010-7-19 10:18:26] Postprocessing
---[Information] Deleting intermediate files
--[Information] [2010-7-19 10:18:26] Job completed
-[Error] Log for job2 (video, 巧虎.avs -> 巧虎_.avi)
--[Information] [2010-7-19 10:18:26] Started handling job
--[Information] [2010-7-19 10:18:26] Preprocessing
--[NoImage] Job commandline: "C:\Program Files\megui\tools\xvid_encraw\xvid_encraw.exe" -i "C:\巧虎 1\巧虎.avs" -pass2 "C:\巧虎 1\巧虎_.stats" -bitrate 1000 -kboost 100 -ostrength 10 -oimprove 10 -odegrade 10 -chigh 30 -clow 15 -overhead 0 -vbvmax 4854000 -vbvsize 3145728 -vbvpeak 2359296 -turbo -max_key_interval 250 -vhqmode 4 -lumimasking -imin 1 -pmin 1 -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -bmin 1 -par 1:1 -threads 1 -avi "C:\巧虎 1\巧虎_.avi"
--[Information] [2010-7-19 10:18:26] Encoding started
--[Error] An error occurred: xvid [error]: Couldn't init AVI file for writing (C:\巧虎 1\巧虎_.avi)
--[NoImage] Standard output stream: xvid_encraw - raw mpeg4 bitstream encoder written by Christoph Lampert 2002-2003
--[NoImage] Standard error stream
---[NoImage] Trying to retrieve width and height from input header
---[NoImage] xvid [info]: Avisynth detected
---[NoImage] xvid [info]: Input colorspace is YV12
---[NoImage] xvid [info]: Input is 640 x 480, 29.970fps (5000000/166833), starting from frame 0
---[NoImage] xvid [info]: Number of frames to encode: 4513, Bitrate = 1000kbps
---[NoImage] xvid [info]: xvidcore build version: xvid-1.2.2
---[NoImage] xvid [info]: Bitstream version: 1.2.2
---[NoImage] xvid [info]: Detected CPU flags: ASM MMX MMXEXT SSE SSE2 TSC
---[NoImage] xvid [info]: Detected cpus = 2, threads requested = 1, threads in use = 1
---[NoImage] AVIOutputFile::Init Error: Unable to open file "C:\?é?¢ 1\?é?¢_.avi" for write: 系统找不到指定的路径。
--[Information] [2010-7-19 10:18:26] Job completed


i got the souce code of xvid_encraw form squid_80's site.
http://members.optusnet.com.au/squid_80/sources/xvid_encraw_src.zip

i found a bug of squid_80's xvid_encraw. it is necessary that call setlocate() to set local code page before using mbstowcs() convert mbs to wcs. refer to MSDN for details.
otherwise, default code page CP_ACP will be used other than the local code page(it's GB2312/936 in my case).

However, i suggest to use MultiByteToWideChar() instead of mbstowcs(). example code like that:

UINT cp = GetACP();
outputfilelength = MultiByteToWideChar(cp,1,ARG_AVIOUTPUTFILE,-1,NULL,0);
widefilename = (wchar_t*)malloc(sizeof(wchar_t)*(outputfilelength+1));
MultiByteToWideChar(cp,1,ARG_AVIOUTPUTFILE,-1,widefilename,outputfilelength + 1);


because i am not sure squid_80's xvid_encraw is exactly the same one in megui package, i patch xvid_encraw.exe(2009-05-03 1.2.2+vaq) directly.

thanks squid_80 and megui's staff

Sharktooth
19th July 2010, 13:58
yes, xvid_encraw in megui is squid's build.
however, XCyber, what compiler/version did you use? and what compiler flags (is it a generic build that runs on ALL cpus)?

XCyber
21st July 2010, 09:20
yes, xvid_encraw in megui is squid's build.
however, XCyber, what compiler/version did you use? and what compiler flags (is it a generic build that runs on ALL cpus)?

no compiler.
i just modified xvid_encraw.exe in latest version of megui.

compiler and its optimizations always confuse me, so i prefered to modify .exe rather than build a new one.
i don't know if it is permited here.

original: ( mbstowcs() internal )

0042B752 /$ 55 push ebp
0042B753 |. 8BEC mov ebp, esp
0042B755 |. 833D 08504700>cmp dword ptr [475008], 0
0042B75C |. 75 07 jnz short 0042B765
0042B75E |. 68 10234700 push 00472310
0042B763 |. EB 02 jmp short 0042B767
0042B765 |> 6A 00 push 0
0042B767 |> FF75 10 push dword ptr [ebp+10]
0042B76A |. FF75 0C push dword ptr [ebp+C]
0042B76D |. FF75 08 push dword ptr [ebp+8]
0042B770 |. E8 55FEFFFF call 0042B5CA
0042B775 |. 83C4 10 add esp, 10
0042B778 |. 5D pop ebp
0042B779 \. C3 retn


modified:

0042B752 /$ 55 push ebp
0042B753 |. 8BEC mov ebp, esp
0042B755 |. FF75 10 push dword ptr [ebp+10]
0042B758 |? FF75 08 push dword ptr [ebp+8]
0042B75B |? 6A FF push -1
0042B75D |? FF75 0C push dword ptr [ebp+C]
0042B760 |? 6A 01 push 1
0042B762 |? FF15 08A14400 call dword ptr [<&KERNEL32.GetACP>] ; kernel32.GetACP
0042B768 |? 50 push eax
0042B769 |? FF15 70A04400 call dword ptr [<&KERNEL32.MultiByteT>; kernel32.MultiByteToWideChar
0042B76F |? 90 nop
0042B770 |. 90 nop
0042B771 |? 90 nop
0042B772 |? 90 nop
0042B773 |? 90 nop
0042B774 |? 90 nop
0042B775 |. 90 nop
0042B776 |? 90 nop
0042B777 |? 90 nop
0042B778 |. 5D pop ebp
0042B779 \. C3 retn