Created attachment 384532 [details, diff] Patch against ebuild Weston has a --enable-vaapi-recorder configure option that we are not making use of and so the feature is being picked up automagically. I tripped up over this while cross-compiling. The attached patch adds the vaapi USE flag and what I believe is the appropriate dependency. The [drm?] part was added because it looks for libva-drm as well as libva but you may want to look into this further as I haven't tested this feature myself.
Seems to be in weston-1.6.1 too.
It looks like it's used for screen capture. Is this useful to you? (I see a lot of feature requests for things people have just spotted in ./configure --help output but don't actually have any idea what the thing does or what they'd use it for)
Not to me but this still needs taking care of, even if it's just a case of always giving --disable-vaapi-recorder.