View Full Version : Combine swf, jpg, gif, videos into MPG4
Starduster
5th August 2010, 13:10
I'm just starting on a project where I'd like to combine a variety of media into an mpg4 video file. The input I'd like to use would include graphics (.swf, .jpg, .gif) and video (.flv, .avi, wmv).
So, my question is: (1) Is this something AVIsynth would be a good choice for and (2) What all would I need to get started?
Many thanks
Starduster
5th August 2010, 15:09
Ok, found another post that gave me some basics. I'm combining .jpg's and .swf's with an .avi using swf.vfp (http://www.marumo.ne.jp/trash/swf_vfp-0.1.3.lzh) with the following code:
picsrc="slide1.jpg"
picsrc2="slide2.swf"
vidsrc="ET_AppShare1.avi"
t=10.0 #[time in sec]
vd=DirectShowSource(vidsrc)
fc=Round(t*FrameRate(vd))
fv=ImageSource(picsrc).AssumeFPS(vd).Loop().Trim(0,fc-1).ConvertToRGB32()
fa=Tone(length=t, type="Silence", samplerate=AudioRate(vd), channels=AudioChannels(vd))
AudioDubEx(fv,fa)
vasr=float(vd.Height)/float(vd.Width)
pasr=float(fv.Height)/float(fv.Width)
nW=round(vd.Width*(vasr/pasr))
xx=(vd.Width-nW)
Spline36Resize(nW, vd.Height).AddBorders(xx/2,0,xx/2,0)
p1 = last
fv=SWFSource(picsrc2).flipVertical.AssumeFPS(vd).Loop().Trim(0,fc-1).ConvertToRGB32()
fa=Tone(length=t, type="Silence", samplerate=AudioRate(vd), channels=AudioChannels(vd))
AudioDubEx(fv,fa)
Spline36Resize(nW, vd.Height).AddBorders(xx/2,0,xx/2,0)
p1 ++ vd ++ last
I assume I need to do a similar thing with DirectShowSource for the .flv... but DirectShowSource doesn't like the .flv that much. Says the format for audio and video is not supported. Looking at the .flv audio codec is NellyMoser, video is Sorensen H.263. I've installed fddshow and FLV1 is enabled. I've downloaded and registered FLVsplitter.ax and it's giving me "Video: no combination of filters could be found to render the stream" and "Audio: filter graph won't talk to me". I'm sure I need something else but I don't know what.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.