How to Convert a Video to WEBM in Go

With the popularity of the online video steadily rising, the WEBM file format is also gaining popularity due to its compatibility with most web browsers. However, if you don’t have the proper tools, transforming your videos to this relatively new format can be quite difficult. In this quick tutorial, we will show you how to easily convert videos to WEBM format by using an API in Go.

We will start the process by inputting the file (or file URL if over 2 GB) and the API key into the following code:

package main

With this simple operation, you will be able to optimize any of your videos for sharing on the web! You can retrieve your free API key from the Cloudmersive website, which will provide access to 800 monthly calls across our library of APIs.

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.