cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
badegoke_f1
Adventurer
Adventurer
391 Views
Registered: ‎06-18-2019

VPSS Scaler for 3840x2160 YUV422 to 420 not working

Hi,
I have based my design on zcu106 vcu trd 2020.1. I have VPSS Scaler Only(Color Space Conversion Enabled) IP between SDI-Rx and Frame Buffer write IPs.  All IPs(SDI-Rx, Vpss, Framebuffer Write) are setup for 3840x2160 max. My SDI camera outputs 1920x1080p50 and 3840x2160p50. I have used the Vpss Scaler to convert from 422 to 420.

I can capture an image 1080p50 okay, however when I capture 2160p50, the image is distorted(see attached). 

Vpss ConfigurationVpss ConfigurationWorking 1080p CaptureWorking 1080p CaptureDistorted 2160p CaptureDistorted 2160p Capture

 

Do I need to reconfigure the VPSS? Xilinx say the Vpss has been tested for 3840x2160 but I cannot get the right image at 3840x2160. Any help or suggestion please.  I have included the media-ctl commands I have used below:

root@zcu106_12G_Full:~# media-ctl -p -d /dev/media3
Media controller API version 5.4.0

Media device information
------------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  5.4.0

Device topology
- entity 1: vcap_sdirx output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "b0000000.v_proc_ss":1 [ENABLED]

- entity 5: a0000000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev6
        pad0: Source
                [fmt:UYVY10_1X20/3840x2160@1000/50000 field:none]
                [dv.detect:BT.656/1120 3840x2160p50 (5280x2250) stds:CEA-861 flags:CE-video,has-cea861-vic]
                -> "b0000000.v_proc_ss":0 [ENABLED]

