PDA

View Full Version : AssumeFPS problem


Truman
21st December 2001, 14:39
#source 23.976 fps
AVISource("c:\file.avi")
AssumeFPS(25,sync_audio=true)

work fine, no sync problems.

#source 25 fps
AVISource("c:\file.avi")
AssumeFPS(23.976,sync_audio=true)

is out of sync. Video slows down and audio keeps the speed of the original. I tried it with v.1.03 and v. 1.05, same result.

Both source files are DivX 4 / audio PCM uncompressed.

Any help much appreciated.

Truman
21st December 2001, 15:24
#source 25 fps
AVISource("c:\file.avi")
ChangeFPS(23.976)

Stange enough, ChangeFPS did not delete any frames, but did exacly that job, that

#source 25 fps
AVISource("c:\file.avi")
AssumeFPS(23.976,sync_audio=true)

should do. I used Avisynth 1.05 now.
So I solved the problem, but do any one know why.

tenebrenz
22nd December 2001, 16:08
I too had previous experiece (problems) with theses commands, I think that the changefps command will be dropping frames to change the framerate (though it doesn't change the framecount and you have lots of black frames at the end.) It isn't therefore necesary to change the audio samplerate to keep sync.
I think you may find that your video will now be choppy.

I've always found it best to use the assumfps command and adjust the audio seperately.

Truman
22nd December 2001, 22:56
You are right. I only viewed the file properties and saw the expected number of frames. Now after watching the avi I know I produced crap. :(