> ## Documentation Index
> Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt
> Use this file to discover all available pages before exploring further.

# Content-aware video cropping (video tutorial)

## Overview

Learn how to crop a video using content-aware AI to keep the most interesting part of the video in the crop.

## Video tutorial

  This video is brought to you by Cloudinary's video player - embed your own!Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.

## Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
### Resize and crop videos with Cloudinary
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=0 :sec=04 :player=cld} | You can [resize and crop videos](video_resizing_and_cropping) on the fly with Cloudinary by including transformation parameters in the delivery URL, for example `c_fill,h_600,w_600` to fill a 600 x 600 pixel square with the video. 
|

### Use automatic gravity
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=0 :sec=34 :player=cld} | When videos are cropped using `c_fill`, the center of the video is focused on by default. This may not always be the most interesting part of the video, so to fix this, use automatic gravity (`g_auto`).

### Use compass points for gravity
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=0 :sec=47 :player=cld} | You can also use compass points for gravity, such as `g_west`, which will focus on the left-most part of the video in the crop.
|

## Keep learning

> **READING**:
>
> * Watch more [Dev Hints videos](https://www.youtube.com/playlist?list=PL8dVGjLA2oMpaTbvoKCaRNBMQzBUIv7N8) on the [Cloudinary YouTube channel](https://www.youtube.com/cloudinary).

> * Learn more about [cropping videos using automatic gravity](video_resizing_and_cropping#automatic_gravity_for_crops_g_auto).

> * Discover more transformations in the [Transformation URL API reference](transformation_reference).

> * Take a look at the [User-generated content guide](user_generated_content) to see all the features you can take advantage of when displaying user-generated content on your site.

#### If you like this, you might also like...

  
  
  
    Transformation Basics
    Learn the basics of a transformation URL 
  

  
  
  
    Gravity Crops for Images
    Indicate which areas to keep when cropping 
  

  
  
  
    Complex Transformations
    Combine transformations to generate a 3D canvas 
  

&nbsp;

&nbsp;Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
&nbsp;
