View Full Version : Video framerate doesn't match
Static42
27th March 2008, 23:04
Avisynth open failure:
Splice: Video framrate doesn't match
(E:\encodes\joinvideo.avs, line 3)
That's the error I get when I try to join to video files together. I'm hoping someone here can guide me through this. All I want to do is join the videos together and re-encode them into one file.
My avisynth script:
video1=AviSource("E:\encodes\great gatsby\2\finalvideo.avi")
video2=AviSource("E:\encodes\great gatsby\endingwithsubs2.avi")
video1 ++ video2
Ranguvar
27th March 2008, 23:07
AviSynth cannot merge the two clips because they have different frame rates.
You will have to change, assume, or convert the fps of one or both clips, unless you want to create a variable frame rate clip, which limits your choice of output container format and where/how you can play it.
Static42
27th March 2008, 23:16
How would I change the fps of the video?
EncodeThis
28th March 2008, 01:38
Use ChangeFPS in your script.
video1=ChangeFPS(AviSource("E:\encodes\great gatsby\2\finalvideo.avi"),"framerate here")
Put ChangeFPS in front of AVI source and then where I put "framerate here" choose your desired framerate that you want the clip to run at.
You can also do this with the second clip as well. Just choose what clip you want to change and keep the other one the same as the one you changed.
Ranguvar
28th March 2008, 03:17
Three of the simplest ways are ChangeFPS, AssumeFPS, and ConvertFPS. There are others.
AssumeFPS will change the fps of a video directly, resulting in a slower or faster video. The audio will also need to be changed.
ChangeFPS will add or delete frames to change the fps without affecting the total runtime. This may result in jerkiness.
ConvertFPS will "attempt to convert the frame rate of clip to new_rate without dropping or inserting frames, providing a smooth conversion with results similar to those of standalone converter boxes. The output will have (almost) the same duration as clip, but the number of frames will change proportional to the ratio of target and source frame rates."
Static42
28th March 2008, 03:19
Thanks for the response. Unfortunately, I'm receiving an error when I try to run the script with the modifications.
ChangeFPS: invalid preset value used
This is what I have for video1:
video1=ChangeFPS(AviSource("E:\encodes\great gatsby\2\finalvideo.avi"),"30")
Gavino
28th March 2008, 13:08
I'm receiving an error when I try to run the script with the modifications.
video1=ChangeFPS(AviSource("E:\encodes\great gatsby\2\finalvideo.avi"),"30")
Remove the quotes from the framerate parameter; it's a numeric value, not a string.
video1=ChangeFPS(AviSource("E:\encodes\great gatsby\2\finalvideo.avi"),30)
NerdWithNoLife
28th March 2008, 22:53
I've had times then the clips really should have the same framerate, but because of some odd rounding error Avisynth thinks they're different. Try opening each of the clips in VirtualDub then go to File > File Information and see if they really are different. In most cases, video you shot is actually 29.97 (not 30).
I've had VirtualDub report that two clips have a 29.97 framerate, but Avisynth thinks they're different! So here's what I did in my script:
video1=avisource("video1.avi")
video2=avisource("video2.avi").assumeFPS(video1)
And then the splice will work. Unless they really do have different framerates. Without seeing the original files, I don't know but hopefully this will be of use to someone.
NerdWithNoLife
3rd April 2008, 16:11
Oh, another thing I've found is the proper way to calculate NTSC framerates is [almost framerate] x 1000 / 1001. 29.97 for example is calculated from 30 x 1000 / 1001.
So you would do something like AssumeFPS(30000,1001) to yield a proper 29.97. It also works with ConvertFPS and ChangeFPS. But it wouldn't work if you said DirectShowSource("movie.avi", fps=29.97) - it must be an integer or it will be rounded. So load the clip first, then Assume/Change/ConvertFPS. If the footage truly is 29.97 AssumeFPS(30000,1001) should keep the audio in its original form.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.