Log in

View Full Version : xvid encoded file gone wrong


Tagert
5th May 2007, 13:13
Hello people. I've been trying to get the xvid_encraw thingie in megui to work properly.
Since i'm not that much familiar with xvid_encraw and megui I've kinda run into a problem while encoding a file captured from a game with the help of fraps.

I keep seeing a flashing grey frame and with the video coming out in the middle in intervals.


Encoded xvid file:
http://tigge.se/problem/fraps_xvid_clip.mkv

gspot source file info from the fraps capture:
http://tigge.se/problem/gspot-source-file.jpg

megui xvid config:
http://tigge.se/problem/megui-xvid-config.jpg

AVS Script:
DirectShowSource("F:\Fraps\SwgClient_r 2007-04-06 23-18-05-79.avi",fps=30.00003000003,audio=false)
#deinterlace
#crop
#resize
#denoise

ConvertToYV12()

Anyone have a clue what may be wrong? :o

It works perfectly to encode the clip in virtualdub and with the xvid smp build by the way.


Another question as well:
Is material captured from games considered "cartoon"? as I've seen there's a cartoon mode in the xvid settings.

foxyshadis
5th May 2007, 14:59
Grey frames are a common symptom of directshow bugs in avisynth 2.5.6, try updating to 2.5.7 to fix most of that. (No idea if megui does this.) And also, change DirectshowSource to AviSource; loading avi through DShow will often cause timing problems even when it decodes the picture correctly.

Cartoon mode might improve things, since the textures are so flat, but it might not. Best to try. Have you considered heavier antialiasing, since it's pretty jaggy now? ;p

Tagert
5th May 2007, 15:07
Thanks for the tips foxyshadis.
Yeah I've tried anti aliasing on in star wars galaxies, but since it's a very old engine by todays measurements and poorly optimized, the fps goes way down to 10 when capturing with FSAA x2 with fraps on my core2duo 6600 system :p

Anyways, I'll try the tips you gave me!

Blue_MiSfit
5th May 2007, 17:01
Consider dropping your resolution down to 800x600, and enabling AA. It might make a big difference. Besides, 800x600 video looks pretty damn good, and is a lot smaller to encode :)

But yes, avoid DirectShowSource whenever possible :)

~MiSfit

Tagert
6th May 2007, 19:24
You were right foxyshadis :)

An update to the latest Avisynth did the trick :) .

@Blue_Misfit, aye I would do it if the game supported it, but unfortunately the lowest resolution you can have is 1024x768 :(