- 收藏
- 点赞
- 分享
- 举报
码流取走不及时,导致venc繁忙
我在使用3519来获得uvc镜头图像并出流时遇见问题,将镜头数据发送给vpss,然后从vpss中取出数据,处理后发送给venc,venc收到了数据,打开h264e的日志发现
————————————————————module param——————————————————————————————————
one_pack h264_vb_src power_save_en mini_buf_mode qp_hist_en
0 private 1 0 0
————————————————————chn attr————————————————————————————————————
id max_width max_height width height profile color_to_grey buf_size by_frame gop_mode max_stream_cnt
0 256 192 256 192 base n 36864 y normal_p 200
————————————————————picture info——————————————————————————————————
id enc_start enc_succeed lost discard p_skip recode release_stream unread_stream
0 104 104 0 0 0 0 0 104
————————————————————stream buffer—————————————————————————————————-
id base read_tail read_head write_tail write_head data_len buf_free
0 0xffffffc0132c0000 0x0 0x8c40 0x8c40 0x8c40 0 896
————————————————————ref_param info—————————————————————————————————
id pred_en base enhance used_frame max_used_frame rcn_ref_share_buf_en frame_buf_ratio force_i_blk_cnt
0 y 1 0 2 2 y 70 0
————————————————————roi_bg info——————————————————————————————————-
id bg_src_frame_rate bg_dst_frame_rate
0 -1 -1
————————————————————syntax info1——————————————————————————————————
id slice_split_en split_mode slice_size slice_output_en intra_refresh_en refresh_mode refresh_num qp_idr
0 n n/a n/a n/a n n/a n/a n/a
————————————————————syntax info2——————————————————————————————————
id profile entrpy_i entrpy_p entrpy_b trans_i trans_p scaling_list_valid poc dblk_idc alpha beta
0 base cavlc cavlc cavlc 4x4 4x4 n 0 0 0 0
————————————————————pu info————————————————————————————————————-
id constrained_intra search_window hor ver
0 0 auto 0 0
但是venc获取数据的线程超时 get venc stream time out, exit thread,这里用的时venc例程中获取数据的线程,图像是256x192的,venc的基本设置入下:
static td_s32 start_venc(const ot_sample_svp_switch switch_ptr,
sample_vo_cfg vo_cfg)
{
td_s32 ret = TD_SUCCESS;
ot_venc_chn h264_chn = 0;
sample_comm_venc_chn_param chn_param;
// ot_size ven_size = {1280, 720};
//ot_size ven_size = {640, 480};
ot_size ven_size = {256, 192};
chn_param.frame_rate = 50; / 30 is a number /
chn_param.stats_time = 2; / 2 is a number /
chn_param.gop = 30; / 60 is a number /
chn_param.venc_size = ven_size;
// chn_param.size = PIC_720P;
chn_param.size = PIC_256X192;
//chn_param.size = PIC_640X480;
chn_param.profile = 0;
chn_param.is_rcn_ref_share_buf = TD_TRUE;
chn_param.type = OT_PT_H264;
chn_param.rc_mode = SAMPLE_RC_CBR;
if (switch_ptr->is_venc_open == TD_TRUE) {
ret = sample_comm_venc_get_gop_attr(OT_VENC_GOP_MODE_NORMAL_P, &chn_param.gop_attr);
sample_svp_check_exps_goto(ret != TD_SUCCESS, end_0, SAMPLE_SVP_ERR_LEVEL_ERROR,
"Error(%#x),sample_comm_venc_get_gop_attr failed!\n", ret);
ret = sample_comm_venc_start(h264_chn, &chn_param);
sample_svp_check_exps_goto(ret != TD_SUCCESS, end_0, SAMPLE_SVP_ERR_LEVEL_ERROR,
"Error(%#x),sample_comm_venc_start failed!\n", ret);
ret = sample_comm_venc_start_get_stream(&h264_chn, 0);
sample_svp_check_exps_goto(ret != TD_SUCCESS, end_1, SAMPLE_SVP_ERR_LEVEL_ERROR,
"Error(%#x),sample_comm_venc_start_get_stream failed!\n", ret);
// printf("venc chn param.size.width is %d height is %d",chn_param.size.width,chn_param.size.height);
}
新手使用3519 救救孩子吧
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
-
142018-08-27 14:37:14
-
2016-06-08 14:27:07
-
2016-04-08 16:06:29
-
2019-03-27 10:45:59
-
2018-12-03 09:33:27
-
12018-10-09 12:00:15
-
102017-08-24 10:40:02
-
12019-03-27 18:59:07
-
2015-04-16 17:35:45
-
42017-03-17 13:37:53
-
42018-05-03 16:29:37
-
2018-05-23 10:50:17
-
2017-03-17 21:35:43
-
2016-07-10 10:45:05
-
2016-10-19 21:43:09
-
2023-04-06 09:33:17
-
2025-06-13 16:37:43
-
2017-09-01 14:01:55
-
2021-05-07 16:44:15

-
10hi3519 mipi detect分辨率异常
-
5bsp-i2c 11064000.i2c: wait idle abort!, RIS: 0x611
-
20SS928 SD3403 怎样读取MIPI接口的 raw 图像数据
-
10HI3516CV610 VENC的demo报错
-
5hi3519出现试图申请或者创建已经存在的 设备、通道或者资源
-
100SD3403|SS928 LDC畸变矫正错误
-
10HI3516DV600 IPC45E外置红外灯板使用问题
-
100SS928 SD3403烧写uboot到100%,但是uboot启动失败,有偿
-
5030元内超值视觉模组?海思主控+星闪模组来挑战!
-
103516dv500使用PQTool报错
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明