Replacing Frames

Locked
ithaqua
Joined: Thu May 22, 2003 10:37 pm
Location: Prince George, BC, Canada
Contact:
Org Profile

Replacing Frames

Post by ithaqua » Tue Dec 30, 2003 3:30 am

I recently put together a video with WMM, and I've noticed some problems with a couple (well, actually quite a few) of the scene transitions, and I was wondering if there is a program that will allow me to go through a video frame by frame and replace the ones that were unplanned.


Sorry if this was mentioned already in the guides, I really did look.
If nothing else, harsh noises get your attention.
http://www.downhillbattle.org
clicky clicky^

User avatar
Tab.
Joined: Tue May 13, 2003 10:36 pm
Status: SLP
Location: gayville
Org Profile

Post by Tab. » Tue Dec 30, 2003 9:09 am

Well, depends on what you mean by replace. Avisynth has deleteframe() and duplicateframe() functions if you just need to copy and/or get rid of frames, though inserting frames from a different source is a bit more tricky. You'd need something like

#loads wmv into vid1 variable:
vid1 = directshowsource("C:\crappywmv.wmv",fps=29.97)
#loads avi to insert frames from:
vid2 = avisource("D:\awesomebetteravi.avi")
#returns the first 120 frames of vid1 plus frame 120 from vid2
#plus frames 121 to the end of vid1:
return vid1.trim(0,120) + vid2.trim(120,120) + vid1.trim(121,0)

That'll replace frame 120 in the wmv. Actually, I'm not sure if that will return the right frames, trim() is kind of funky, but you can mess around with it.

ithaqua
Joined: Thu May 22, 2003 10:37 pm
Location: Prince George, BC, Canada
Contact:
Org Profile

Post by ithaqua » Tue Dec 30, 2003 3:50 pm

Yikes, programming!

That duplicate command may be what I was looking for. I'll have to look into it.

Thanks.
If nothing else, harsh noises get your attention.
http://www.downhillbattle.org
clicky clicky^

Locked

Return to “Video & Audio Help”