# Gstreamer, v4l2src: GST\_V4L2SRC\_MAX\_RESOLUTION

**URL:** <https://forums.developer.nvidia.com/t/gstreamer-v4l2src-gst-v4l2src-max-resolution/321855>\
**Category:** Jetson Nano\
**Tags:** gstreamer\
**Created:** [January 29, 2025, 8:48am UTC](https://forums.developer.nvidia.com/t/gstreamer-v4l2src-gst-v4l2src-max-resolution/321855 "2025-01-29T08:48:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![xrenogubkabob](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@xrenogubkabob](https://forums.developer.nvidia.com/u/xrenogubkabob)\
**Post date:** [January 29, 2025, 8:48am UTC](https://forums.developer.nvidia.com/t/gstreamer-v4l2src-gst-v4l2src-max-resolution/321855/1 "2025-01-29T08:48:32Z")

</div>

i have second problem. i have mipi-camera with default resolution 4056x3040. try pipeline:  
**gst-launch-1.0 -v v4l2src device=/dev/video11 ! videoconvert ! fpsdisplaysink text-overlay=false sync=false**  
is ok, but resolution is 3840x2160:

```auto
gst-launch-1.0 -vvv v4l2src device=/dev/video11 ! videoconvert ! fpsdisplaysink text-overlay=false sync=false
Setting pipeline to PAUSED ...
Using mplane plugin for capture
libv4l2: error getting pixformat: Invalid argument
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstAutoVideoSink:fps-display-video_sink/GstXvImageSink:fps-display-video_sink-actual-sink-xvimage: sync = false
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)3840, height=(int)2160, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)1:3:5:1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)3840, height=(int)2160, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)1:3:5:1
**

```

i try change variable GST\_V4L2SRC\_MAX\_RESOLUTION to 4056x3040 but nothing happens.  
how i can start current pipeline with resolution 4056x3040? is i need to fix camera driver? or fix gstremer?  
PS. pipeline is working ok:  
**gst-launch-1.0 -v v4l2src device=/dev/video11 ! video/x-raw,width=4056,height=3040 ! videoconvert ! fpsdisplaysink text-overlay=false sync=false**  
thanks !

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [February 3, 2025, 2:07am UTC](https://forums.developer.nvidia.com/t/gstreamer-v4l2src-gst-v4l2src-max-resolution/321855/3 "2025-02-03T02:07:51Z")

</div>

Hi,  
Please run the command and share the prints for reference:

```auto
$ v4l2-ctl -d /dev/video11 --list-formats-ext

```

Not sure but probably the caps is not set exactly fitting the sensor mode.

---

<div class="post-metadata">

**Author:** ![xrenogubkabob](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@xrenogubkabob](https://forums.developer.nvidia.com/u/xrenogubkabob)\
**Post date:** [February 3, 2025, 5:11am UTC](https://forums.developer.nvidia.com/t/gstreamer-v4l2src-gst-v4l2src-max-resolution/321855/4 "2025-02-03T05:11:39Z")

</div>

it is ok, i saw in “dmesg” what resolution is set to 4056x3040.  
–list-formats-ext:

v4l2-ctl -d /dev/video11 --list-formats-ext  
ioctl: VIDIOC\_ENUM\_FMT  
Type: Video Capture Multiplanar

```
    [0]: 'UYVY' (UYVY 4:2:2)
            Size: Stepwise 32x32 - 4048x3040 with step 8/8
    [1]: 'NV16' (Y/CbCr 4:2:2)
            Size: Stepwise 32x32 - 4048x3040 with step 8/8
    [2]: 'NV61' (Y/CrCb 4:2:2)
            Size: Stepwise 32x32 - 4048x3040 with step 8/8
    [3]: 'NV21' (Y/CrCb 4:2:0)
            Size: Stepwise 32x32 - 4048x3040 with step 8/8
    [4]: 'NV12' (Y/CbCr 4:2:0)
            Size: Stepwise 32x32 - 4048x3040 with step 8/8
    [5]: 'NM21' (Y/CrCb 4:2:0 (N-C))
            Size: Stepwise 32x32 - 4048x3040 with step 8/8
    [6]: 'NM12' (Y/CbCr 4:2:0 (N-C))
            Size: Stepwise 32x32 - 4048x3040 with step 8/8

```

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [February 3, 2025, 5:59am UTC](https://forums.developer.nvidia.com/t/gstreamer-v4l2src-gst-v4l2src-max-resolution/321855/5 "2025-02-03T05:59:16Z")

</div>

Hi,  
Please try

```auto
$ gst-launch-1.0 -v v4l2src device=/dev/video11 ! video/x-raw,width=4048,height=3040,format=UYVY ! videoconvert ! fpsdisplaysink text-overlay=false video-sink=fakesink sync=false

```

---

<div class="post-metadata">

**Author:** ![xrenogubkabob](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@xrenogubkabob](https://forums.developer.nvidia.com/u/xrenogubkabob)\
**Post date:** [February 3, 2025, 6:40am UTC](https://forums.developer.nvidia.com/t/gstreamer-v4l2src-gst-v4l2src-max-resolution/321855/6 "2025-02-03T06:40:04Z")

</div>

yes, it work. i writing it in 1st post _omg_. how can i change default resolution that will be not 3840x2160 but 4056x3040? is a need to fix **gstreamer**?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [February 3, 2025, 7:13am UTC](https://forums.developer.nvidia.com/t/gstreamer-v4l2src-gst-v4l2src-max-resolution/321855/7 "2025-02-03T07:13:24Z")

</div>

Hi,  
Selecting 3840x2160 seems to be default behavior. We are uncertain how to change it. You may go to gstreamer community to get suggestion:  
[https://discourse.gstreamer.org/](https://discourse.gstreamer.org/)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [February 26, 2025, 2:37am UTC](https://forums.developer.nvidia.com/t/gstreamer-v4l2src-gst-v4l2src-max-resolution/321855/9 "2025-02-26T02:37:13Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
