Streaming Video in YUYV to UDP


How can I stream video from my webcam to UDP?
I went through Derek Molloy’s tutorials and I’m currently using his boneCV code but it’s
irrelevant to me because he is using the h264 format and I don’t have a camera that supports it . In any case , I need YUYV.

Thanks in advance

Ps. (I’m a newbie in embedded linux)