I am converting YUV raw video to mp4 using below ffmpeg command but after conversion colors are totally messed up like instead of red its showing blue. Kindly check and confirm if there is any issue with below conversion code.
ffmpeg -f rawvideo -pix_fmt yuv420p -s:v 1920x1080 -r 23.976 -i 2.raw -c:v libx264 output.mp4
ok i have found out solution after lots of searching and hit & trial method, we need to add vtag yv12 for proper colors.