Log in

View Full Version : create xvid avi problem using meGUI


adrianmak
24th June 2007, 05:06
I've a 1280x720 x264 aac mkv video
I wrote a avs script pass to meGUI to produce xvid avi video
That's the script

#loadplugin("C:\Program Files\GordianKnot\AviSynthPlugins\VSFilter.dll")
Import("..\avsfilter.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\mfToon-v0.5.avs")
DirectShowSource("video.mkv",audio=false).changefps(23.98).lanczosresize(704,396)
hqdn3d(0.0,2,0.0,4)
LimitedSharpenFaster(ss_x=1.0,ss_y=1.0,Smode=3,strength=75,overshoot=7)
return textsub("subtitle.ass")


After spending 2+ hrs encoding time and checked that the framerate of the xvid avi file was changed to 25 fps (why?)

In my script I've specified to 23.98fps
What's wrong I did ?

henryho_hk
24th June 2007, 06:19
What program are you using to encode the movie to xvid avi?

adrianmak
24th June 2007, 07:23
What program are you using to encode the movie to xvid avi?

meGUI bundled xvid encoder, I guess.

foxyshadis
25th June 2007, 03:37
If you're importing an mkv, you really need to use either timecodes (such as mkv2vfr), or directshowsource("...",framerate=...,convertfps=true). Otherwise there's a very good chance that you'll get butchered avi sync no matter what framerate you try to use, if the source uses vfr at all. Setting the framerate outside the source can't fix that.

As for why the end avi came out to 25, maybe it was a muxer error, or maybe megui added a line on the end.

As an aside, are you sure you want to use ss_x/y of 1.0? That tends to make the video extremely aliased (ugly and hard to compress). Even 1.1 looks much better.

adrianmak
25th June 2007, 05:53
If you're importing an mkv, you really need to use either timecodes (such as mkv2vfr), or directshowsource("...",framerate=...,convertfps=true). Otherwise there's a very good chance that you'll get butchered avi sync no matter what framerate you try to use, if the source uses vfr at all. Setting the framerate outside the source can't fix that.
.....

That's the problem of audio/video out of sync in the middle of the video, I came across. And I posted
http://forum.doom9.org/showthread.php?p=1018555#post1018555

looking for help.

Hyper_Thread
25th June 2007, 20:51
Try to force the correct framerate of your video by "fps=" in DirectshowSource.
If u r using Avisynth 2.57, also try ChangeFPS("ntsc_film") instead of ChangeFPS(23.98), personally, i suggest ConvertFPS coz it provide smoother conversion without dropping or inserting frames & produce a same duration clip (avoiding an out of sync).

sysKin
26th June 2007, 03:29
Shouldn't that be AssumeFPS rather than ChangeFPS?

Hyper_Thread
26th June 2007, 18:06
AssumeFPS, ChangeFPS and ConvertFPS accepts Presets & Ratios. So in this case, option for ChangeFPS can be (23.976), (24000,1001) or ("ntsc_film")