<div dir="ltr"><div><br></div><div>For a recording in a resource limited board with mono input I aimed at encoding directly the video without converting it to gray YUV (with UV as zero). This patch implements the changes in the library for supporting the mono input and the relative output CHROME_400.</div><div><br></div><div>I have placed the commits in this branch: <a href="https://github.com/eruffaldi/x264/tree/grayscale">https://github.com/eruffaldi/x264/tree/grayscale</a></div><div>but I can open a pull request if needed.</div><div><br></div><div>Building Environment: macOS 10.12 with clang 8.0.0 and nasm 2.13</div><div><br></div><div>Tested encoding the RAW version of a Full HD video of 128 frames. The RAW video has been provided to the x264 cli as YUV, grayed YUV and mono. </div><div><br></div><div>The output h264 video was correctly played by VLC. The test commands have been reported here below:</div><div>   <a href="https://github.com/eruffaldi/x264/issues/1">https://github.com/eruffaldi/x264/issues/1</a></div><div><br></div><div>In terms of speed the mono version encodes 3 times faster than the YUV with zeroed UV planes.</div><div><br></div><div>Best Regards,</div><div>Emanuele Ruffaldi</div></div>