不会飞的脑

不会飞的脑

0个粉丝

1

问答

0

专栏

0

资料

不会飞的脑  发布于  2025-02-28 13:30:39
采纳率 100%
1个问答
642

Hi3519dv500在原vio的基础上修改增加chn1取不到帧

问题描述

想实现下面的视频流的逻辑功能:


使用两个通道,输出两个相同的画面,其中通道0的实现是它原来vio的线程,通道1的实现是自己新增的线程。通道1通过不断的取帧送帧来达到视频的效果。

因此在sample_vio的基础上修改,将线程1添加在sample_vio_start_route函数里面。在运行过程中发现chn0能够正常的显示图像,但是chn1在获取图像帧失败,通过cat /proc/umap/vpss发现在vpss chn output status里面只进行了enable,其余均是null。

vpss修改过的设置

我在sample_vio_start_vpss里面复制了通道1的属性和通道0相同,并且设置了chn1的height,width=(224,224),depth=2,compress_mode = OT_COMPRESS_MODE_NONE,同时设置了vpss grp的crop_info也为height,width=(224,224)。
下面是sample_vio_start_vpss函数的代码:

相关代码

下面是sample_vio_start_route的代码:

下面是新增线程函数sample_nnn_process的代码:

运行的信息

麻烦各位同事大佬看看是哪里出了问题导致chn1取不到帧

我来回答
回答9个
时间排序
认可量排序

UncleRoderick

51个粉丝

16

问答

4

专栏

16

资料

UncleRoderick 2025-02-28 13:45:25
认可1
易百纳技术社区该回答已被题主采纳为最佳答案

完整的PROC信息发下看看

不会飞的脑
不会飞的脑   回复   UncleRoderick  2025-03-01 10:11:39
0

[VPSS] Version: [HI3519DV500_MPP_V2.0.1.0 B040 Release], Build Time[Sep 26 2023, 21:37:09]

————————————————————vpss module param———————————————————————————————-
schedule_mode max_out_width max_out_height
NORMAL 8192 8192

————————————————————vpss grp cfg——————————————————————————————————
grp is_rotation_input_support is_dis_gyro_support max_split_num max_out_rgn_num is_save_out_lut out_lut_buf_size
0 N N 3 1 N 0

————————————————————vpss grp attr1—————————————————————————————————
grp max_w max_h pixel_fmt src_rate dst_rate user_ctrl backup
0 2688 1520 YVU-SP420 -1 -1 Y N

————————————————————vpss grp attr2—————————————————————————————————
grp buf_share_en buf_share_chn dci ie dei_mode dei_width dei_height mcf_en act_buf_share
0 N 0 N N OFF 0 0 N N

————————————————————vpss grp crop info———————————————————————————————
grp crop_en coord x y width height trim_x trim_y trim_width trim_height
0 N ABS 0 0 0 0 0 0 2688 1520

————————————————————vpss grp 3dnr attr———————————————————————————————
grp enable type ref_cmp motion_mode
0 N VIDEO N NORM

————————————————————vpss 3dnr param————————————————————————————————-

————————————————————frame interrupt attr——————————————————————————————
grp int_type early_line
0 - 0

————————————————————vpss grp gdc param———————————————————————————————
grp in_width in_height lut_cell_size
0 2688 1520 16

————————————————————vpss grp spread attr——————————————————————————————
grp enable coef

————————————————————vpss grp ldc v1 attr——————————————————————————————
grp enable aspect x_ratio y_ratio xy_ratio center_x_offset center_y_offset distortion_ratio

————————————————————vpss grp ldc v2 attr——————————————————————————————
grp enable aspect x_ratio y_ratio xy_ratio len_x len_y shift_x shift_y coef_intp_ratio

————————————————————vpss grp rotation attr—————————————————————————————
grp enable rotation_type view_type angle x_offset y_offset width height

————————————————————vpss grp fisheye attr—————————————————————————————-
grp enable mount_mode rgn_num bg_color lmf_en hor_offset ver_offset trapezoid_coef fan_strength

————————————————————vpss grp fisheye rgn attr———————————————————————————-
grp rgn_index view_mode in_radius out_radius pan tilt hor_zoom ver_zoom out_x out_y out_w out_h

————————————————————vpss grp pmf attr———————————————————————————————-
grp enable width height pmf_coef

————————————————————vpss grp fov attr———————————————————————————————-
grp enable fov_coef

————————————————————vpss grp lut attr———————————————————————————————-
grp pre_lut_en post_lut_en lut_mode ratio

————————————————————vpss grp lut——————————————————————————————————
grp name in_width in_height out_width out_height cell_size phys_addr

————————————————————vpss grp zme attr———————————————————————————————-
grp width height

————————————————————vpss grp stitch attr——————————————————————————————
grp enable pipe_num sync_en stitch_mode correction_mode

————————————————————vpss grp stitch correction cylindrical attr——————————————————-
grp pipe pmf_enable dst_width dst_height x_offset y_offset ratio pmf_coef

————————————————————vpss grp stitch correction lut attr——————————————————————-
grp pipe in_width in_height out_width out_height cell_size phys_addr

————————————————————vpss grp stitch blend param——————————————————————————-
grp buf_num position[0] range[0] position[1] range[1] position[2] range[2]

