My problem:
I'm having 2 avi clips, 1of them has a lot of bad frames, which I want to remove/dublicate and then join the clips.
what I did:
c1=avisource("badframes.avi")
c2=avisource("inserted.avi")
c1.deleteframe(1234).duplicateframe(1233)
.
.
.
c1.deleteframe(4234).duplicateframe(4233)
clip=c1.trim(1000,4000)+c2+c1.trim(4200,10000)
return clip
When I preview this, all the dopped (deleted) frames are still in place.
When I omit the line (clip=c1...), and return c1 instead, all the bad frames are replaced with the previous one - as intended.
What an I doing here wrong?
BTW: I tried to do the clip= first and then then the delete...duplicate sequences, but to no avail!
Please help!
+ Reply to Thread
Results 1 to 3 of 3
-
-
c1=avisource("badframes.avi")
c2=avisource("inserted.avi")
c1=c1.deleteframe(1234).duplicateframe(1233)
.
.
.
c1=c1.deleteframe(4234).duplicateframe(4233)
clip=c1.trim(1000,4000)+c2+c1.trim(4200,10000)
return clip
Hope it helps. -
That was the trick.I had always thought, that applying a function to an objevt will return that object.But now it works as advertised.Thanx.
Similar Threads
-
Few questions regarding LCD tv... that will lead to more questions :)
By ohlookyhere in forum DVB / IPTVReplies: 16Last Post: 15th Aug 2010, 15:50 -
Powersupply questions and fan questions
By yoda313 in forum ComputerReplies: 39Last Post: 8th Sep 2008, 18:08 -
Questions: Avisynth.
By Sarlula in forum Video ConversionReplies: 12Last Post: 8th Aug 2008, 17:25 -
Avisynth, FFMPegSource, DGAVCDecode and some other basic questions
By Maikeru-sama in forum Video ConversionReplies: 7Last Post: 11th Jun 2008, 19:13 -
Questions about CCE, H264 and AviSynth
By Maikeru-sama in forum Video ConversionReplies: 18Last Post: 21st Dec 2007, 20:38