Skip to content

Commit a339a58

Browse files
committed
samples: video: tcpserversink: add stm32n6570_dk support
Add configuration files for the stm32n6570_dk board. This enables streaming over ethernet of the images captured by MB1854 camera module compressed in 1920x1080 H264 video bitstream. Signed-off-by: Hugues Fruchet <[email protected]>
1 parent 4af481a commit a339a58

File tree

4 files changed

+75
-1
lines changed

4 files changed

+75
-1
lines changed

samples/drivers/video/tcpserversink/README.rst

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ This samples requires a video capture device and network support.
1818
- :zephyr:board:`mimxrt1064_evk`
1919
- `MT9M114 camera module`_
2020

21+
- :zephyr:board:`stm32n6570_dk`
22+
- :ref:`ST B-CAMS-IMX-MB1854 <st_b_cams_imx_mb1854>`
23+
2124
Wiring
2225
******
2326

@@ -26,6 +29,12 @@ J35 camera connector. A USB cable should be connected from a host to the micro
2629
USB debug connector (J41) in order to get console output via the freelink
2730
interface. Ethernet cable must be connected to RJ45 connector.
2831

32+
On :zephyr:board:`stm32n6570_dk`, the MB1854 IMX335 camera module must be plugged in
33+
the CSI-2 camera connector. A RJ45 ethernet cable must be plugged in the ethernet CN6
34+
connector. For an optimal image experience, it is advice to embed STM32 image signal
35+
processing middleware: https://github.com/stm32-hotspot/zephyr-stm32-mw-isp.
36+
37+
2938
Building and Running
3039
********************
3140

@@ -49,6 +58,26 @@ a video software pattern generator is supported by using :ref:`snippet-video-sw-
4958
:goals: build
5059
:compact:
5160

61+
For :zephyr:board:`stm32n6570_dk`, the sample can be built with the following command:
62+
63+
.. zephyr-app-commands::
64+
:zephyr-app: samples/drivers/video/tcpserversink
65+
:board: stm32n6570_dk
66+
:shield: st_b_cams_imx_mb1854
67+
:goals: build
68+
:compact:
69+
70+
The same can be built with H264 video compression support using :ref:`snippet-video-stm32-venc`:
71+
72+
.. zephyr-app-commands::
73+
:zephyr-app: samples/drivers/video/tcpserversink
74+
:board: stm32n6570_dk
75+
:shield: st_b_cams_imx_mb1854
76+
:snippets: video-stm32-venc
77+
:goals: build
78+
:compact:
79+
80+
5281
Sample Output
5382
=============
5483

@@ -71,7 +100,7 @@ Example with gstreamer:
71100
72101
For video software generator, the default resolution should be width=320 and height=160.
73102

74-
When using compression support, use this GStreamer command line:
103+
When using video compression support, use this GStreamer command line:
75104

76105
.. code-block:: console
77106
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Video buffer pool
2+
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=10000000
3+
CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=10
4+
5+
CONFIG_FPU=y
6+
7+
# Capture
8+
CONFIG_VIDEO_CAPTURE_N_BUFFERING=2
9+
10+
# Video encoder
11+
CONFIG_MAIN_STACK_SIZE=4096
12+
13+
# Network buffers
14+
CONFIG_NET_BUF_RX_COUNT=4
15+
CONFIG_NET_BUF_TX_COUNT=8
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Video buffer pool
2+
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=10000000
3+
CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=10
4+
5+
CONFIG_FPU=y
6+
7+
# Capture
8+
CONFIG_VIDEO_CAPTURE_N_BUFFERING=2
9+
10+
# Video encoder
11+
CONFIG_MAIN_STACK_SIZE=4096
12+
13+
# Network buffers
14+
CONFIG_NET_BUF_RX_COUNT=4
15+
CONFIG_NET_BUF_TX_COUNT=8
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Video buffer pool
2+
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=10000000
3+
CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=10
4+
5+
CONFIG_FPU=y
6+
7+
# Capture
8+
CONFIG_VIDEO_CAPTURE_N_BUFFERING=2
9+
10+
# Video encoder
11+
CONFIG_MAIN_STACK_SIZE=4096
12+
13+
# Network buffers
14+
CONFIG_NET_BUF_RX_COUNT=4
15+
CONFIG_NET_BUF_TX_COUNT=8

0 commit comments

Comments
 (0)