<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[树莓派5 IMX264 RAW12完全不可用]]></title><description><![CDATA[<p dir="auto">换了好几个pi5，os64，换了两个IMX264，RAW12 Y12P,打包的数据会来回跳，正常的时候是两个字节加打包字节，很快会跳成一个字节加打包字节再加另一个字节，还有时候会跳成其他的情况。如下图所示，测试图片，拆成四副图拼接，分别是两个字节和打包拆分的字节。<br />
<img src="/assets/uploads/files/1784032245165-t2.png" alt="t2.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1784032317387-t1.png" alt="t1.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">系统是6.18.34+rpt-rpi-2712<br />
6.12驱动编译安装</p>
<p dir="auto">用QT V4L2也可以看到这种跳动，只不过是近似2×2排布。</p>
<p dir="auto">最关键两IMX264情况还不一样，一个只跳一次，但是不来回跳，一个来回跳，但是画面会回绕移动几个像素。</p>
<p dir="auto">刚才又试了IMX178好像没问题。</p>
]]></description><link>http://forum.veye.cc/topic/727/树莓派5-imx264-raw12完全不可用</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 20:20:49 GMT</lastBuildDate><atom:link href="http://forum.veye.cc/topic/727.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Jul 2026 12:39:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Fri, 31 Jul 2026 09:26:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a><br />
今天偶然用imx178设置成2464，结果也有imx264同样的问题。<br />
应该是rpi5驱动和系统匹配的问题。</p>
]]></description><link>http://forum.veye.cc/post/5123</link><guid isPermaLink="true">http://forum.veye.cc/post/5123</guid><dc:creator><![CDATA[golden0514]]></dc:creator><pubDate>Fri, 31 Jul 2026 09:26:21 GMT</pubDate></item><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Fri, 31 Jul 2026 01:02:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/golden0514" aria-label="Profile: golden0514">@<bdi>golden0514</bdi></a> 好的，2464分辨率应该是内存对齐的问题。并不是传输错误的问题。树莓派5新版本的piOS好像是修改了内存对齐的逻辑：</p>
<pre><code>紧密排列图片大小
Buffersize= ALIGN_UP（width*bit_depth/8,32）*ALIGN_UP(height,16)

行buffersize需要是32字节的整数倍；列buffersize是16字节的整数倍。

