Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th August 2010, 13:10   #1  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 124
Combine swf, jpg, gif, videos into MPG4

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
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
Old 5th August 2010, 15:09   #2  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 124
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.
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
Reply

Tags
combine, flv, mpg4, swf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 00:25.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.