Log in

View Full Version : MeGUI's XviD encoder frame rate errors


andy_blah
29th June 2009, 15:24
No matter what .avs script I use, no matter what video source I have, no matter what frame rate or frame size I have on it, it keeps giving me this error in MeGUI's log when tryint to encode something with XviD:

--[Error] An error occurred: xvid [error]: Bad Framerate 0.000000 (25/1)

Here is the script that I mainly wanted to encode:

LoadPlugin("E:\untitled folder\DGIndex 1-5-5\DGDecode.dll")
LoadCPlugin("C:\Program Files\AviSynth 2.5\Plugins\yadif.dll")
MPEG2Source("bh.d2v")
Yadif(mode=1, order=1)
Crop(18,4,-16,-4)
lanczos4resize(672, 544)

This results a 50fps video file, and also I tried with 29.970fps and 25fps videos, all seem to get the same error. Tried to encode that script with H.264 and it works just fine, the only problem is that I need the script to be specifically encoded in XviD

andy_blah
5th July 2009, 14:05
*bump*

Anyone?

sneaker_ger
5th July 2009, 22:19
Just tried a similar script and didn't have any problems. How about reinstalling AviSynth, its plugins and MeGUI or uploading a sample file?

andy_blah
8th July 2009, 12:53
Tried to uninstall and reinstall MeGUI, but unfortunately it still gives the same error. Didn't try yet to do that to AviSynth yet because I am sure that it isn't it's fault here, since I can encode the script very well under VirtualDub

Here (http://megaupload.com/?d=HNUEDLRT) is a sample, included the .avs script, but you have to change the path to dgdecode.dll and yadif.dll.

sneaker_ger
8th July 2009, 13:46
No problems here - encoded just fine using MeGUI's xvid CQ 2 Fast profile.
Sorry, can't help you with this. *scratcheshead*

andy_blah
8th July 2009, 15:56
Tried also to uninstall AviSynth, reinstall it, uninstall MeGUI and reinstall it after restart, also did that with AviSynth again, but it seems that it still doesn't want to work. Can somebody point me out an xvid_encraw.exe(.dll) alternative?

nurbs
8th July 2009, 22:40
You can put info() in your Avisynth script to display the framerate avisynth uses for the video.
If it's wrong you can put AssumeFPS() with the correct framerate as the parameter on the end of your Avisynth script.
As a workaround you could also specify -framerate x.yz as a custom command line option in the xvid preset you use.

I know all of that doesn't really solve your problem, but it's better then your current situation if it works.

andy_blah
8th July 2009, 22:54
This doesn't work, I tried to add the custom command -framerate 50.0, but it still doesn't work, the video has the correct framerate of 50fps

andy_blah
14th July 2009, 17:16
*bump*

Adub
14th July 2009, 17:36
Have you tried updating MeGUI? You may also want to try a forced update of the xvid component.

andy_blah
14th July 2009, 17:48
Yes, I've tried now to update the core to it's latest version, so far the 29.970fps script works, but when I open up the script I showed above, it gives me this error:
--[Error] An error occurred: xvid [error]: Wrong input format, I want YUV encapsulated in PGM

I am not quite sure what that means...
Didn't add yet any colour space conversion filter to the script

Adub
14th July 2009, 18:13
Hmm... Do you know what colorspace the source is in? One thing you can try doing is adding the line "ConvertToYV12()" to the end of your script.

The weird thing is, that error usually occurs when feeding xvid a raw yuv source with no dimensions specified.

andy_blah
14th July 2009, 18:21
MediaInfo says it is 4:2:0, and the script with Info() in it loaded in VirtualDub gives YV12 so I suppose that adding ConvertToYV12() is pointless

Adub
14th July 2009, 18:28
Yeah, you wouldn't need too.

So to be clear, if you take the same script, and put it into virtualdub, then it works just fine, correct?

andy_blah
14th July 2009, 18:36
Precisely, and it even encodes it without a problem with FFDshow's XviD encoder

audiohominis
26th June 2010, 09:50
Hi guys. I'm struggling with the exact same problem here.
Tried to encode XviD via MeGUI for the first time and...
DirectShowSource("video.mts", fps=30, audio=false, ConvertFPS=True)
would throw that "Bad framerate" error.

I updated MeGUI just now.