get each field/ interlaced frames through v4l4j

17 views
Skip to first unread message

Max Schulze

unread,
May 28, 2012, 10:33:20 AM5/28/12
to v4...@googlegroups.com


Hello,

I am struggling over how to get each (TOP|BOTTOM) Field separately through
v4l4j (at 50, resp. 60 fps). [V4L2_FMT_FLAG_INTERLACED is the hint] As I have
sorted out, the is the possibility to tell v4l2 to switch to Interlaced Mode,
but apparently v4l4j does not offer a choice, right?
Is there anything planned or did I miss something?

Kind regards

M Schulze

Gilles Gigan

unread,
May 28, 2012, 10:47:07 PM5/28/12
to v4...@googlegroups.com
Hi Max,
You are correct, there is no way to specify the field order settings
for capture in the current version of v4l4j, but I can add it for you
within the next couple of days if you are happy to do the testing.
I am not sure whether to allow users to specify the field order for
all types of frame grabbers, or only for raw frame grabbers. Could you
tell me a bit more about your use case ?
Thanks
Gilles
> --
> You received this message because you are subscribed to the Google Groups
> "v4l4j" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/v4l4j/-/qEsugO0tZRMJ.
> To post to this group, send email to v4...@googlegroups.com.
> To unsubscribe from this group, send email to
> v4l4j+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/v4l4j?hl=en.

Max Schulze

unread,
Aug 22, 2013, 7:16:51 AM8/22/13
to v4...@googlegroups.com
Hi Gilles,

I am coming back on this project again. I have a small exposure (1/100 000) PAL Camera and I want to analyze each Field separately, as it blurs when I take the complete (2xfield=frame) image. I already tried to set V4L2_FIELD_INTERLACED in v4l2-input.c (l 294) but apparently I still do miss anything as I didn't fully understand the java part yet.
Do you mind giving anothe hint?

Kind regards,
M Schulze

Gilles Gigan

unread,
Aug 23, 2013, 1:34:34 AM8/23/13
to v4...@googlegroups.com
Hi Max,
Ok, so basically, depending on your driver, you may or may not request individual fields by changing the V4L2_FIELD_* parameter in v4l2-input.c
I have seen drivers which happily give you a single field when you request it, and drivers which wont even let you start capture if you ask for anything other than V4L2_FIELD_ANY (which is why v4l4j uses this one).

What happens when you try other V4L2_FIELD values (like V4L2_FIELD_BOTTOM or V4L2_FIELD_INTERLACED) ? can you start capturing or do you get an exception ?

Gilles


--
You received this message because you are subscribed to the Google Groups "v4l4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v4l4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages