Video to gif conversion service via api

I used the Zencoder api to convert videos from one format to another, but now I need to convert the video to an animated gif that is not included in the Zencoder output formats.

Does anyone know a service that can do this, or, alternatively, any relatively simple base library perfect for php that can do this?

+6
source share
3 answers

I believe that due to the difficulty in the performance of such a web service (API), there are very few suppliers offering automation functions for converting video to GIF via the REST API.

However, recently I found myself in a similar situation, did some research and came across two API products that could do the job for you:

  • giflayer API

    This is one REST API designed to convert videos to GIF animations. It works for both video URLs and portals such as YouTube , and direct links to videos, such as http://website.com/video.mp4 .

    Here's how you make an API request:

     https://apilayer.net/api/capture ? access_key = YOUR_ACCESS_KEY & url = https://www.youtube.com/watch?v=3W6hZR29l5o & start = 170 & duration = 1.5 


    Then after a few seconds, the API directly returns your GIF animation according to the parameters specified in the request:

    enter image description here


This is what there is now a second service that can meet the requirements mentioned above:

  1. gfycat

    Until they create real GIFs, they complement them by converting to HTML5 video, which is lighter in size. Just include this link if you are still not sure if this is the GIF transform you need.

Hope I can help.

+4
source

AWS now exports to GIF with Elastic Transcoder: http://aws.amazon.com/blogs/aws/amazon-elastic-transcoder-update-new-formats-conversion-controls/

The quality is doubtful though ..

+1
source

You can use the simple YouTube video API to animate gifs . It creates animations from any part of a YouTube video.

thanks

-1
source

All Articles