ustreamer
ustreamer copied to clipboard
Add Support for YUV420 and YVU variants.
This adds encoder support for the following planar formats from v4l.
- YUV420 (YU12)
- YVU420 (YV12)
Hopefully its pretty straight forward.
I needed this because scrcpy v4l2 sink (through v4l2loopback) uses the YU12 format on my android phones.
I did notice that I once and a while get -- ERROR [47432.502 ] -- CAP: V4L2 error: grabbed HW buffer=0 is already used
. I'm not sure why these happen, however I do think these should probably be Warnings and just continue the loop instead of stopping execution to rebuild the capture. Has this grabbed problem been seen where it didn't resolve itself?