Log in

View Full Version : Avisynth weird problem !!! :confused:


Fileburner
27th September 2008, 23:12
Hello Everyone,

I have a strenge problem with avisynth that I have never encountred before! Well I was trying to encode a video file (without audio) using megui/x264, the video is 34min (61188 Frames) Xvid, the encoding went fine but the result video is somehow fast, the content of the video ends at about 28min and repeat itself to complete the remaining 6min. what is strenge is that I encoded the same video with vdub using avisynth and I got the same problem but using MediaCoder(MEncoder) I didn't, that's why I think it's avisynth's fault

I also tried 2 encoding methods (CRF & 2pass) but same problem.

the resulted video have the same frames (61188frame)

the video is originaly encoded from a camcorder, the xvid source is fine, the fps = 29.97

I am going to explain exactly what happened in the little scheme below :

[----------------------------------------------------------------|++++++++++++++++++++++] Original Video (34min 61188 f 29.97 fps CFR)

[------------------------------------------------------++++++++++++++]++++++++++++++++] Encoded Video (34min 61188 f 29.97 fps)

the first line is for the original video
the 2nd line is for the encoded Video

the green pluses are the end of the video (Original)
since the encoded video ran fast (I don't know why) the end of the video came 6 min earlier (marked with "]") (the blue pluses in the 2nd line) but since the time is not completed yet (still 6min to go), the end of the original video (green pluses) were repeated in the encoded video (Red pluses)

I use avisynth 2.5.7 + megui with last updates, FFDshow as video decoder

the avs script was DirectShowSource("wed.mkv",fps=29.9779,audio=false)

I believe that avisynth is skipping frames here but I am not sure

btw when I add "convertFPS=true" to the script everything seem to be ok, but sincerly WHY do I have to add it ??!!

I hope this was not posted before because I searched but couldn't find any similar problem or maybe I couldn't find the right terms for it.

thank you for your support

jeffy
28th September 2008, 00:01
Since you know the framecount, you might try adding it as a parameter. I have no idea if it helps in your particular case.
http://avisynth.org/mediawiki/DirectShowSource

Atak_Snajpera
28th September 2008, 01:10
DirectShowSource("wed.mkv",fps=29.9779,audio=false)
fps should be 29.97!!!!!

Fileburner
28th September 2008, 16:47
thank you for your fast answer

I am going to try the framecount option and post asap

@Atak_Snajpera
the fps is set by Megui by default I didn't input it myself, well to tell the truth it was something like fps=29.9759856527702 the number was a bit long

Fileburner
29th September 2008, 21:52
I tried the "framecount" option but still the same problem.

any other Idea :3 ?

thanx in advance

@Edit
I noticed when playing the avs script in mplayerClassic the video runs faster than audio, when I seek the audio & video get synced but while continuing the playback the sound's disync gets larger

Atak_Snajpera
30th September 2008, 00:52
Could you try with Ripbot264?

Fileburner
30th September 2008, 02:06
thank you for your reply, I am gonna try it asa I get back home

btw, can I use another frameserver (if this is the right term) than avisynth for x264 encoding ? for exemple vdub or mplayer ?

Fileburner
30th September 2008, 11:31
as you told me Atak_Snajpera I tried ripbot264 but I noticed something weird in it, it detected only 49807 frame unstead of 61188 and the encoding finished 6min earlier.
to make sure the frames number is exacte I used vdub and megui both gave me 61188 in the original video.
I am going to encode it using vdub without using avisynth and check the result.

thank you for your support.

Fileburner
1st October 2008, 01:18
I tried Vdub without avisynth, the resulted video is fine as I wanted, but I am still confused why i am having this problem with avisynth??? is it a bug ?