<div dir="ltr"><div dir="ltr">Hi Nomura<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 20 Sept 2021 at 05:56, <<a href="mailto:tetsuya.nomura@soho-enterprise.com" target="_blank">tetsuya.nomura@soho-enterprise.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="JA"><div><p><span lang="EN-US">Dear Sirs.<u></u><u></u></span></p><p><span style="color:black" lang="EN-US"><u></u> <u></u></span></p><p><span style="color:black" lang="EN-US">According to the advice below, I'm sending the script file which I'm seeing the magenta boarder on the image.<u></u><u></u></span></p><p><span style="color:black" lang="EN-US"><a href="https://twitter.com/libcamera/status/1439571268207058949" target="_blank">https://twitter.com/libcamera/status/1439571268207058949</a><u></u><u></u></span></p><p><span style="color:black" lang="EN-US"><u></u> <u></u></span></p><p><span style="color:black" lang="EN-US"><img style="width:5.868in;height:3.618in" id="m_12685560416777896gmail-m_-4742722529726414830図_x0020_1" src="cid:17c02a1cb194ce8e91" alt="画像" width="563" height="347" border="0"></span><span style="color:black" lang="EN-US"><u></u><u></u></span></p><p><span style="color:black" lang="EN-US"><u></u> <u></u></span></p><p><span style="color:black" lang="EN-US">The image sensor is IMX327 and driven as IMX290 (dtoverlay=imx290)<u></u><u></u></span></p><p><span style="color:black" lang="EN-US">I</span><span style="font-family:"Courier New";color:black" lang="EN-US">’</span><span style="color:black" lang="EN-US">m not sure it is related but when I set the vertical size to 1088, the boarder disappeared.</span></p></div></div></blockquote><div>Could you confirm the size reported as being encoded by the codec please? Use ffprobe or similar to analyse the stream.</div><div>Most video codecs work on macroblocks, which are typically 16x16. 1080 is not a multiple of 16, so it has to pass a cropping rectangle to reflect the active/valid portions within the encoded data.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="JA"><div><p><span style="color:black" lang="EN-US"><u></u><u></u></span></p><p><span style="color:black" lang="EN-US">When setting smaller image size such as 1280x720, I don</span><span style="font-family:"Courier New";color:black" lang="EN-US">’</span><span style="color:black" lang="EN-US">t see the magenta boarder</span></p></div></div></blockquote><div>720 is a multiple of 16, as is 1088. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="JA"><div><p><span style="color:black" lang="EN-US"><u></u><u></u></span></p><p><span style="color:black" lang="EN-US">The OS is the current latest LiteOS.<u></u><u></u></span></p><p><span style="color:black" lang="EN-US"><u></u> <u></u></span></p><p><span style="color:black" lang="EN-US">It would be great if you give me the advice to solve the symptom.<u></u><u></u></span></p><p><span style="color:black" lang="EN-US"><u></u> <u></u></span></p><p><span style="color:black" lang="EN-US">gst-launch-1.0 -v -e \<u></u><u></u></span></p><p><span style="color:black" lang="EN-US">   libcamerasrc \<u></u><u></u></span></p><p><span style="color:black" lang="EN-US">   ! video/x-raw,width=1920,height=1080 \<u></u><u></u></span></p><p><span style="color:black" lang="EN-US">   </span><span style="color:black" lang="PT-BR">! omxh264enc \<u></u><u></u></span></p><p><span style="color:black" lang="PT-BR">   ! queue \<u></u><u></u></span></p><p><span style="color:black" lang="PT-BR">   ! h264parse \<u></u><u></u></span></p><p><span style="color:black" lang="PT-BR">   ! queue \<u></u><u></u></span></p><p><span style="color:black" lang="PT-BR">   ! mpegtsmux \<u></u><u></u></span></p><p><span style="color:black" lang="PT-BR">   </span><span style="color:black" lang="EN-US">! hlssink max-files=8 \<u></u><u></u></span></p><p><span style="color:black" lang="EN-US">     target-duration=1 \<u></u><u></u></span></p><p><span style="color:black" lang="EN-US">     location=/mnt/ram/segment%05d.ts \<u></u><u></u></span></p><p><span style="color:black" lang="EN-US">     playlist-location=/mnt/ram/output.m3u8 <br></span></p></div></div></blockquote><div>OpenMax IL is considered deprecated on the Pi. It certainly won't be supported on 64 bit versions of the OS. Use of v4l2h264enc is recommended instead, and it also supports DMABUFs for zero copy of image data.</div><div><br></div><div>As above, something in the path isn't passing the cropping information, and changing to v4l2h264enc may solve it. IL certainly enforces the source buffer being a multiple of 16 lines in height. The V4L2 encoder doesn't.</div><div><br></div><div>  Dave<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="JA"><div><p><span style="color:black" lang="EN-US"><u></u></span></p><p><span style="color:black" lang="EN-US">Best Regards,<u></u><u></u></span></p><p><span style="color:black" lang="EN-US"><u></u> <u></u></span></p><p><span style="color:black" lang="EN-US">NOMURA<u></u><u></u></span></p></div></div></blockquote></div></div>