PDA

View Full Version : XviD Encode Problem with MeGUI


YouDontKnowMe
15th September 2007, 14:06
Hi Guys I have a problem with MeGUI (better sayed with it's xvid encoding)

I will give you all information and hope for good responses so I can solve my problem...

first of all I've got a 4gb lossless file (704x464, 23:14mins, lagarith)
this one is opened through an avs:

#ASYNTHER AVISource
AVISource("D:\ep06.avi")
lanczos4resize(704,396)


these are my settings:

<?xml version="1.0"?>
<GenericProfileOfVideoCodecSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>My Settings</Name>
<Settings xsi:type="xvidSettings">
<EncodingMode>4</EncodingMode>
<BitrateQuantizer>1150</BitrateQuantizer>
<KeyframeInterval>240</KeyframeInterval>
<NbBframes>3</NbBframes>
<MinQuantizer>1</MinQuantizer>
<MaxQuantizer>31</MaxQuantizer>
<Turbo>false</Turbo>
<V4MV>false</V4MV>
<QPel>false</QPel>
<Trellis>true</Trellis>
<CreditsQuantizer>12</CreditsQuantizer>
<FourCCs>
<string>XVID</string>
<string>DIVX</string>
<string>DX50</string>
<string>MP4V</string>
</FourCCs>
<Logfile>.stats</Logfile>
<CustomEncoderOptions />
<FourCC>0</FourCC>
<Zones />
<MaxNumberOfPasses>2</MaxNumberOfPasses>
<NbThreads>1</NbThreads>
<Quantizer>1150</Quantizer>
<MotionSearchPrecision>6</MotionSearchPrecision>
<VHQMode>2</VHQMode>
<QuantType>0</QuantType>
<MinPQuant>1</MinPQuant>
<MaxPQuant>31</MaxPQuant>
<MinBQuant>1</MinBQuant>
<MaxBQuant>31</MaxBQuant>
<BQuantRatio>162</BQuantRatio>
<BQuantOffset>0</BQuantOffset>
<KeyFrameBoost>100</KeyFrameBoost>
<KeyframeThreshold>1</KeyframeThreshold>
<KeyframeReduction>20</KeyframeReduction>
<OverflowControlStrength>7</OverflowControlStrength>
<MaxOverflowImprovement>7</MaxOverflowImprovement>
<MaxOverflowDegradation>7</MaxOverflowDegradation>
<HighBitrateDegradation>0</HighBitrateDegradation>
<LowBitrateImprovement>0</LowBitrateImprovement>
<ReactionDelayFactor>16</ReactionDelayFactor>
<AveragingPeriod>100</AveragingPeriod>
<FrameDropRatio>0</FrameDropRatio>
<RateControlBuffer>0</RateControlBuffer>
<VbvPeakRate>0</VbvPeakRate>
<VbvMaxRate>0</VbvMaxRate>
<VbvBuffer>0</VbvBuffer>
<PackedBitstream>false</PackedBitstream>
<GMC>false</GMC>
<ChromaMotion>true</ChromaMotion>
<ClosedGOP>true</ClosedGOP>
<VHQForBframes>true</VHQForBframes>
<AdaptiveQuant>false</AdaptiveQuant>
<Greyscale>false</Greyscale>
<Interlaced>false</Interlaced>
<BottomFieldFirst>true</BottomFieldFirst>
<LumiMasking>false</LumiMasking>
<BframeThreshold>0</BframeThreshold>
<CustomQuantizerMatrix>C:\Programme\megui\extra\eqm_v3ulr_rev3.xcm</CustomQuantizerMatrix>
</Settings>
</GenericProfileOfVideoCodecSettings>


and a few information as well:

well the encode does start but the encoded framrate drops until it reaches zero... when I make the resize mod16 (704x400) then it encodes a few % more but drops in the end aswell (the second pass never starts because the first one never gets finished) I had encoded a 3:45mins clip (640,480, per avs, just avisource) and it encodes perfecty. I had encoded the file above (4gb lossless) into x264 (but no resize in the avs script) and it encoded smooth aswell... help me please guys I really dont know what to do...

PS: I've installed the newest Celtic Druid's build of xvid (for the avisource decode) (version 1.1.3)

check
15th September 2007, 14:19
do other files encode ok? Try just encoding with x264 with sharktooth's 'fastest' profile, does that work?

YouDontKnowMe
16th September 2007, 22:07
anything other work.... x264 works fine...

check
17th September 2007, 01:15
sounds like an issue with the file, try asking the xvid board.

YouDontKnowMe
18th September 2007, 18:32
sounds like an issue with the file, try asking the xvid board.

AFAIK this here IS the xvid board....:sly:

check
19th September 2007, 01:16
oops, sorry, just read the thread title -.-

[P]ako
19th September 2007, 18:25
Have you tried a VFW xvid + virtualdub as I had suggested in the other thread?

YouDontKnowMe
19th September 2007, 19:13
ako;1046701']Have you tried a VFW xvid + virtualdub as I had suggested in the other thread?

yes I did and it worked great but I want to have xvid per cli ^^

[P]ako
22nd September 2007, 22:35
yes I did and it worked great but I want to have xvid per cli ^^

Try now encoding with Xvid_encraw from a command shell. If that works then something is really f***ed with your installation of Megui.

Oh, test your RAM too.

YouDontKnowMe
23rd September 2007, 12:19
I tested it per cli shell and yes it worked smooth.... and my ram is okay aswell... so you think the problem depends on my megui version?

[P]ako
27th September 2007, 04:03
It has to do definitely with MeGUI and/or .NET 2.0. My money is on MeGUI. MeGUI has given me some troubles in the past, that's why I encode from a command line shell using .bat files.

Sharktooth
27th September 2007, 14:15
megui is just a GUI... it calls xvid_encraw with some parameters. period.
it cant b0rk the encoder IN ANY WAY... unless your system is unstable and weird things happen...

squid_80
28th September 2007, 08:01
megui is just a GUI... it calls xvid_encraw with some parameters. period.
it cant b0rk the encoder IN ANY WAY... unless your system is unstable and weird things happen...
MeGUI reads the printed output from xvid_encraw. If the buffer becomes full for some reason encraw will get stuck waiting for it to empty.

Sharktooth
28th September 2007, 13:20
uhm... then every other encoder in megui would have the same problem...

squid_80
28th September 2007, 13:46
Right. I was just pointing out that there is a way it can b0rk the encode, even if it's unlikely.

What we have here is a report from a single user which doesn't seem to be reproducible and hasn't been reported by anyone else. Definitely seems to indicate something on the user's pc is not right, but that could be anything from a failing hard drive to a conflict caused by anti-virus software.

[P]ako
28th September 2007, 21:00
I did a couple of encodes with xvid_encraw without issues. However, I had problems with x264 and MeGUI. Regardless of the revision I was running, x264 would crash randomly. Which it was really annoying for long encodes. So, I decided to ditch it and run x264 from a command shell. I haven't had any crashes ever since. I have even encoded with the revisions that crashed with MeGUI.

A friend of mine couldn't encode at all with x264 when he updated MeGUI 3 months ago. He is now encoding from a command shell without issues.

I guess I could start using MeGUI until x264 crashes (shouldn't be a hard thing to do) and get you a minidump.

Sharktooth
29th September 2007, 15:43
as i said, MeGUI cant make an encoder crash. it's just a GUI...
if you get those kind of problems, then your system IS unstable (faulty RAM or other HW problems OR software problems like spyware, malware, viruses etc.).

[P]ako
29th September 2007, 16:14
My system doesn't have any of the issues you've mentioned. If it had any of those problems I'd have other applications crashing on me randomly, wouldn't I? Nothing crashes, only x264 with MeGUI.

x264 + MeGUI == random crash may ocurr

x264 CLI == works perfectly

check
29th September 2007, 16:57
As sharktooth says, there is no difference between running xvid_encraw through megui than through a shell. Are you sure the imput and commandlines are the same?

Sharktooth
29th September 2007, 18:21
[P]ako then something is screwed on your system (hardware or software). There is NO POSSIBILITY of error.

[P]ako
29th September 2007, 21:20
@check, yes, I copied the command sequence from MeGUI. BTW, I encode with x264. I have hardly encoded with xvid_encraw, maybe 2 or 3 times, I think it messed something with them (it's been long ago for me to remember exactly what it was) so I went back to VFW.

@Sharktooth, there is nothing wrong with my system. Other .NET apps run without even a hiccup, so I doubt is my installation of .NET. If there was something wrong with my hardware, I should have more problems than *just* MeGUI *randomly* crashing x264 (is that hard to understand?). Other software messing up with MeGUI? I don't think so, perhaps the only difference in between a working MeGUI and a randomly crashing one was an update to the MeGUI core. The rest of my system hasn't changed much.

Sharktooth
30th September 2007, 03:32
is that hard to understand MeGUI CAN'T make xvid, x264 or any other encoder crash?????

buzzqw
30th September 2007, 08:10
problem reading stdout in megui?

BHH

Sharktooth
30th September 2007, 14:05
@buzzqw no...
(look this (http://forum.doom9.org/showthread.php?p=1049349#post1049349) and the next 2 posts...)

buzzqw
30th September 2007, 14:34
thanks Sharktooth!

(this will explain also some hiccup (now resolved) with automkv and xvod_encraw)

BHH