- entity 7: b0000000.v_proc_ss (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev7
        pad0: Sink
                [fmt:UYVY10_1X20/3840x2160 field:none]
                <- "a0000000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]
        pad1: Source
                [fmt:VYYUYY8_1X24/3840x2160 field:none]
                -> "vcap_sdirx output 0":0 [ENABLED]

root@zcu106_12G_Full:~# media-ctl -p -d /dev/media2
Media controller API version 5.4.0

Media device information
------------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  5.4.0

Device topology
- entity 1: vcap_sdirx3 output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video3
        pad0: Sink
                <- "b0140000.v_proc_ss":1 [ENABLED]

- entity 5: a0190000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev4
        pad0: Source
                [fmt:UYVY10_1X20/1920x1080@1000/50000 field:none]
                [dv.detect:BT.656/1120 1920x1080p50 (2640x1125) stds:CEA-861 flags:CE-video,has-cea861-vic]
                -> "b0140000.v_proc_ss":0 [ENABLED]

- entity 7: b0140000.v_proc_ss (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev5
        pad0: Sink
                [fmt:UYVY10_1X20/1920x1080 field:none]
                <- "a0190000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]
        pad1: Source
                [fmt:VYYUYY8_1X24/1920x1080 field:none]
                -> "vcap_sdirx3 output 0":0 [ENABLED]

root@zcu106_12G_Full:~# yavta --enum-formats /dev/video3
Device /dev/video3 opened.
Device `vcap_sdirx3 output 0' on `platform:vcap_sdirx3:0' is a video output (without mplanes) device.
- Available formats:
        Format 0: NV12M (32314d4e)
        Type: Video capture mplanes (9)
        Name: Y/CbCr 4:2:0 (N-C)

        Format 1: NV12 (3231564e)
        Type: Video capture mplanes (9)
        Name: Y/CbCr 4:2:0

Video format: NV12 (3231564e) 1920x1088 field none, 1 planes:
 * Stride 1920, buffer size 3133440
root@zcu106_12G_Full:~# yavta --enum-inputs /dev/video3
Device /dev/video3 opened.
Device `vcap_sdirx3 output 0' on `platform:vcap_sdirx3:0' is a video output (without mplanes) device.
- Available inputs:
        Input 0: b0140000.v_proc_ss.

Video format: NV12 (3231564e) 1920x1088 field none, 1 planes:
 * Stride 1920, buffer size 3133440
root@zcu106_12G_Full:~# yavta --enum-formats /dev/video0
Device /dev/video0 opened.
Device `vcap_sdirx output 0' on `platform:vcap_sdirx:0' is a video output (without mplanes) device.
- Available formats:
        Format 0: NV12M (32314d4e)
        Type: Video capture mplanes (9)
        Name: Y/CbCr 4:2:0 (N-C)

        Format 1: NV12 (3231564e)
        Type: Video capture mplanes (9)
        Name: Y/CbCr 4:2:0

Video format: NV12 (3231564e) 3840x2160 field none, 1 planes:
 * Stride 3840, buffer size 12441600
root@zcu106_12G_Full:~# yavta --enum-inputs /dev/video0
Device /dev/video0 opened.
Device `vcap_sdirx output 0' on `platform:vcap_sdirx:0' is a video output (without mplanes) device.
- Available inputs:
        Input 0: b0000000.v_proc_ss.

Video format: NV12 (3231564e) 3840x2160 field none, 1 planes:
 * Stride 3840, buffer size 12441600
root@zcu106_12G_Full:~#
root@zcu106_12G_Full:~# yavta -c8 -f NV12 -s 1920x1080 --skip 7 -F /dev/video3
Device /dev/video3 opened.
Device `vcap_sdirx3 output 0' on `platform:vcap_sdirx3:0' is a video output (without mplanes) device.
Video format set: NV12 (3231564e) 1920x1080 field none, 1 planes:
 * Stride 1920, buffer size 3110400
Video format: NV12 (3231564e) 1920x1080 field none, 1 planes:
 * Stride 1920, buffer size 3110400
8 buffers requested.
length: 1 offset: 4142374400 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0x7f9af76000.
length: 1 offset: 4142374400 timestamp type/source: mono/EoF
Buffer 1/0 mapped at address 0x7f9ac7e000.
length: 1 offset: 4142374400 timestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0x7f9a986000.
length: 1 offset: 4142374400 timestamp type/source: mono/EoF
Buffer 3/0 mapped at address 0x7f9a68e000.
length: 1 offset: 4142374400 timestamp type/source: mono/EoF
Buffer 4/0 mapped at address 0x7f9a396000.
length: 1 offset: 4142374400 timestamp type/source: mono/EoF
Buffer 5/0 mapped at address 0x7f9a09e000.
length: 1 offset: 4142374400 timestamp type/source: mono/EoF
Buffer 6/0 mapped at address 0x7f99da6000.
length: 1 offset: 4142374400 timestamp type/source: mono/EoF
Buffer 7/0 mapped at address 0x7f99aae000.
0 (0) [-] none 0 0 B 5354.258647 5354.258660 18.331 fps ts mono/EoF
1 (1) [-] none 1 0 B 5354.278646 5354.278656 50.003 fps ts mono/EoF
2 (2) [-] none 2 0 B 5354.298645 5354.298655 50.003 fps ts mono/EoF
3 (3) [-] none 3 0 B 5354.318645 5354.318655 50.000 fps ts mono/EoF
4 (4) [-] none 4 0 B 5354.338646 5354.338655 49.998 fps ts mono/EoF
5 (5) [-] none 5 0 B 5354.358647 5354.358656 49.998 fps ts mono/EoF
6 (6) [-] none 6 0 B 5354.378646 5354.378656 50.003 fps ts mono/EoF
7 (7) [-] none 7 0 B 5354.398647 5354.398656 49.998 fps ts mono/EoF
Captured 8 frames in 0.194559 seconds (41.118480 fps, 0.000000 B/s).
8 buffers released.
root@zcu106_12G_Full:~# yavta -c4 -f NV12 -s 3840x2160 --skip 7 -F /dev/video0
Device /dev/video0 opened.
Device `vcap_sdirx output 0' on `platform:vcap_sdirx:0' is a video output (without mplanes) device.
Video format set: NV12 (3231564e) 3840x2160 field none, 1 planes:
 * Stride 3840, buffer size 12441600
Video format: NV12 (3231564e) 3840x2160 field none, 1 planes:
 * Stride 3840, buffer size 12441600
8 buffers requested.
length: 1 offset: 4285785536 timestamp type/source: mono/EoF
Buffer 0/0 mapped at address 0x7fac298000.
length: 1 offset: 4285785536 timestamp type/source: mono/EoF
Buffer 1/0 mapped at address 0x7fab6ba000.
length: 1 offset: 4285785536 timestamp type/source: mono/EoF
Buffer 2/0 mapped at address 0x7faaadc000.
length: 1 offset: 4285785536 timestamp type/source: mono/EoF
Buffer 3/0 mapped at address 0x7fa9efe000.
length: 1 offset: 4285785536 timestamp type/source: mono/EoF
Buffer 4/0 mapped at address 0x7fa9320000.
length: 1 offset: 4285785536 timestamp type/source: mono/EoF
Buffer 5/0 mapped at address 0x7fa8742000.
length: 1 offset: 4285785536 timestamp type/source: mono/EoF
Buffer 6/0 mapped at address 0x7fa7b64000.
length: 1 offset: 4285785536 timestamp type/source: mono/EoF
Buffer 7/0 mapped at address 0x7fa6f86000.
0 (0) [-] none 0 0 B 5366.840287 5366.840302 12.009 fps ts mono/EoF
1 (1) [-] none 1 0 B 5366.860287 5366.860297 50.000 fps ts mono/EoF
2 (2) [-] none 2 0 B 5366.880286 5366.880296 50.003 fps ts mono/EoF
3 (3) [-] none 3 0 B 5366.900286 5366.900296 50.000 fps ts mono/EoF
Captured 4 frames in 0.143276 seconds (27.918088 fps, 0.000000 B/s).
8 buffers released.
root@zcu106_12G_Full:~#

 

Many thanks
Bade

0 Kudos
4 Replies
nathanx
Moderator
Moderator
291 Views
Registered: ‎08-01-2007

From the log of media-ctl, it looks you have two SDI capture pipelines, which one do you use? Make sure to set VPSS output to the desired resolution, and use “v4l2-ctl -d /dev/videoX --all" to validate the capabilities of the device.  (X is either 0 or 3 in your case, since you have two SDI capture pipelines).

badegoke_f1
Adventurer
Adventurer
263 Views
Registered: ‎06-18-2019

Thanks @nathanx for taking time to reply. I actually have 4 video pipelines all setup for 4K capability. I intend to only encode one 4k stream at a time. I have set up the VPSS source and sink to the required resolution with the following commands:

media-ctl -d /dev/media0 -V '"b0040000.v_proc_ss":0  [fmt:UYVY10_1X20/1920x1080 field:none]'
media-ctl -d /dev/media0 -V '"b0040000.v_proc_ss":1  [fmt:VYYUYY8_1X24/1920x1080 field:none]'
media-ctl -d /dev/media1 -V '"b00c0000.v_proc_ss":0  [fmt:UYVY10_1X20/1920x1080 field:none]'
media-ctl -d /dev/media1 -V '"b00c0000.v_proc_ss":1  [fmt:VYYUYY8_1X24/1920x1080 field:none]'
media-ctl -d /dev/media2 -V '"b0140000.v_proc_ss":0  [fmt:UYVY10_1X20/1920x1080 field:none]'
media-ctl -d /dev/media2 -V '"b0140000.v_proc_ss":1  [fmt:VYYUYY8_1X24/1920x1080 field:none]' 
media-ctl -d /dev/media3 -V '"b0000000.v_proc_ss":0  [fmt:UYVY10_1X20/3840x2160 field:none]'
media-ctl -d /dev/media3 -V '"b0000000.v_proc_ss":1  [fmt:VYYUYY8_1X24/3840x2160 field:none]


I then used "media-ctl -p -d /dev/mediaX" for each pipeline as well “v4l2-ctl -d /dev/videoX --all" to confirm. Please see the logged console data below. I am trying to understand the output as the 4K channel still shows video width/height as 1920/0. 
Please note: 1 channel is unlocked, 2 channels have 1080p50 and the last has 2160p50 in the console data attached.

root@192.168.2.219's password:
root@zcu106_12G_Full:~# media-ctl -p -d /dev/media0
Media controller API version 5.4.0

Media device information
------------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  5.4.0

Device topology
- entity 1: vcap_sdirx1 output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video1
        pad0: Sink
                <- "b0040000.v_proc_ss":1 [ENABLED]

- entity 5: a0010000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        pad0: Source
                [dv.query:no-lock]
                -> "b0040000.v_proc_ss":0 [ENABLED]

- entity 7: b0040000.v_proc_ss (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev1
        pad0: Sink
                [fmt:UYVY10_1X20/1920x1080 field:none]
                <- "a0010000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]
        pad1: Source
                [fmt:VYYUYY8_1X24/1920x1080 field:none]
                -> "vcap_sdirx1 output 0":0 [ENABLED]

root@zcu106_12G_Full:~# media-ctl -p -d /dev/media1
Media controller API version 5.4.0

Media device information
------------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  5.4.0

Device topology
- entity 1: vcap_sdirx2 output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video2
        pad0: Sink
                <- "b00c0000.v_proc_ss":1 [ENABLED]

- entity 5: a0180000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev2
        pad0: Source
                [fmt:UYVY10_1X20/1920x1080@1000/50000 field:none]
                [dv.detect:BT.656/1120 1920x1080p50 (2640x1125) stds:CEA-861 flags:CE-video,has-cea861-vic]
                -> "b00c0000.v_proc_ss":0 [ENABLED]

- entity 7: b00c0000.v_proc_ss (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev3
        pad0: Sink
                [fmt:UYVY10_1X20/1920x1080 field:none]
                <- "a0180000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]
        pad1: Source
                [fmt:VYYUYY8_1X24/1920x1080 field:none]
                -> "vcap_sdirx2 output 0":0 [ENABLED]

root@zcu106_12G_Full:~# media-ctl -p -d /dev/media2
Media controller API version 5.4.0

Media device information
------------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  5.4.0

Device topology
- entity 1: vcap_sdirx3 output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video3
        pad0: Sink
                <- "b0140000.v_proc_ss":1 [ENABLED]

- entity 5: a0190000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev4
        pad0: Source
                [fmt:UYVY10_1X20/1920x1080@1000/50000 field:none]
                [dv.detect:BT.656/1120 1920x1080p50 (2640x1125) stds:CEA-861 flags:CE-video,has-cea861-vic]
                -> "b0140000.v_proc_ss":0 [ENABLED]

- entity 7: b0140000.v_proc_ss (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev5
        pad0: Sink
                [fmt:UYVY10_1X20/1920x1080 field:none]
                <- "a0190000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]
        pad1: Source
                [fmt:VYYUYY8_1X24/1920x1080 field:none]
                -> "vcap_sdirx3 output 0":0 [ENABLED]

root@zcu106_12G_Full:~# media-ctl -p -d /dev/media3
Media controller API version 5.4.0

Media device information
------------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  5.4.0

Device topology
- entity 1: vcap_sdirx output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Sink
                <- "b0000000.v_proc_ss":1 [ENABLED]

- entity 5: a0000000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev6
        pad0: Source
                [fmt:UYVY10_1X20/3840x2160@1000/50000 field:none]
                [dv.detect:BT.656/1120 3840x2160p50 (5280x2250) stds:CEA-861 flags:CE-video,has-cea861-vic]
                -> "b0000000.v_proc_ss":0 [ENABLED]

- entity 7: b0000000.v_proc_ss (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev7
        pad0: Sink
                [fmt:UYVY10_1X20/3840x2160 field:none]
                <- "a0000000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]
        pad1: Source
                [fmt:VYYUYY8_1X24/3840x2160 field:none]
                -> "vcap_sdirx output 0":0 [ENABLED]

root@zcu106_12G_Full:~#  v4l2-ctl -d /dev/video1 --all
Driver Info:
        Driver name      : xilinx-vipp
        Card type        : vcap_sdirx1 output 0
        Bus info         : platform:vcap_sdirx1:0
        Driver version   : 5.4.0
        Capabilities     : 0x84201000
                Video Capture Multiplanar
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04201000
                Video Capture Multiplanar
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : xilinx-video
        Model            : Xilinx Video Composite Device
        Serial           :
        Bus info         :
        Media version    : 5.4.0
        Hardware revision: 0x00000000 (0)
        Driver version   : 5.4.0
Interface Info:
        ID               : 0x03000003
        Type             : V4L Video
Entity Info:
        ID               : 0x00000001 (1)
        Name             : vcap_sdirx1 output 0
        Function         : V4L2 I/O
        Pad 0x01000002   : 0: Sink
          Link 0x0200000c: from remote pad 0x1000009 of entity 'b0040000.v_proc_ss': Data, Enabled
Priority: 2
Video input : 0 (b0040000.v_proc_ss: ok)
Format Video Capture Multiplanar:
        Width/Height      : 1920/0
        Pixel Format      : 'YUYV'
        Field             : None
        Number of planes  : 0
        Flags             :
        Colorspace        : sRGB
        Transfer Function : Default
        YCbCr/HSV Encoding: Default
        Quantization      : Default
Selection: compose, Left 0, Top 0, Width 0, Height 0, Flags:
Selection: compose_default, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: compose_bounds, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: crop, Left 0, Top 0, Width 0, Height 0, Flags:
Selection: crop_default, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: crop_bounds, Left 0, Top 0, Width 1920, Height 0, Flags:

User Controls

           low_latency_controls 0x0098ca21 (int)    : min=2 max=8 step=1 default=4 value=4
root@zcu106_12G_Full:~#  v4l2-ctl -d /dev/video2 --all
Driver Info:
        Driver name      : xilinx-vipp
        Card type        : vcap_sdirx2 output 0
        Bus info         : platform:vcap_sdirx2:0
        Driver version   : 5.4.0
        Capabilities     : 0x84201000
                Video Capture Multiplanar
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04201000
                Video Capture Multiplanar
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : xilinx-video
        Model            : Xilinx Video Composite Device
        Serial           :
        Bus info         :
        Media version    : 5.4.0
        Hardware revision: 0x00000000 (0)
        Driver version   : 5.4.0
Interface Info:
        ID               : 0x03000003
        Type             : V4L Video
Entity Info:
        ID               : 0x00000001 (1)
        Name             : vcap_sdirx2 output 0
        Function         : V4L2 I/O
        Pad 0x01000002   : 0: Sink
          Link 0x0200000c: from remote pad 0x1000009 of entity 'b00c0000.v_proc_ss': Data, Enabled
Priority: 2
Video input : 0 (b00c0000.v_proc_ss: ok)
Format Video Capture Multiplanar:
        Width/Height      : 1920/0
        Pixel Format      : 'YUYV'
        Field             : None
        Number of planes  : 0
        Flags             :
        Colorspace        : sRGB
        Transfer Function : Default
        YCbCr/HSV Encoding: Default
        Quantization      : Default
Selection: compose, Left 0, Top 0, Width 0, Height 0, Flags:
Selection: compose_default, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: compose_bounds, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: crop, Left 0, Top 0, Width 0, Height 0, Flags:
Selection: crop_default, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: crop_bounds, Left 0, Top 0, Width 1920, Height 0, Flags:

User Controls

           low_latency_controls 0x0098ca21 (int)    : min=2 max=8 step=1 default=4 value=4
root@zcu106_12G_Full:~#  v4l2-ctl -d /dev/video3 --all
Driver Info:
        Driver name      : xilinx-vipp
        Card type        : vcap_sdirx3 output 0
        Bus info         : platform:vcap_sdirx3:0
        Driver version   : 5.4.0
        Capabilities     : 0x84201000
                Video Capture Multiplanar
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04201000
                Video Capture Multiplanar
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : xilinx-video
        Model            : Xilinx Video Composite Device
        Serial           :
        Bus info         :
        Media version    : 5.4.0
        Hardware revision: 0x00000000 (0)
        Driver version   : 5.4.0
Interface Info:
        ID               : 0x03000003
        Type             : V4L Video
Entity Info:
        ID               : 0x00000001 (1)
        Name             : vcap_sdirx3 output 0
        Function         : V4L2 I/O
        Pad 0x01000002   : 0: Sink
          Link 0x0200000c: from remote pad 0x1000009 of entity 'b0140000.v_proc_ss': Data, Enabled
Priority: 2
Video input : 0 (b0140000.v_proc_ss: ok)
Format Video Capture Multiplanar:
        Width/Height      : 1920/0
        Pixel Format      : 'YUYV'
        Field             : None
        Number of planes  : 0
        Flags             :
        Colorspace        : sRGB
        Transfer Function : Default
        YCbCr/HSV Encoding: Default
        Quantization      : Default
Selection: compose, Left 0, Top 0, Width 0, Height 0, Flags:
Selection: compose_default, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: compose_bounds, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: crop, Left 0, Top 0, Width 0, Height 0, Flags:
Selection: crop_default, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: crop_bounds, Left 0, Top 0, Width 1920, Height 0, Flags:

User Controls

           low_latency_controls 0x0098ca21 (int)    : min=2 max=8 step=1 default=4 value=4
root@zcu106_12G_Full:~#  v4l2-ctl -d /dev/video0 --all
Driver Info:
        Driver name      : xilinx-vipp
        Card type        : vcap_sdirx output 0
        Bus info         : platform:vcap_sdirx:0
        Driver version   : 5.4.0
        Capabilities     : 0x84201000
                Video Capture Multiplanar
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x04201000
                Video Capture Multiplanar
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : xilinx-video
        Model            : Xilinx Video Composite Device
        Serial           :
        Bus info         :
        Media version    : 5.4.0
        Hardware revision: 0x00000000 (0)
        Driver version   : 5.4.0
Interface Info:
        ID               : 0x03000003
        Type             : V4L Video
Entity Info:
        ID               : 0x00000001 (1)
        Name             : vcap_sdirx output 0
        Function         : V4L2 I/O
        Pad 0x01000002   : 0: Sink
          Link 0x0200000c: from remote pad 0x1000009 of entity 'b0000000.v_proc_ss': Data, Enabled
Priority: 2
Video input : 0 (b0000000.v_proc_ss: ok)
Format Video Capture Multiplanar:
        Width/Height      : 1920/0
        Pixel Format      : 'YUYV'
        Field             : None
        Number of planes  : 0
        Flags             :
        Colorspace        : sRGB
        Transfer Function : Default
        YCbCr/HSV Encoding: Default
        Quantization      : Default
Selection: compose, Left 0, Top 0, Width 0, Height 0, Flags:
Selection: compose_default, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: compose_bounds, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: crop, Left 0, Top 0, Width 0, Height 0, Flags:
Selection: crop_default, Left 0, Top 0, Width 1920, Height 0, Flags:
Selection: crop_bounds, Left 0, Top 0, Width 1920, Height 0, Flags:

User Controls

           low_latency_controls 0x0098ca21 (int)    : min=2 max=8 step=1 default=4 value=4

1080p50 streams work but not 4K. 


Many thanks 
Bade

 

 

0 Kudos
nathanx
Moderator
Moderator
237 Views
Registered: ‎08-01-2007

You can configure v4l2 /dev/video0 node for the appropriate format which you need, here is an example, in your case, the resolution should be changed to 4k. Hope it helps.

v4l2-ctl -d /dev/video0 --set-fmt-video width=1920,height=1080,pixelformat='NV12'

0 Kudos
badegoke_f1
Adventurer
Adventurer
162 Views
Registered: ‎06-18-2019

Hi @nathanx ,
Apologies for delay in getting back. I have been unable to test your suggestion as I have been away. I will update the post once its done.

Many thanks
Bade

0 Kudos