Hello,
If I build again the example from:
https://linuxtv.org/downloads/v4l-dvb-apis/userspace-api/v4l/v4l2grab.c.html
It works only modifying the line:
fd = v4l2_open(dev_name, O_RDWR | O_NONBLOCK, 0);
to
fd = open(dev_name, O_RDWR | O_NONBLOCK, 0);
One difference with the first call is that it outputs the message “Opening in BLOCKING MODE” before the segmentation fault, so it seems the flag O_NONBLOCK has no effect.
I don’t know if this can be a clue…