Video4Linux sup­port in FreeB­SD

Yes­ter­day I com­mit­ted the v4l sup­port into the lin­ux­u­la­tor (in 9‐cur­rent). Part of this was the import of the v4l head­er from lin­ux. We have the per­mis­sion to use it, it is not licensed via GPL. This means we can use it in FreeB­SD native dri­vers, and they are even allowed to be com­piled into GENERIC (but I doubt we have a dri­ver which could pro­vide the v4l inter­face in GENERIC).

The code I com­mit­ted is “just” the glue‐code which allows to use FreeB­SD native devices which pro­vide a v4l inter­face (e.g. multimedia/pwcbsd) from lin­ux pro­grams.

If some­one is will­ing to write the glue‐code for the v4l2 inter­face please con­tact me. We have the per­mis­sion to use the v4l2 head­er too, we just need some­one doing the cod­ing.

In a sim­i­lar way, if some­one is will­ing to add v4l2 inter­face sup­port to FreeB­SD native dri­vers (I do not know any FreeB­SD dri­ver which pro­vides a v4l2 inter­face) , just tell me and I import the v4l2 head­er into FreeB­SD.

And if some­one wants to add v4l sup­port to FreeB­SD native dri­vers but does not know where to start, feel free to con­tact me too.

Regard­ing the code which is in FreeB­SD ATM: it is not com­plete­ly fin­ished yet (some clip­ping relat­ed stuff is being worked on), but the not fin­ished part can not even be test­ed, as we do not know about a FreeB­SD device which pro­vides this func­tion­al­i­ty.

There is no MFC planned yet, but the more suc­cess sto­ries and test sce­nar­ios are being told about on the emu­la­tion or mul­ti­me­dia mail­inglists, the more like­ly I will do a MFC soon­er than lat­er.

Send to Kin­dle

3 thoughts on “Video4Linux sup­port in FreeB­SD”

  1. Pingback: video4linux palaikymas įdėtas į 9-CURRENT |
  2. Heyy Alexan­der, there’s some­thing already work­ing with v4l2??? I’m decid­ed to port my app to FreeB­SD using v4l com­pat­i­bil­i­ty lay­er or using native lay­er, what do you think bet­ter?

    1. If your appli­ca­tion is a native FreeB­SD appli­ca­tion, it can not use the v4l‐linuxulator stuff. If your appli­ca­tion is a lin­ux appli­ca­tion, it will use the v4l‐linuxulator stuff and can not use the FreeB­SD v4l inter­face direct­ly. All you have to do is to get your appli­ca­tion work­ing, you do not have to care about which v4l inter­face (FreeB­SD or Lin­ux) you are using, this will hap­pen auto­mat­i­cal­ly.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.