As far as I know there's no .yuv
file format. Some programs use that extension to store raw data, but it's not a format. Therefore there's no way to use the file unless you already know the metadata.
And you need to know in advance if the chroma samples are interleaved with the luminance ones or stored separately and if there's any bit padding and/or any row padding, just to be able to read the data from the file.
Then you also need to know in advance the frame resolution, the chroma subsampling and the color space in order to be able to correctly process that data.