-
Notifications
You must be signed in to change notification settings - Fork 8k
video: add video compression support to tcpserversink sample #95862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
ae1dfbb
2e9c2b0
ce9469b
81bc8e5
e5aaab5
4adeb03
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Video buffer pool | ||
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=10000000 | ||
CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=10 | ||
|
||
# Camera interface | ||
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_PIXEL_FORMAT="pRAA" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those 3 DCMIPP / SENSOR related config are not needed since they depend on the sensor and moreover are already set within the boards/shields/st_b_cams_imx_mb1854/Kconfig.defconfig which is applied when selecting the st_b_cams_imx_mb1854 shield |
||
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_WIDTH=2592 | ||
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_HEIGHT=1944 | ||
CONFIG_FPU=y | ||
|
||
# Capture | ||
CONFIG_VIDEO_FRAME_WIDTH=1920 | ||
CONFIG_VIDEO_FRAME_HEIGHT=1080 | ||
CONFIG_VIDEO_PIXEL_FORMAT="NV12" | ||
CONFIG_VIDEO_CAPTURE_N_BUFFERING=2 | ||
|
||
# Video encoder | ||
CONFIG_MAIN_STACK_SIZE=4096 | ||
CONFIG_VIDEO_ENCODED_PIXEL_FORMAT="H264" | ||
|
||
# Network buffers | ||
CONFIG_NET_BUF_RX_COUNT=4 | ||
CONFIG_NET_BUF_TX_COUNT=8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Video buffer pool | ||
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=10000000 | ||
CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=10 | ||
|
||
# Camera interface | ||
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_PIXEL_FORMAT="pRAA" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those 3 DCMIPP / SENSOR related config are not needed since they depend on the sensor and moreover are already set within the boards/shields/st_b_cams_imx_mb1854/Kconfig.defconfig which is applied when selecting the st_b_cams_imx_mb1854 shield |
||
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_WIDTH=2592 | ||
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_HEIGHT=1944 | ||
CONFIG_FPU=y | ||
|
||
# Capture | ||
CONFIG_VIDEO_FRAME_WIDTH=1920 | ||
CONFIG_VIDEO_FRAME_HEIGHT=1080 | ||
CONFIG_VIDEO_PIXEL_FORMAT="NV12" | ||
CONFIG_VIDEO_CAPTURE_N_BUFFERING=2 | ||
|
||
# Video encoder | ||
CONFIG_MAIN_STACK_SIZE=4096 | ||
CONFIG_VIDEO_ENCODED_PIXEL_FORMAT="H264" | ||
|
||
# Network buffers | ||
CONFIG_NET_BUF_RX_COUNT=4 | ||
CONFIG_NET_BUF_TX_COUNT=8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2025 STMicroelectronics. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
zephyr,videoenc = &venc; | ||
}; | ||
}; | ||
|
||
&venc { | ||
status = "okay"; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Video buffer pool | ||
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=10000000 | ||
CONFIG_VIDEO_BUFFER_POOL_NUM_MAX=10 | ||
|
||
# Camera interface | ||
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_PIXEL_FORMAT="pRAA" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Those 3 DCMIPP / SENSOR related config are not needed since they depend on the sensor and moreover are already set within the boards/shields/st_b_cams_imx_mb1854/Kconfig.defconfig which is applied when selecting the st_b_cams_imx_mb1854 shield |
||
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_WIDTH=2592 | ||
CONFIG_VIDEO_STM32_DCMIPP_SENSOR_HEIGHT=1944 | ||
CONFIG_FPU=y | ||
|
||
# Capture | ||
CONFIG_VIDEO_FRAME_WIDTH=1920 | ||
CONFIG_VIDEO_FRAME_HEIGHT=1080 | ||
CONFIG_VIDEO_PIXEL_FORMAT="NV12" | ||
CONFIG_VIDEO_CAPTURE_N_BUFFERING=2 | ||
|
||
# Video encoder | ||
CONFIG_MAIN_STACK_SIZE=4096 | ||
CONFIG_VIDEO_ENCODED_PIXEL_FORMAT="H264" | ||
|
||
# Network buffers | ||
CONFIG_NET_BUF_RX_COUNT=4 | ||
CONFIG_NET_BUF_TX_COUNT=8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2025 STMicroelectronics. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
zephyr,videoenc = &venc; | ||
}; | ||
}; | ||
|
||
&venc { | ||
status = "okay"; | ||
}; |
Uh oh!
There was an error while loading. Please reload this page.