VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    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!
    Quote Quote  
  2. Member
    Join Date
    Feb 2001
    Location
    Berlin, Germany
    Search Comp PM
    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.
    Quote Quote  
  3. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!