<?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[how to get H256 hires encoded imgs from sdk 1.0 ?]]></title><description><![CDATA[<p dir="auto">Hello Team,<br />
I'm trying to get encoded hires images using sdk 1.0 and camera_server v1.6.2 from a voxl2 board with configuration 6 (TOF, HIRES and Tracking). The following is the output from <code>voxl-version</code></p>
<pre><code>voxl2:~$ voxl-version
--------------------------------------------------------------------------------
system-image: 1.6.2-M0054-14.1a-perf
kernel:       #1 SMP PREEMPT Fri May 19 22:19:33 UTC 2023 4.19.125
--------------------------------------------------------------------------------
hw version:   M0054
--------------------------------------------------------------------------------
voxl-suite:   1.0.0
--------------------------------------------------------------------------------
Packages:
Repo:  http://voxl-packages.modalai.com/ ./dists/qrb5165/sdk-1.0/binary-arm64/
Last Updated: 2023-11-12 06:55:14
List:
	libmodal-cv              0.3.2
	libmodal-exposure        0.0.8
	libmodal-journal         0.2.2
	libmodal-json            0.4.3
	libmodal-pipe            2.8.5
	libqrb5165-io            0.2.0
	libvoxl-cci-direct       0.1.5
	libvoxl-cutils           0.1.1
	mv-voxl                  0.1-r0
	qrb5165-bind             0.1-r0
	qrb5165-dfs-server       0.1.0
	qrb5165-imu-server       0.6.0
	qrb5165-slpi-test-sig    01-r0
	qrb5165-system-tweaks    0.2.2
	qrb5165-tflite           2.8.0-2
	voxl-bind-spektrum       0.1.0
	voxl-camera-calibration  0.4.0
	voxl-camera-server       1.6.2
	voxl-configurator        0.2.7
	voxl-cpu-monitor         0.4.6
	voxl-docker-support      1.2.5
	voxl-eigen3              3.4.0
	voxl-elrs                0.0.7
	voxl-esc                 1.2.2
	voxl-feature-tracker     0.2.3
	voxl-flow-server         0.3.3
	voxl-gphoto2-server      0.0.10
	voxl-jpeg-turbo          2.1.3
	voxl-lepton-server       1.1.2
	voxl-libgphoto2          0.0.4
	voxl-libuvc              1.0.7
	voxl-logger              0.3.4
	voxl-mavcam-manager      0.5.1
	voxl-mavlink             0.1.1
	voxl-mavlink-server      1.2.0
	voxl-modem               1.0.5
	voxl-mongoose            7.7.0-1
	voxl-mpa-to-ros          0.3.6
	voxl-mpa-tools           1.0.4
	voxl-opencv              4.5.5-1
	voxl-portal              0.5.9
	voxl-px4                 1.14.0-2.0.34
	voxl-px4-imu-server      0.1.2
	voxl-px4-params          0.1.8
	voxl-qvio-server         0.9.3
	voxl-remote-id           0.0.8
	voxl-slpi-uart-bridge    1.0.1
	voxl-streamer            0.7.1
	voxl-suite               1.0.0
	voxl-tag-detector        0.0.4
	voxl-tflite-server       0.3.1
	voxl-utils               1.3.1
	voxl-uvc-server          0.1.6
	voxl-vision-hub          1.6.6
	voxl2-system-image       1.6.2-r0
	voxl2-wlan               1.0-r0
--------------------------------------------------------------------------------
</code></pre>
<p dir="auto">I was able to get the camera-server to work with configuration 6 and the pipes are showing up in <code>voxl-inspect-cam -a</code> as shown below</p>
<pre><code>|           Pipe Name |  bytes  | wide |  hgt |exp(ms)| gain | frame id |latency(ms)|  fps |  mbps  | format
|   hires_large_color |13271040 | 4096 | 2160 | 33.23 |  431 |      489 |     77.1  | 30.0 | 3190.0 | NV12
| hires_large_encoded |   26549 | 4096 | 2160 | 33.23 |  431 |      489 |     89.3  | 30.0 |    7.2 | H265 (P)   
|    hires_large_grey | 8847360 | 4096 | 2160 | 33.23 |  431 |      489 |     71.8  | 30.0 | 2126.6 | RAW8
|   hires_small_color | 1179648 | 1024 |  768 | 33.23 |  431 |      490 |     60.6  | 30.0 |  283.5 | NV12
| hires_small_encoded |    1528 | 1024 |  768 | 33.23 |  431 |      490 |     63.0  | 30.0 |    0.5 | H265 (P)   
|    hires_small_grey |  786432 | 1024 |  768 | 33.23 |  431 |      490 |     59.4  | 30.0 |  189.0 | RAW8
|      hires_snapshot |
|            tof_conf |   38528 |  224 |  172 |  0.00 |    0 |     1669 |     29.6  |  5.0 |    1.5 | RAW8
|           tof_depth |   38528 |  224 |  172 |  0.00 |    0 |     1669 |     29.3  |  5.0 |    1.5 | RAW8
|              tof_ir |   38528 |  224 |  172 |  0.00 |    0 |     1669 |     29.0  |  5.0 |    1.5 | RAW8
|            tracking |  307200 |  640 |  480 |  5.61 |  303 |    10016 |     11.6  | 30.0 |   73.7 | RAW8

</code></pre>
<p dir="auto">However, I'm not able to see the output of the encoded hires neither in <code>voxl-portal</code> not when I subscribe to the encoded pipeline in the published topics from <code>voxl-mpa-to-ros</code>. In fact, when I try to subscribe to any encoded image topic, the node crashes immediately as shown below.</p>
<pre><code>voxl2:~$ roslaunch voxl_mpa_to_ros voxl_mpa_to_ros.launch 
... logging to /home/root/.ros/log/c26582ac-8191-11ee-99cc-9c5322cc8a09/roslaunch-m0054-8630.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is &lt;1GB.

started roslaunch server http://m0054:43361/

SUMMARY
========

PARAMETERS
 * /rosdistro: melodic
 * /rosversion: 1.14.13

NODES
  /
    voxl_mpa_to_ros_node (voxl_mpa_to_ros/voxl_mpa_to_ros_node)

auto-starting new master
process[master]: started with pid [8644]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to c26582ac-8191-11ee-99cc-9c5322cc8a09
process[rosout-1]: started with pid [8655]
started core service [/rosout]
process[voxl_mpa_to_ros_node-2]: started with pid [8658]


MPA to ROS app is now running

Found new interface: hires_large_color
Found new interface: hires_large_encoded
Found new interface: hires_large_grey
Found new interface: hires_small_color
Found new interface: hires_small_encoded
Found new interface: hires_small_grey
Found new interface: hires_snapshot
Found new interface: tof_conf
Found new interface: tof_depth
Found new interface: tof_ir
Found new interface: tracking
Found new interface: imu_apps
Found new interface: tof_pc
Found new interface: voa_pc_out
Interface tof_depth now publishing
Interface hires_small_grey now publishing
Interface tof_depth ceasing to publish
Interface hires_large_encoded now publishing
Interface hires_small_grey ceasing to publish
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
[voxl_mpa_to_ros_node-2] process has died [pid 8658, exit code -6, cmd /opt/ros/melodic/lib/voxl_mpa_to_ros/voxl_mpa_to_ros_node __name:=voxl_mpa_to_ros_node __log:=/home/root/.ros/log/c26582ac-8191-11ee-99cc-9c5322cc8a09/voxl_mpa_to_ros_node-2.log].
log file: /home/root/.ros/log/c26582ac-8191-11ee-99cc-9c5322cc8a09/voxl_mpa_to_ros_node-2*.log
</code></pre>
<p dir="auto">Is there any possible solution for this issue? Please help!</p>
]]></description><link>https://forum.modalai.com/topic/2852/how-to-get-h256-hires-encoded-imgs-from-sdk-1-0</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 05:20:39 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/2852.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Nov 2023 19:32:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Mon, 28 Oct 2024 10:39:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alex-kushleyev" aria-label="Profile: Alex-Kushleyev">@<bdi>Alex-Kushleyev</bdi></a> thanks - I think the voxl-streamer was enabled, but not running.<br />
Problem solved, thank you!</p>
]]></description><link>https://forum.modalai.com/post/19462</link><guid isPermaLink="true">https://forum.modalai.com/post/19462</guid><dc:creator><![CDATA[Bernhard]]></dc:creator><pubDate>Mon, 28 Oct 2024 10:39:55 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Thu, 24 Oct 2024 15:07:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bernhard" aria-label="Profile: Bernhard">@<bdi>Bernhard</bdi></a> , please follow these steps:</p>
<ul>
<li>make sure <code>voxl-camera-server</code> is running either in the background service or manually started in a terminal</li>
<li>confirm that <code>hires_small_encoded</code> stream is being generated by the camera server:
<ul>
<li><code>voxl-inspect-cam hires_small_encoded</code> should show stream statistics like FPS, frame resolution and size</li>
<li>if you do not see any stats using the inspect-cam tool, make sure the <code>small encoded</code> stream is enabled in your <code>/etc/modalai/voxl-camera-server.conf</code></li>
</ul>
</li>
<li>assuming the encoded stream is working, launch <code>voxl-streamer</code>:
<ul>
<li><code>voxl-streamer -i hires_small_encoded</code></li>
<li>it should also tell you the URL to connect to, although often the ip in the url is local (<code>127.0.0.1</code>) so you need to replace that with actual network IP address</li>
</ul>
</li>
</ul>
<p dir="auto">Alex</p>
]]></description><link>https://forum.modalai.com/post/19407</link><guid isPermaLink="true">https://forum.modalai.com/post/19407</guid><dc:creator><![CDATA[Alex Kushleyev]]></dc:creator><pubDate>Thu, 24 Oct 2024 15:07:11 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Wed, 23 Oct 2024 12:16:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alex-kushleyev" aria-label="Profile: Alex-Kushleyev">@<bdi>Alex-Kushleyev</bdi></a> I have tried using VLC as well, that does not work.<br />
voxl-streamer is configured correctly (I think):</p>
<pre><code>"input-pipe":   "hires_small_encoded",
"bitrate":      1500000,
"rotation":     0,
"decimator":    1,
"port": 8900
</code></pre>
<p dir="auto">But when I try to connect via rtsp://&lt;IP&gt;:8900/live nothing happens.</p>
]]></description><link>https://forum.modalai.com/post/19392</link><guid isPermaLink="true">https://forum.modalai.com/post/19392</guid><dc:creator><![CDATA[Bernhard]]></dc:creator><pubDate>Wed, 23 Oct 2024 12:16:07 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Sat, 05 Oct 2024 04:15:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bernhard" aria-label="Profile: Bernhard">@<bdi>Bernhard</bdi></a> , you may be missing a step, if you want to stream the encoded stream using RTSP protocol, please take a look at <code>voxl-streamer</code>, which is our standard package : <a href="https://docs.modalai.com/voxl-streamer/" rel="nofollow ugc">https://docs.modalai.com/voxl-streamer/</a></p>
<p dir="auto">voxl-streamer can perform the following functions:</p>
<ul>
<li>receive unencoded yuv (or raw8 monochrome) images from camera server and encode them using VOXL2's hardware encoder (using gstreamer + OMX api) and serve the encoded video as rtsp service</li>
<li>receive encoded video stream from camera server and serve the encoded video directly</li>
</ul>
<p dir="auto">To play the h264 / h265 stream you can use VLC as Zach mentioned, or ffmpeg / ffplay:</p>
<pre><code>ffplay rtsp://&lt;board-ip&gt;:port/live 
</code></pre>
<p dir="auto">port number is printed when you run <code>voxl-streamer</code> (port can be modified with a command line argument)</p>
<p dir="auto">Alex</p>
]]></description><link>https://forum.modalai.com/post/19222</link><guid isPermaLink="true">https://forum.modalai.com/post/19222</guid><dc:creator><![CDATA[Alex Kushleyev]]></dc:creator><pubDate>Sat, 05 Oct 2024 04:15:01 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Tue, 01 Oct 2024 15:48:55 GMT]]></title><description><![CDATA[<p dir="auto">Also <a class="plugin-mentions-user plugin-mentions-a" href="/user/bernhard" aria-label="Profile: Bernhard">@<bdi>Bernhard</bdi></a> - you will never be able to view the encoded stream on voxl-portal, just on VLC or something like QGC. SDK 1.0 does support h264 which is software encoding though so innately it will be slower - does this work out the gate for you?</p>
]]></description><link>https://forum.modalai.com/post/19182</link><guid isPermaLink="true">https://forum.modalai.com/post/19182</guid><dc:creator><![CDATA[Zachary Lowell 0]]></dc:creator><pubDate>Tue, 01 Oct 2024 15:48:55 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Tue, 01 Oct 2024 15:48:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/aashry" aria-label="Profile: aashry">@<bdi>aashry</bdi></a> voxl-camera-server with H265 support was implemented and included in an SDK past 1.0 - any reason why you are not upgrading to 1.3.3?</p>
<p dir="auto">The other option is you mix and match versions of voxl-camera-server with your current SDK version, but odds are that will have quite a bit of conflicts as it is dependent on new versions of modalpipe and such.</p>
<p dir="auto">Zach</p>
]]></description><link>https://forum.modalai.com/post/19181</link><guid isPermaLink="true">https://forum.modalai.com/post/19181</guid><dc:creator><![CDATA[Zachary Lowell 0]]></dc:creator><pubDate>Tue, 01 Oct 2024 15:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Fri, 20 Sep 2024 13:29:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/aashry" aria-label="Profile: aashry">@<bdi>aashry</bdi></a>, did you actually solve this problem?<br />
I am running into the same issue.</p>
<p dir="auto">Camera config is alright, stream config seems to be right as well, but I cannot get an encoded stream in either voxl-portal or vlc.</p>
<p dir="auto">Any help would be greatly appreciated.</p>
<p dir="auto">BR</p>
]]></description><link>https://forum.modalai.com/post/19076</link><guid isPermaLink="true">https://forum.modalai.com/post/19076</guid><dc:creator><![CDATA[Bernhard]]></dc:creator><pubDate>Fri, 20 Sep 2024 13:29:36 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Tue, 14 Nov 2023 21:33:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aashry" aria-label="Profile: aashry">@<bdi>aashry</bdi></a> What UAV are you flying? Is this an off the shelf one from modalai or did you assemble it yourself?</p>
<p dir="auto">Usually that error means there is a hardware issue with the cameras</p>
]]></description><link>https://forum.modalai.com/post/13220</link><guid isPermaLink="true">https://forum.modalai.com/post/13220</guid><dc:creator><![CDATA[wilkinsaf]]></dc:creator><pubDate>Tue, 14 Nov 2023 21:33:27 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Tue, 14 Nov 2023 19:32:22 GMT]]></title><description><![CDATA[<p dir="auto">Anyone can help?</p>
]]></description><link>https://forum.modalai.com/post/13215</link><guid isPermaLink="true">https://forum.modalai.com/post/13215</guid><dc:creator><![CDATA[aashry]]></dc:creator><pubDate>Tue, 14 Nov 2023 19:32:22 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Mon, 13 Nov 2023 05:56:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aashry" aria-label="Profile: aashry">@<bdi>aashry</bdi></a></p>
<p dir="auto">Edit1: Everything above applies to the <code>h264</code> encoding as well, I haven't been able to view it in the portal and it has the same problem with the ros node.</p>
]]></description><link>https://forum.modalai.com/post/13175</link><guid isPermaLink="true">https://forum.modalai.com/post/13175</guid><dc:creator><![CDATA[aashry]]></dc:creator><pubDate>Mon, 13 Nov 2023 05:56:08 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Sun, 12 Nov 2023 20:11:24 GMT]]></title><description><![CDATA[<p dir="auto">Also, it seems like <code>voxl-camera-server</code> randomly stops working. Is SDK 1.0 completely unusable so far? or Is there a workaround that we can do?</p>
<pre><code>|           Pipe Name |  bytes  | wide |  hgt |exp(ms)| gain | frame id |latency(ms)|  fps |  mbps  t
|   hires_large_color | Server Disconnected
| hires_large_encoded | Server DisconnectedMost likely the server stopped without cleaning up
Client is cleaning up pipes for the serverdMost likely the server stopped without cleaning up
ERROR in pipe_client_init_channel opening request pipe: No such device or addressing request pipe: Ns
| hires_small_encoded | Server DisconnectedERROR in pipe_client_init_channel opening request pipe: Ns
|    hires_small_grey | Server DisconnectedClient is cleaning up pipes for the server
ERROR in pipe_client_init_channel opening request pipe: No such device or address cleaning up
Most likely the server stopped without cleaning up
Client is cleaning up pipes for the serverdMost likely the server stopped without cleaning up
ERROR in pipe_client_init_channel opening request pipe: No such device or address
Most likely the server stopped without cleaning upn pipe_client_init_channel opening request pipe: Ns
Client is cleaning up pipes for the serveraning up
ERROR in pipe_client_init_channel opening request pipe: No such device or address
Most likely the server stopped without cleaning up
Client is cleaning up pipes for the server
ERROR in pipe_client_init_channel opening request pipe: No such device or address
Most likely the server stopped without cleaning up
Client is cleaning up pipes for the server
ERROR in pipe_client_init_channel opening request pipe: No such device or address
Most likely the server stopped without cleaning up
Client is cleaning up pipes for the server
ERROR in pipe_client_init_channel opening request pipe: No such device or address
Most likely the server stopped without cleaning up
Client is cleaning up pipes for the server

