I have a python script sandwiched between ffmpeg input and output commands logically looks like the following:
ffmpeg -i webcam -vf format=yuv420p -f rawvideo