View Full Version : Splice not working.
jbalakri
10th March 2006, 02:21
Hi Folks,
I am trying to splice DV video and videos shot from digital camera and I am having problems. Video from digital camera is 640x480 at 30fps. So I am resizing it as well as changing the fps to 29.97 by using AssumeFPS. Here is my script:
v1=AVISource("DVVideo.avi")
v2=AVISource("640x480video.avi").LanczosResize(720,480).AssumeFPS(29.97,sync_audio=true).resampleaudio(48000)
v1+v2
I am getting "Splice: Video framerate doesn't match" error. What am I doing wrong?
Note that the video from digital camera by itself when resized and framerate changed works fine.
Any help would be much appreciated.
Thanks,
- Jay
tedkunich
10th March 2006, 02:40
Hi Folks,
I am trying to splice DV video and videos shot from digital camera and I am having problems. Video from digital camera is 640x480 at 30fps. So I am resizing it as well as changing the fps to 29.97 by using AssumeFPS. Here is my script:
v1=AVISource("DVVideo.avi")
v2=AVISource("640x480video.avi").LanczosResize(720,480).AssumeFPS(29.97,sync_audio=true).resampleaudio(48000)
v1+v2
I am getting "Splice: Video framerate doesn't match" error. What am I doing wrong?
Note that the video from digital camera by itself when resized and framerate changed works fine.
Any help would be much appreciated.
Thanks,
- Jay
clip v1 is not 29.97, thus the error. Add an assumeFPS() to the v1 clip and all should be ok.
jbalakri
10th March 2006, 03:00
clip v1 is not 29.97, thus the error. Add an assumeFPS() to the v1 clip and all should be ok.
Hmm.. I thought it shouldn't matter because DV video is 29.97fps by default anyway. In any case, I tried what you said and now I am getting another error: The number of audio channels don't match.
Thanks.
foxyshadis
10th March 2006, 03:37
Give us a little more information on each clip. No audio, mono, stereo, 5.1? You'll probably need to convert one to the other's format. Also use ++ to join for audio sync.
The reason one assumefps doesn't work is that the other isn't actually 29.97, it's just close enough that it doesn't matter. (Technically the new one isn't either, but it's still different.) They have to be exactly the same to splice them.
jbalakri
10th March 2006, 04:18
Give us a little more information on each clip. No audio, mono, stereo, 5.1? You'll probably need to convert one to the other's format. Also use ++ to join for audio sync.
Thanks a lot for the pointer. It dawned on me that the audio from digital camera is mono. So tried this script below and it worked!
v1=AVISource("DVvideo.avi").AssumeFPS(29.97, true)
video = AVISource("640x480video.avi")
audio = WavSource("640x480video.avi")
l_ch = GetChannel(audio, 1)
r_ch = GetChannel(audio, 1)
stereo = MergeChannels(l_ch, r_ch)
v2=AudioDub(video, stereo).LanczosResize(720,480).AssumeFPS(29.97,true).resampleaudio(48000)
v1+v2
Let me know if this is the right solution or is there a better solution out there?
Thanks.
LocalH
10th March 2006, 19:12
To do a "proper" resize from 640x480 to 720x480, you actually have to resize to 704x480 and then pad with black. The aspect error is probably negligible, however, but myself being a perfectionist, I felt that I should at lease raise the point, and let you decide whether or not it matters. Just change LanczosResize(720.480) to LanczosResize(704,480).AddBorders(8,0,8,0) if you want.
jbalakri
10th March 2006, 22:35
To do a "proper" resize from 640x480 to 720x480, you actually have to resize to 704x480 and then pad with black. The aspect error is probably negligible, however, but myself being a perfectionist, I felt that I should at lease raise the point, and let you decide whether or not it matters. Just change LanczosResize(720.480) to LanczosResize(704,480).AddBorders(8,0,8,0) if you want.
Thanks for pointing that out. Surely, I am as much a perfectionist as you are. ;)
IanB
12th March 2006, 06:35
In AVS 2.5.6 all the xxxFPS() functions got a clone FPS from another clip option. i.e.v1=AVISource("DVVideo.avi")
v2=AVISource("640x480video.avi")
\ .LanczosResize(720, 480)
\ .AssumeFPS(v1, sync_audio=true)
\ .resampleaudio(AudioRate(v1))
v1 ++ v2Also you should use the aligned splice option, "++", when joining unrelated clips.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.