sample_venc和sample_muxer运行问题

Viewed 45

问题描述


这段代码和mp4_muxer我都试了,这个项目输出的结果:
也是一样的问题,get_stream error,并且其他部分都正常,运行后无法退出程序(被mapi_sys_deinit)卡死,这个demo我没有更改任何东西(我看有适应)
msh /sharefs>./camera_demo.elf -s 39 -n 1 -t 1 -o /sharefs
sensor type: 39.
chn_num: 1.
encoder payload type: 265.
output path: /sharefs.
mapi start sample_venc...
[VENC_S] [Func]:mapi_msg_get_venc_mod [Line]:536 [Info]:###
[] [Func]:mapi_msg_get_dpu_mod [Line]:325 [Info]:###
kd_mapi_venc_init start 0
venc[0] 1280*720 size:692224 cnt:30 srcfps:30 dstfps:30 rate:4000 rc_mode:1 type:265 profile:5
kd_mapi_venc_init end
[VENC_S] [Func]:kd_mapi_venc_registercallback [Line]:477 [Info]:0 ###
[VENC_S] [Func]:kd_mapi_venc_start [Line]:329 [Info]:start chn_num:0 s32_frame_cnt:-1
[VENC_S] [Func]:kd_mapi_venc_start [Line]:349 [Info]:end chn_num[0].output_tid:286456
[VENC_S] [Func]:kd_mapi_venc_bind_vi [Line]:391 [Info]:start 0
[VENC_S] [Func]:kd_mapi_venc_bind_vi [Line]:433 [Info]:end
kd_mapi_vicap_start dev id is 0
mirror mirror is 0 , sensvenc_stream_threads 0 start ###
Thu Jan 1 00:03:41 1970 144000000 Nor tpye is 39
ov5647anoseconds
_power_rest OV5647_CAM_PIN_CSI2 is 21
set output err, set default format ISP_PIX_FMT_YUV420SP
[tuning] dev: 0
acq_win.width: 1920
acq_win.height: 1080
pipe_ctrl: 4294967289
sensor_fd: 9
sensor_type: 39
sensor_name: ov5647_csi2
database_name: ov5647-1920x1080
buffer_num: 0
buffer_size: 0
[tuning] chn: 0
out_win.width: 1280
out_win.height: 720
bit_width: 0
pix_format: 5
buffer_num: 6
buffer_size: 1382400
yraw_size: 0
uv_size: 0
v_size: 0
block_type: 1
wait_time: 500
chn_enable: 1
isp_3dnr_en is 0 g_isp_dev_ctx[dev_num].dev_attr.pipe_ctrl.bits.dnr3_enable is 1
VsiCamDeviceCreate hw:0-vt:0 created!
ov5647_power_rest OV5647_CAM_PIN_CSI2 is 21
kd_mpi_isp_set_output_chn_format, width(1280), height(720), pix_format(5)
[dw] init, version Mar 14 2025 16:36:59
w^C[VENC_S] [Func]:kd_mapi_venc_unbind_vi [Line]:439 [Info]:start vicap stop 0
[VENC_S] [Func]:kd_mapi_venc_unbind_vi [Line]:468 [Info]:vicap stop end 0
kd_mpi_isp_stop_stream chn enable is 1
kd_mpi_isp_stop_stream chn enable is 0
kd_mpi_isp_stop_stream chn enable is 0
release reserved vb 273977344
ov5647_power_rest OV5647_CAM_PIN_CSI2 is 21
[VENC_S] [Func]:kd_mapi_venc_stop [Line]:355 [Info]:start chn_num:0
[VENC_S] [Func]:kd_mapi_venc_stop [Line]:362 [Info]:output_tid:286456
kd_mpi_venc_get_stream[0] error ret:0
kd_mpi_venc_get_stream[0] error ret:0
venc_stream_threads 0 exit ###
ch 0: 1048 pictures encoded. Average FrameRate = 30 Fps
[VENC_S] [Func]:kd_mapi_venc_stop [Line]:385 [Info]:end
kd_mapi_venc_deinit start 0
ch 0: total used pages 969
kd_mapi_venc_deinit end
vpu_exit>q_wm 118
[IPCMSG]:s32Id -1 not connect
[SYS_S] [Func]:media_msg_server_deinit [Line]:195 [Info]:kd_ipcmsg_disconnect fail:0x1901

2 Answers

这两个demo不会是小核的吧

你运行的是哪个demo,代码位置在哪里?