After building the v4l2cuda (CUDA format conversion) sample, a segmentation fault appears

Hello,

v4l2cuda (CUDA format conversion)
After building the v4l2cuda (CUDA format conversion) sample, a segmentation fault appears.

jetsonai@jetsonai-desktop:/usr/src/jetson_multimedia_api_original_210322/samples/v4l2cuda$ ./capture-cuda -d /dev/video0 -u -z
CUDA format conversion on frame 0x100c60000
CUDA format conversion on frame 0x100e22000
CUDA format conversion on frame 0x100fe4000
CUDA format conversion on frame 0x1011a6000
CUDA format conversion on frame 0x100c60000
CUDA format conversion on frame 0x1011a6000
Segmentation fault (core dumped)

Can you tell me how to resolve this issue?

Thank you.

Hi,
There is default setting:

nvidia@tegra-ubuntu:~/jetson_multimedia_api/samples/v4l2cuda$ ./capture-cuda --h
elp
Usage: ./capture-cuda [options]

Options:
-c | --count N       Frame count (default: 100)
-d | --device name   Video device name (default: /dev/video0)
-f | --format        Capture input pixel format (default: UYVY)
-h | --help          Print this message
-m | --mmap          Use memory mapped buffers
-o | --output        Output file name (default: out.ppm)
-s | --size WxH      Frame size (default: 640x480)
-u | --userp         Use application allocated buffers
-z | --zcopy         Use zero copy CUDA memory
Experimental options:
-r | --read          Use read() calls
-F | --field         Capture field (default: INTERLACED)

Please check and set the options according to your source.

1 Like

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