举例来说，3088*2064@8bit的图像大小是6406656; 3088*2064@10bit的图像大小是7991808；3088*2064@12bit 的图像大小是9576960。
</code></pre>
<p dir="auto">可能修改一下pixel_layer_convert 工具就可以了。</p>
<p dir="auto">暂时的话，建议你使用width是32的整数倍的roi分辨率试一下。</p>
]]></description><link>http://forum.veye.cc/post/5122</link><guid isPermaLink="true">http://forum.veye.cc/post/5122</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Fri, 31 Jul 2026 01:02:28 GMT</pubDate></item><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Thu, 30 Jul 2026 13:50:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a><br />
我长时间跑了一下，设置成2432*2056应该可以正常工作了。</p>
]]></description><link>http://forum.veye.cc/post/5121</link><guid isPermaLink="true">http://forum.veye.cc/post/5121</guid><dc:creator><![CDATA[golden0514]]></dc:creator><pubDate>Thu, 30 Jul 2026 13:50:17 GMT</pubDate></item><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Thu, 30 Jul 2026 07:07:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a><br />
我测试的是2464x2056，2432x2056好像不会出问题，这会我正在测试。</p>
<p dir="auto">另外100帧正常只有不到3秒，不一定出问题，我搞成1fps，跑100秒。<br />
这个是我的测试脚本和测试文件，好像2432没问题，但是2464有问题。<br />
./long_expo_1.sh 1000000<br />
w image acq is 00<br />
w expmode is 0<br />
w gain mode is 0<br />
w fps 1.00<br />
r fps is 1.00 fps<br />
w manual exp time is 1000000 us<br />
r current exptime is 999907 us</p>
<p dir="auto">./mv_mipi_i2c_new.sh -w testimg 1 -b 11</p>
<p dir="auto">./media_setting_rpi5.sh mvcam -fmt RAW12 -x 0 -y 0 -w 2464 -h 2056 -c 1</p>
<p dir="auto">v4l2-ctl -d /dev/video0 --set-fmt-video=width=2464,height=2056,pixelformat='Y12P' --stream-mmap --stream-count=100 --stream-to="y12-2464x2056.raw"</p>
<p dir="auto">./pixel_layer_convert  -I Y12P -i y12-2464x2056.raw -o y12-2464x2056_0001_new.raw -w 2464</p>
<p dir="auto"><a href="/assets/uploads/files/1785395168518-y12-2464x2056_0001_new.7z.a">y12-2464x2056_0001_new.7z.a</a> <a href="/assets/uploads/files/1785395168524-y12-2432x2056_0001_new.7z.a">y12-2432x2056_0001_new.7z.a</a></p>
<p dir="auto">.7z不让发，我加了.a后缀</p>
<p dir="auto">至少发帖的这几分钟2432x2056运行良好。</p>
]]></description><link>http://forum.veye.cc/post/5120</link><guid isPermaLink="true">http://forum.veye.cc/post/5120</guid><dc:creator><![CDATA[golden0514]]></dc:creator><pubDate>Thu, 30 Jul 2026 07:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Wed, 29 Jul 2026 02:47:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/golden0514" aria-label="Profile: golden0514">@<bdi>golden0514</bdi></a></p>
<p dir="auto">不好意思，隔了这么久才给您回复。这几天咱们尽快解决。<br />
我这边使用如下手段进行抓图，并且测试，没有能重现您的问题。请您在您的树莓派上重复测试一下试试。</p>
<ol>
<li>配置分辨率并抓图100帧：</li>
</ol>
<pre><code>$ ./media_setting_rpi5.sh mvcam -fmt RAW12 -x 0 -y 0 -w 2432 -h 2056 -c 0
$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=2432,height=2056,pixelformat='Y12P' --stream-mmap --stream-count=100 --stream-to="y12-2432x2056.raw" 
</code></pre>
<ol start="2">
<li>从Y12P转为y12</li>
</ol>
<pre><code>./pixel_layer_convert  -I Y12P -i y12-2432x2056.raw -o y12-2432x2056_0001_new.raw -w 2432
</code></pre>
<p dir="auto">然后使用YUV Player Deluxe进行播放，是正常显示的。<br />
上面使用的脚本和转换工具都在这个文章里面：<br />
<a href="https://wiki.veye.cc/index.php?title=Mv_series_camera_appnotes_4_rpi/zh" rel="nofollow ugc">https://wiki.veye.cc/index.php?title=Mv_series_camera_appnotes_4_rpi/zh</a></p>
]]></description><link>http://forum.veye.cc/post/5119</link><guid isPermaLink="true">http://forum.veye.cc/post/5119</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Wed, 29 Jul 2026 02:47:44 GMT</pubDate></item><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Sat, 18 Jul 2026 03:45:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a> roi就是最大值，2464*2056<br />
fps也是最大值，不过试过不同fps，最短的fps 1Hz也回出现这个问题。<br />
试过了设置不同的roi也会出现。<br />
感觉是2464不需要pad导致的问题，IMX178 有pad，RAW10也有pad都没问题。</p>
]]></description><link>http://forum.veye.cc/post/5118</link><guid isPermaLink="true">http://forum.veye.cc/post/5118</guid><dc:creator><![CDATA[golden0514]]></dc:creator><pubDate>Sat, 18 Jul 2026 03:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Thu, 16 Jul 2026 08:03:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/golden0514" aria-label="Profile: golden0514">@<bdi>golden0514</bdi></a> 不好意思，再多问一句，你用的roi参数以及fps参数是多少？</p>
]]></description><link>http://forum.veye.cc/post/5117</link><guid isPermaLink="true">http://forum.veye.cc/post/5117</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Thu, 16 Jul 2026 08:03:43 GMT</pubDate></item><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Thu, 16 Jul 2026 06:32:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a><br />
这个是硬件连接图，使用官方的线，还试过自己买的线，也用v2转接板和官方22pin线试过，都有问题。<br />
<img src="/assets/uploads/files/1784183052400-cam.jpg" alt="cam.jpg" class=" img-fluid img-markdown" /><br />
这个是参数和版本查询结果<br />
<img src="/assets/uploads/files/1784183130259-setting.jpg" alt="setting.jpg" class=" img-fluid img-markdown" /><br />
raw8和raw10都工作正常，没有问题。这个是qt v4l2采集的raw8图像。<br />
<img src="/assets/uploads/files/1784183223601-raw8.jpg" alt="raw8.jpg" class=" img-fluid img-markdown" /><br />
raw12时用qt v4l2也可以查看是否正常。这个是正常的图像，两个数据在上面，打包数据在下面，v4l2好像按照彩色图像解包。<br />
<img src="/assets/uploads/files/1784183369084-normal.jpg" alt="normal.jpg" class=" img-fluid img-markdown" /><br />
这个是异常图像，正常数据跑到下面去了，打包数据在上面。<br />
<img src="/assets/uploads/files/1784183462599-bad.jpg" alt="bad.jpg" class=" img-fluid img-markdown" /><br />
连续显示的话可以看到图像的跳转，甚至是来回跳转，不过我测试的两个摄像头有一个只跳一次，有一个来回跳转。</p>
]]></description><link>http://forum.veye.cc/post/5116</link><guid isPermaLink="true">http://forum.veye.cc/post/5116</guid><dc:creator><![CDATA[golden0514]]></dc:creator><pubDate>Thu, 16 Jul 2026 06:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Thu, 16 Jul 2026 03:15:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/golden0514" aria-label="Profile: golden0514">@<bdi>golden0514</bdi></a> 另外，请问你使用的ffc cable长度？能否拍一个硬件连接图的照片我看看。</p>
<p dir="auto">raw8格式，使用我们veye_viewer客户端，是否有图像错误的问题？</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/golden0514" aria-label="Profile: golden0514">@<bdi>golden0514</bdi></a> <a href="/post/5111">said</a>:</p>
<p dir="auto">用QT V4L2也可以看到这种跳动，只不过是近似2×2排布。</p>
</blockquote>
<p dir="auto">我这边可以用这种方式来预览，尝试重现？</p>
]]></description><link>http://forum.veye.cc/post/5115</link><guid isPermaLink="true">http://forum.veye.cc/post/5115</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Thu, 16 Jul 2026 03:15:21 GMT</pubDate></item><item><title><![CDATA[Reply to 树莓派5 IMX264 RAW12完全不可用 on Thu, 16 Jul 2026 03:03:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/golden0514" aria-label="Profile: golden0514">@<bdi>golden0514</bdi></a><br />
不好意思，看到有点晚了。<br />
请确认一下相机的版本号，可以通过mv_mipi_i2c_new.sh进行读取。</p>
]]></description><link>http://forum.veye.cc/post/5113</link><guid isPermaLink="true">http://forum.veye.cc/post/5113</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Thu, 16 Jul 2026 03:03:55 GMT</pubDate></item></channel></rss>