Log in

View Full Version : One clip has audio... but why


Starduster
3rd April 2012, 16:41
I'm trying to add silence to a jpg for 3 seconds, then combine that with another jpg for the duration of the .flv. So, if sld1 has 3 seconds of silence and sld2 has the audio from the .flv, why do I get the error: "One clip has audio but the other doesn't"?

I've been doing this with swfSource instead of ImageSource so I'm confused as to what I've done wrong.

stdVid = DirectShowSource(vidsrc, fps=15, convertfps=True)
stdVid = stdVid.ConvertToRGB32().Spline36Resize(640, 480)

fa=Tone(length=3.0, type="Silence", samplerate=AudioRate(stdVid), channels=AudioChannels(stdVid))

sld1=ImageSource("slide1.jpg").AssumeFPS(stdVid).Loop().Trim(0,fc-1).ConvertToRGB32()
AudioDub(sld1,fa)

vd = DirectShowSource("MOB_2.flv", fps=15, convertfps=True)
fv=ImageSource("slide2.jpg").AssumeFPS(vd).Trim(1,-1).ConvertToRGB32()
sld2 = AudioDub(fv,vd)

sld1 ++ sld2

Didée
3rd April 2012, 16:57
For "sld1", do the same as you do for "sld2". ;)

sld1=ImageSource( ...etc
sld1 = AudioDub(sld1,fa)

Starduster
3rd April 2012, 17:19
OMG... do you know how many times I've looked at that? Way too much cutting and pasting today! Thanks so much!

Didée
3rd April 2012, 18:10
Haha, nevermind. If I'd got one Penny everytime I "didn't see the wood for the trees", then I'd be a rich man. :D