Emby Emby Emby Learn
  • Emby Home
  • Video
  • Audio
  • Media Files
    • Subtitles and captions
    • Photos and images
    • Metadata and discovery
    • Libraries and media collections
    • Playback and streaming
    • Media hardware acceleration
    • Displays and AV connections
    • Live TV and recording
  1. Emby Learn
  2. Video
  3. Picture geometry
  4. Cropping video
Search Results for

    Show / Hide Table of Contents

    Cropping Video

    Cropping removes a rectangular border or region from a video picture.

    Suppose a 1920 × 1080 frame contains a 1920 × 800 film centered vertically. A crop can make the film rectangle the output picture, removing the black rows around it.

    First find the top edge:

    (1080 − 800) ÷ 2 = 140.

    Then describe the retained rectangle by its upper-left coordinate and its dimensions:

    Crop property Value
    Left coordinate, x 0
    Top coordinate, y 140
    Width 1920
    Height 800

    With zero-based source rows, the crop keeps rows 140 through 939, inclusive. Output row 0 comes from source row 140; output row 799 comes from source row 939. There are 140 discarded rows on each side of that retained region.

    This mapping is the essence of cropping. The samples inside the rectangle remain in their relative positions; the boundary moves inward.

    Crop and resize have different mappings

    For square pixels, this crop has a display ratio of 1920/800 = 2.4:1.

    If instead the complete 1920 × 1080 frame is resized to 1920 × 800, every row contributes to the compressed vertical extent. The black borders remain in scaled form, and the people become shorter. The output dimensions are the same as the crop's, but the mapping from source samples is different.

    A crop followed by a proportional resize is another useful operation. It first identifies the composition to retain, then reconstructs it at a chosen output size. Keep the display ratio and pixel aspect information consistent with those choices.

    Where a crop can happen

    A player can select a region while displaying the decoded frame. The stored video remains intact, so another viewing mode can show its edges again.

    A conversion can crop the decoded samples before encoding a new stream. That saved copy contains the smaller picture array. Edges omitted from that copy cannot be recovered from it.

    A codec or container can also describe a display crop around a larger coded picture. The decoder still handles the coded data, but the signaled visible rectangle excludes selected edges. This is how a picture boundary can change without treating all coded samples as visible content.

    Why exact coordinates sometimes need format handling

    Color-subsampled picture formats share color samples between neighboring brightness positions. Crop boundaries can therefore need alignment to that sampling grid. A processing tool may round dimensions or coordinates to supported boundaries, or offer an exact-crop mode with explicit handling of the sample planes.

    FFmpeg's crop filter documents this distinction in its exact option. It also has a separate option that changes pixel aspect ratio to preserve the original DAR. That is a presentation choice beyond simply retaining the source's existing sample spacing.

    For a border-removal job, inspect several scenes before choosing the rectangle. A dark image region is not automatically a border; changing film ratios and subtitles can reveal valid content there later. The crop coordinates should follow the composition actually being retained.

    See Also

    • Letterboxing and Pillarboxing
    • Video Display Aspect Ratio
    • Video Resolution

    References

    • FFmpeg video filters documentation
    • ITU-T H.264: Advanced video coding
    On this Page
    2026 © EMBY LLC. Please see our terms of use and privacy policy.
    Back to Top