Converting YUV data to AVFrame
I am working on encoding a raw yuv stream coming directly from webcam, using v4l2. The issue that I am facing is that even after using
The output is not getting encoded and I am getting raw video.
My Code is:
It is just for testing, so there are various unused and irrelevant variables in this code.
For Compiling I am running this command