# I.MX8MM Video gets distorted after rotation

**URL:** https://discourse.gstreamer.org/t/i-mx8mm-video-gets-distorted-after-rotation/5729
**Category:** Application Development
**Created:** [February 19, 2026, 6:58am UTC](https://discourse.gstreamer.org/t/i-mx8mm-video-gets-distorted-after-rotation/5729 "2026-02-19T06:58:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zeniteller](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/z/258eb7/32.png) [@zeniteller](https://discourse.gstreamer.org/u/zeniteller)
#### Post date: [February 19, 2026, 6:58am UTC](https://discourse.gstreamer.org/t/i-mx8mm-video-gets-distorted-after-rotation/5729/1 "2026-02-19T06:58:51Z")

</div>

When using Gstreamer and rotating video 90 degrees using imxvideoconvert\_g2d the video’s aspect ratio gets distorted. I tried swapping height and width values in caps and that helps up to 720p resolution. On 1080p linking with vpuenc\_h264 encoder fails. This is probably due to encoder’s default caps: [https://github.com/dv1/gstreamer-imx/blob/c19a6ff7db8b346db6582c5d69e01be1b08c9c89/src/vpu/encoder/e…](https://github.com/dv1/gstreamer-imx/blob/c19a6ff7db8b346db6582c5d69e01be1b08c9c89/src/vpu/encoder/encoder_h264.c#L52)  
Any help would be appreciated!

---

<div class="post-metadata">

### Author: ![dv1](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/d/8dc957/32.png) [@dv1](https://discourse.gstreamer.org/u/dv1)
#### Post date: [February 25, 2026, 8:26am UTC](https://discourse.gstreamer.org/t/i-mx8mm-video-gets-distorted-after-rotation/5729/2 "2026-02-25T08:26:07Z")

</div>

I think you are conflating things. `imxvideoconvert_g2d` is not part of gstreamer-imx. It is part of the NXP imx-gst1.0-plugin package.
