ffmpeg convert y4m to yuv and play ffplay code example
Example: ffmpeg convert yuv to mp4 beginner
ffmpeg -f rawvideo -vcodec rawvideo -s 352x288 -r 25 -pix_fmt yuv420p -i sample_cif_yuv420p.yuv -c:v libx264 -preset slow -qp 0 sample_cif.mp4
ffmpeg -f rawvideo -vcodec rawvideo -s 352x288 -r 25 -pix_fmt yuv420p -i sample_cif_yuv420p.yuv -c:v libx264 -preset slow -qp 0 sample_cif.mp4