Video Conversion API
Friday 25th September 2009
We are pleased to announce the launch of our new OpenCrypt Video Conversion API service.
We're well aware that video is becoming an essential tool to sell products, provide product reviews and even as a saleable item in its own right, and with the increase in social networking the ability for web site visitors to post video content is becoming common place. For this reason, we have set up a dedicated API to handle the transcoding/conversion of video files into FLV format suitable for most web-based Flash video players.
The Video Conversion API is necessary because most web hosting companies won't allow access to the programs required to convert/transcode videos due to the load they place on system resources, this means without a dedicated server it is very difficult to convert videos online. The Video Conversion API enables users on any web server to convert videos to be including in web site content which is becoming increasingly popular for product demonstrations, social networks and other content.
The Video Conversion API is integrated with the new Video Manager features in OpenCrypt version 1.8 to allow site owners to upload video, and have it converted ready for inclusion directly on their site.
However, the API is not restricted to just OpenCrypt users, it is also open for use by other developers for their own sites and tools. This is a similar service to that provided by the likes of YouTube and Vimeo, in that it will accept nearly any video format and prepare it for you, however, it enables you to retain ownership of the video, and therefore not have to be subject to the terms and conditions of other providers.
The API uses the same API key system that is provided for the IP Location API enabling you to access both APIs with the same API key.
To register for an API Key, please login to the API Overview section of my.Opencrypt.com: http://my.OpenCrypt.com/api.php
All new registrations are assigned 50,000 free credits. 100,000 additional credits can be purchased for £5 and 1,000,000 credits can be purchased for £30. The cost for transcoding a video is 1 credit per 2.5kb of video. This is calculated on the average of the size of the input and output files. For example if your initial video is 2MB and the output FLV file is 1MB, the size 1.5MB will be used, so in this case the cost would be 600 credits, or no more than £0.03GBP.
The prerequisites for API usage are that the videos you wish to convert are available on the internet, rather than a local machine, so for example your own webserver. You must also be able to retrieve the video and thumbnail image if desired, they can either be downloaded locally or transferred directly back to your server.
Due to the large number of available options for the API, full documentation for usage and implementation are available from my.OpenCrypt.com: http://my.OpenCrypt.com/video-conversion-api.php
It is important to remember that when the API accesses your video source file and when your server retrieves the converted video file that these requests will count towards your hosting bandwidth usage. As such, it is important to ensure you have an adequate bandwidth quota for the transfers. It is also important to ensure you have adequate disk space to recieve the converted files, depending upon the length of the source video it is recommended you ensure at least 500Mb is available before retrieving a video. The video conversion API offers numerous quality options so you can produce small filesize/low quality videos, or high quality videos which have a larger filesize. The video conversion API also enables you to set the video size, the audio sample rate and the video aspect ratio enabling you to generate widescreen videos if required. Videos in the following formats are acceptable: AVI, FLV, MKV, MOV, MP4, MPEG, OGG, OGV and WMV. Further video formats are compatible but have not been tested, please contact us if you would like us to test another video format or require an option which is not currently available.
You will only be charged credits for your video conversion if the conversion is successful, if any error is returned then no charges will be applied. The charge is applied when the conversion is successful, not when the video is retrieved.
The API is powered by ffmpeg
Share this article:
OpenCrypt 1.8 New Feature Highlights ->