Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#19 Trim(100,-100) Doesn't seem to work

closed-accepted
Klaus Post
None
5
2002-10-14
2002-09-18
Mike Kanel
No

From the Avisynth 2.05 documents zip describing the
use of Trim()

*******
Trim(clip, int first_frame, int last_frame)

A negative value of last_frame returns the frames from
first_frame to first_frame + (- last_frame-1).

For example:
Trim(100,-100) # is the same as Trim(100,199)
*******

When I try Trim(100,-100) I don't get the same
results as Trim(100,199) but instead get the same as
Trim(100,100), just one frame of video.

Discussion

  • Klaus Post
    Klaus Post
    2002-09-22

    Logged In: YES
    user_id=578300

    Experienced the same problem lately - I'll look at it ASAP

     
  • Klaus Post
    Klaus Post
    2002-09-22

    • assigned_to: nobody --> sh0dan
    • status: open --> open-accepted
     
  • Klaus Post
    Klaus Post
    2002-09-24

    • status: open-accepted --> closed-accepted
     
  • Klaus Post
    Klaus Post
    2002-09-24

    Logged In: YES
    user_id=578300

    Fixed, uploaded to CVS.

     
  • Mike Kanel
    Mike Kanel
    2002-09-26

    Logged In: YES
    user_id=612443

    Works as advertised, thanks sh0dan!

     
  • Mike Kanel
    Mike Kanel
    2002-10-02

    Logged In: YES
    user_id=612443

    Almost but not quite,

    Trim(100,-100) returns the same frame count as Trim
    (100,200), not Trim(100,199) or a total of 101 frames.

     
  • Klaus Post
    Klaus Post
    2002-10-02

    • status: closed-accepted --> open-accepted
     
  • Klaus Post
    Klaus Post
    2002-10-14

    • status: open-accepted --> pending-accepted
     
  • Klaus Post
    Klaus Post
    2002-10-14

    Logged In: YES
    user_id=578300

    Should be ok now.

     
  • Klaus Post
    Klaus Post
    2002-10-14

    • status: pending-accepted --> closed-accepted