————————————————————vpss chn crop info———————————————————————————————
grp chn crop_en coord x y width height trim_x trim_y trim_width trim_height
0 0 N ABS 0 0 0 0
0 1 N ABS 0 0 0 0

————————————————————vpss chn attr1—————————————————————————————————
grp chn enable mode width height align mirror flip src_rate dst_rate depth vb_src pool_id
0 0 Y USER 2688 1520 32 N N -1 -1 0 common -
0 1 Y USER 2688 1520 32 N N -1 -1 0 common -

————————————————————vpss chn attr2—————————————————————————————————
grp chn aspect video_x video_y video_w video_h bg_color border left_w right_w top_w bottom_w bd_color
0 0 NONE 0 0 2688 1520 0x90 N 0 0 0 0 0x0
0 1 NONE 0 0 0 0 0x0 N 0 0 0 0 0x0

————————————————————vpss chn attr3—————————————————————————————————
grp chn sharpen sp_strength quick_send scale_type
0 0 N 0 N NORMAL
0 1 N 0 N NORMAL

————————————————————vpss chn fmu info———————————————————————————————-
grp chn fmu_mode
0 0 off
0 1 off

————————————————————vpss ext chn attr1———————————————————————————————
grp ext_chn enable src_chn width height src_rate dst_rate depth align src_type vb_src pool_id

————————————————————vpss ext chn attr2———————————————————————————————
grp ext_chn scale_type

————————————————————vpss chn low delay attr————————————————————————————-
grp chn enable line_cnt one_buf_en one_buf_addr act_low_delay_en
0 0 Y 200 N 0x0 Y

————————————————————vpss rgn info—————————————————————————————————-
grp cover mosaic corner overlay position
0 0 0 0 0 cur

————————————————————vpss grp stitch pipe status——————————————————————————-
grp pipe recv_pic preview_lost free_num busy_num overlap_point0x overlap_point1x

————————————————————vpss grp gdc status——————————————————————————————-
grp enable dis_en out_width out_height
0 N N 0 0

————————————————————vpss chn proc ex————————————————————————————————
grp chn rotate cover_ex mosaic_ex line_ex corner_ex overlay_ex
0 0 N 0 0 0 0 0
0 1 N 0 0 0 0 0

————————————————————vpss node status————————————————————————————————
grp free_num busy_num delay_num backup cur
0 9 0 0 0 0

————————————————————vpss grp work status——————————————————————————————
grp recv_pic preview_lost new_do old_do new_undo old_undo start_fail start cost_time max_cost_time vpss
0 450 0 440 0 10 0 0 Y 1540 1769 0

————————————————————vpss grp video frame info———————————————————————————-
grp width height pixel_fmt video_format dynamic_range cmp_mode recv_fmu first_pic_pts cur_pic_pts
0 2688 1520 YVU-SP420 LINEAR SDR8 SEG off 0 0

————————————————————vpss chn output status—————————————————————————————
grp chn enable width height pixel_fmt video_format dynamic_range cmp_mode send_ok frame_rate proc_time
0 0 Y 2688 1520 YVU-SP420 LINEAR SDR8 SEG 440 30 1881
0 1 Y 0 0 UNKNOWN LINEAR SDR8 SEG 0 0 0

————————————————————vpss drv work status——————————————————————————————
link_int bus_err dcmp_err frame_err malloc_err free_err start_suc0 start_err0 node_err0
440 0 0 0 0 0 440 0 0

————————————————————vpss hardware node queue————————————————————————————
free_num wait_num proc_num sel00 busy000 busy001 sel01 busy010 busy011
22 0 0 0 0 0 0 0 0

————————————————————vpss int work status——————————————————————————————
cnt_per_sec max_cnt_per_sec cost_time max_cost_time cost_time_per_sec max_cost_time_per_sec
61 61 46 506 14304 14489

UncleRoderick
UncleRoderick   回复   不会飞的脑  2025-03-01 10:45:07
1

把VPSS chn的depth参数设置为大于0,为0时无法get frame

不会飞的脑
不会飞的脑   回复   UncleRoderick  2025-03-01 16:46:03
0

我在上述代码截图中设置了vpss_cfg->chn_attr[1].depth = 2;但是还是显示的错误码为0xa0078016,即图像队列为空。想请问是设置的结构体错误吗还是有其他遗漏的地方,谢谢大哥解答

UncleRoderick
UncleRoderick   回复   不会飞的脑  2025-03-01 18:12:52
0

PROC信息发下

不会飞的脑
不会飞的脑   回复   UncleRoderick  2025-03-01 18:41:03
0

完整的vpss的proc信息没有发生改变,还是我上面回复您的那些信息

UncleRoderick
UncleRoderick   回复   不会飞的脑  2025-03-01 19:03:15
0

没有变化的话说明你的depth参数没有设置到哦

不会飞的脑
不会飞的脑   回复   UncleRoderick  2025-03-01 19:34:32
0

明白了,谢谢哥,已经解决了。是因为设置了depth后没有更新到vpss——cfg中导致出现了一直取不到帧

不会飞的脑

0个粉丝

1

问答

0

专栏

0

资料

不会飞的脑 2025-03-01 10:13:24
认可0

现在显示vpss chn0的画面:

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区