---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/video/android-v6-specifying-video-format#article
headline: Specifying a Video Format - Android 6.x
description: Set a VideoFormat on a LocalVideoTrack in the Twilio Video Android SDK to control capture dimensions and frame rate for your video capturer.
url: https://www.twilio.com/docs/video/android-v6-specifying-video-format
inLanguage: en
dateModified: 2026-06-25T22:34:50.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Specifying a Video Format - Android 6.x

You can customize a `VideoCapturer` by setting a `VideoFormat` when creating a `LocalVideoTrack`. You can set the video dimensions and frame rate of your choice and the capturer is responsible for capturing as close as possible to your specified format. The `VideoFormat` provided to `LocalVideoTrack.create(...)` takes highest priority over the format returned by `VideoCapturer.getCaptureFormat()`. The default format for video tracks is 640x480 at 30 FPS. Note that your `VideoFormat` is used to select a capture format, but the actual video sent to Participants may be cropped and/or downscaled in response to network and device conditions.

```java title="Set a VideoFormat on a LocalVideoTrack"
// Create camera capturer
CameraCapturer cameraCapturer = new CameraCapturer(context, CameraCapturer.CameraSource.FRONT_CAMERA);

// Setup video format
VideoFormat videoFormat = new VideoFormat(VideoDimensions.HD_720P_VIDEO_DIMENSIONS, 30);

// Add a video track with the format
LocalVideoTrack localVideoTrack = LocalVideoTrack.create(context, true, cameraCapturer, videoFormat);

// If the format is not satisfied a null track will be returned
if (localVideoTrack == null) {
    Log.e(TAG, "Unable to satisfy the format");
}
```