</code></pre>
]]></description><link>https://forum.modalai.com/post/13172</link><guid isPermaLink="true">https://forum.modalai.com/post/13172</guid><dc:creator><![CDATA[aashry]]></dc:creator><pubDate>Sun, 12 Nov 2023 20:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to how to get H256 hires encoded imgs from sdk 1.0 ? on Sun, 12 Nov 2023 19:46:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aashry" aria-label="Profile: aashry">@<bdi>aashry</bdi></a> the following is the <code>voxl-camera-server.conf</code> file as well for your reference. Should I change anything here to fix that issue? Please elaborate.</p>
<pre><code>/**
 * voxl-camera-server Configuration File
 *
 * Each camera has configurations for up to 4 HAL3 streams:
 *    - `preview` stream for raw unprocessed images from CV cameras
 *    - `small_video` 720p (ish) h264/h265 compressed for fpv video streaming
 *    - `large_video` 4k (ish) h264/h265 for onboard video recording to disk
 *    - `snapshot` ISP-processed JPG snapshots that get saved to disk
 *
 * on QRB5165 platforms (VOXL2 and VOXL2 mini) you can only have 3 of the 4 enabled
 *
 * This file is generated from default values by voxl-configure-cameras.
 * Do not expect arbitrary resolutions to work, the ISP and video compression
 * pipelines only support very specific resolutions.
 *
 * The default video compression mode is cqp or Constant Quantization Parameter
 *
 *
 *
 */
{
	"version":	0.1,
	"cameras":	[{
			"type":	"pmd-tof",
			"name":	"tof",
			"enabled":	true,
			"camera_id":	0,
			"fps":	5,
			"en_preview":	true,
			"preview_width":	224,
			"preview_height":	1557,
			"pre_format":	"tof",
			"ae_mode":	"off",
			"standby_enabled":	false,
			"decimator":	5
		}, {
			"type":	"imx214",
			"name":	"hires",
			"enabled":	true,
			"camera_id":	2,
			"fps":	30,
			"en_preview":	false,
			"preview_width":	640,
			"preview_height":	480,
			"pre_format":	"nv21",
			"en_small_video":	true,
			"small_video_width":	1024,
			"small_video_height":	768,
			"small_venc_mode":	"h265",
			"small_venc_br_ctrl":	"cqp",
			"small_venc_Qfixed":	30,
			"small_venc_Qmin":	15,
			"small_venc_Qmax":	40,
			"small_venc_nPframes":	9,
			"small_venc_mbps":	2,
			"en_large_video":	true,
			"large_video_width":	4096,
			"large_video_height":	2160,
			"large_venc_mode":	"h265",
			"large_venc_br_ctrl":	"cqp",
			"large_venc_Qfixed":	38,
			"large_venc_Qmin":	15,
			"large_venc_Qmax":	50,
			"large_venc_nPframes":	29,
			"large_venc_mbps":	30,
			"en_snapshot":	true,
			"en_snapshot_width":	4160,
			"en_snapshot_height":	3120,
			"ae_mode":	"isp"
		}, {
			"type":	"ov7251",
			"name":	"tracking",
			"enabled":	true,
			"camera_id":	1,
			"fps":	30,
			"en_preview":	true,
			"preview_width":	640,
			"preview_height":	480,
			"pre_format":	"raw8",
			"ae_mode":	"lme_msv",
			"ae_desired_msv":	60,
			"ae_filter_alpha":	0.600000023841858,
			"ae_ignore_fraction":	0.20000000298023224,
			"ae_slope":	0.05000000074505806,
			"ae_exposure_period":	1,
			"ae_gain_period":	1
		}]
}

</code></pre>
]]></description><link>https://forum.modalai.com/post/13171</link><guid isPermaLink="true">https://forum.modalai.com/post/13171</guid><dc:creator><![CDATA[aashry]]></dc:creator><pubDate>Sun, 12 Nov 2023 19:46:33 GMT</pubDate></item></channel></rss>