News for hackers. Stuff that matters.
Re:Show HN: Cloud-based GIF editor to augment any video by anonfunction on Saturday May 07, 2016 @05:58PM (#11651521)
Yes this is possible, we havn't updated the docs[1] yet but the editor uses our public API for all the effects.

    {
      "source": "https://www.youtube.com/watch?v=jhyANGHDDH8",
      "trim": {
        "start": 145,
        "end": 148
      }
    }
1. http://docs.gifs.com/v1.0/docs
Re:Show HN: Cloud-based GIF editor to augment any video by intruder on Sunday May 08, 2016 @12:27AM (#11652604)
Cool but please clamp the values to be within 0 and currentDuration.

I'm getting an error that the duration that youtube sends me back is higher than your read out duration:

{ errors: { message: 'end(8s) > currentDuration(7.383s)' } }

Re:Show HN: Cloud-based GIF editor to augment any video by anonfunction on Sunday May 08, 2016 @03:01PM (#11655250)
Good idea of just trimming to the end if the end value is greater than the video duration, I'll add that next week.

As a quick hack since the youtube video duration is 7.383s, and you want to trim to the end just omit the end property.