Back Forum Reply New

Splice not working.

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(quot;DVVideo.aviquot;)
v2=AVISource(quot;640x480video.aviquot;).LanczosResize(720,480).AssumeFPS(29.97,sync_audio=true).resampleaudio(48000)
v1+v2

I am getting quot;Splice: Video framerate doesn't matchquot; 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


Originally Posted by jbalakriHi 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(quot;DVVideo.aviquot;)
v2=AVISource(quot;640x480video.aviquot;).LanczosResize(720,480).AssumeFPS(29.97,sync_audio=true).resampleaudio(48000)
v1+v2

I am getting quot;Splice: Video framerate doesn't matchquot; 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,
- Jayclip v1 is not 29.97, thus the error.  Add an assumeFPS() to the v1 clip and all should be ok.


Originally Posted by tedkunichclip 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.

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.


Originally Posted by foxyshadisGive 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(quot;DVvideo.aviquot;).AssumeFPS(29.97, true)
video = AVISource(quot;640x480video.aviquot;)
audio = WavSource(quot;640x480video.aviquot;)
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.

To do a quot;properquot; 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.


Originally Posted by LocalHTo do a quot;properquot; 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.

In AVS 2.5.6 all the xxxFPS() functions got a clone FPS from another clip option. i.e.
Code:
v1=AVISource(quot;DVVideo.aviquot;)
v2=AVISource(quot;640x480video.aviquot;)
\ .LanczosResize(720, 480)
\ .AssumeFPS(v1, sync_audio=true)
\ .resampleaudio(AudioRate(v1))
v1 ++ v2
Also you should use the aligned splice option, quot;++quot;, when joining unrelated clips.
¥
Back Forum Reply New