---
title: What video output format is compatible with WebM?
description: Find out what video formats are compatible with the WebM format.
source_url:
  html: https://testingbot.com/software-testing-questions/webm-compatible-formats
  md: https://testingbot.com/software-testing-questions/webm-compatible-formats.md
---

# How can I create a WebM file and which video formats can I use?

- [![Share on Facebook](https://static.addtoany.com/buttons/facebook.svg) ](https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fwebm-compatible-formats.md&linkname= "Share on Facebook")
- [![Share on Twitter](https://static.addtoany.com/buttons/twitter.svg) ](https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fwebm-compatible-formats.md&linkname= "Share on Twitter")
- [![Share on LinkedIn](https://static.addtoany.com/buttons/linkedin.svg) ](https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fwebm-compatible-formats.md&linkname= "Share on LinkedIn")
- [![Share on HackerNews](https://static.addtoany.com/buttons/y18.svg) ](https://www.addtoany.com/add_to/hacker_news?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fwebm-compatible-formats.md&linkname= "Share on HackerNews")

The WebM format is a popular and open video format and is primarily used for video delivery on the web. WebM is designed to provide high-quality video compression while maintaining low file sizes. WebM files typically use specific video and audio codecs that ensure compatibility and performance.

## Compatible Video Codecs for WebM

Below are the compatible video codecs for WebM:

- **VP8**

VP8 is a video codec developed by On2 Technologies and was later acquired by Google. It's designed to provide high-quality video compression and is widely used in WebM files.

VP8 is supported by all major web browsers and platforms that support WebM.

- **VP9**

VP9 is an advanced version of VP8, also developed by Google. It offers better compression efficiency and higher quality at lower bitrates compared to VP8.

Supported by modern web browsers and platforms. It is becoming more common for web streaming, especially for higher resolution videos.

- **AV1**

AV1 is a newer, royalty-free video codec developed by the Alliance for Open Media (AOMedia). It is designed to provide even better compression efficiency than VP9.

Supported by newer web browsers and platforms, but not as universally supported as VP8 and VP9 yet unfortunately.

## Compatible Audio Codecs for WebM

- **Vorbis**

Vorbis is an open-source audio codec that is commonly used in WebM files. It provides high-quality audio compression.

- **Opus**

Opus is a versatile audio codec designed for both speech and general audio. It offers high-quality audio at various bitrates and is widely used in WebRTC applications. TestingBot for example uses this to stream audio from devices to the user.

## Example Command to Convert a Video to WebM Format

You can use `ffmpeg` which is a widely-used open-source multimedia framework to convert videos to WebM format. See below for an example command:

```bash
ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 1M -c:a libopus output.webm
```

- [![Share on Facebook](https://static.addtoany.com/buttons/facebook.svg) ](https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fwebm-compatible-formats.md&linkname=)
- [![Share on Twitter](https://static.addtoany.com/buttons/twitter.svg) ](https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fwebm-compatible-formats.md&linkname=)
- [![Share on Linkedin](https://static.addtoany.com/buttons/linkedin.svg) ](https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fwebm-compatible-formats.md&linkname=)
- [![Share on Hacker News](https://static.addtoany.com/buttons/y18.svg) ](https://www.addtoany.com/add_to/hacker_news?linkurl=https%3A%2F%2Ftestingbot.com%2Fsoftware-testing-questions%2Fwebm-compatible-formats.md&linkname=)

 ![TestingBot Logo](https://testingbot.com/assets/logo-head-2f7f08db4ac9c4a3b1a784047410f8a4ece708e7e9f10ed16e20fdd8310f8de3.svg)

## Sign up for a Free Trial

Start testing your apps with TestingBot.

No credit card required.

[Start Free Trial](https://testingbot.com/users/sign_up)

## Other Questions

### [Move an image element on a HTML page with CSS](https://testingbot.com/software-testing-questions/move-image-in-html "Move an image element on a HTML page with CSS")

### [How can I check my Screen Resolution?](https://testingbot.com/software-testing-questions/how-to-check-my-screen-resolution "How can I check my Screen Resolution?")

### [Learn about Chromedriver and Chrome automation](https://testingbot.com/software-testing-questions/what-is-chromedriver "Learn about Chromedriver and Chrome automation")

### [Centering an image with HTML and CSS](https://testingbot.com/software-testing-questions/how-to-center-an-image-in-html "Centering an image with HTML and CSS")

### [Regression Testing : Definition, How it works](https://testingbot.com/software-testing-questions/what-is-regression-testing "Regression Testing : Definition, How it works")

### [Updating Safari on an older macOS version](https://testingbot.com/software-testing-questions/how-to-update-safari-on-an-old-mac "Updating Safari on an older macOS version")
