Toybrick

楼主: hisping

RK3399Pro入门教程(10)RTSP推流介绍

lfb6054

中级会员

积分
232
51#
发表于 2023-3-27 16:20:51 | 只看该作者
yuys 发表于 2019-10-17 15:22
在局域网里,在PC 端口,通过opencv获取板子上的推流,PC上显示非常容易出现卡死。 ...

不一定,你是用的opencv老版本吧,没有编译ffmpeg吧
回复

使用道具 举报

Gang

注册会员

积分
91
52#
发表于 2023-7-18 14:21:27 | 只看该作者
我下载了Debian10的代码,在板子上把摄像头改成了video5,在启动了VLC播放流以后,VLC的图像出不来,板子上狂打
V4L2FramedSource::doGetNextFrame use 144
mpi_enc_test start
mpp[3302]: mpp_rt: NOT found ion allocator
mpp[3302]: mpp_rt: found drm allocator
mpp[3302]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[3302]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [640:480] stride [640:480]
mpp[3302]: mpp_enc: send header for codec/prep cfg change
mpp[3302]: mpp_enc: mode vbr bps [1500000:2000000:2500000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[3302]: mpp_enc: MPP_ENC_SET_RC_CFG bps 1152000 [1080000 : 1224000] fps [30:30] gop 60
mpp[3302]: mpp_enc: send header for rc cfg change rc_mode/fps/gop
mpp[3302]: mpp_enc: mode cbr bps [1080000:1152000:1224000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[3302]: mpp_enc: send header for codec/prep cfg change
mpp[3302]: mpp_enc: Please use MPP_ENC_GET_HDR_SYNC instead of unsafe MPP_ENC_GET_EXTRA_INFO
mpp[3302]: mpp_enc: NOTE: MPP_ENC_GET_HDR_SYNC needs MppPacket input
encoded frame 0 size 200177
encode max 1 framesmpi_enc_test success total frame 1 bps 48042480
V4L2FramedSource::doGetNextFrame use 26 ,

到最后RTSPserver崩溃掉,
StreamEncoder::doGetNextFrame() use 50479
StreamEncoder::doGetNextFrame() use 50534
StreamEncoder::doGetNextFrame() use 50587
StreamEncoder::doGetNextFrame() use 50643
StreamEncoder::doGetNextFrame() use 50697
StreamEncoder::doGetNextFrame() use 50871
V4L2FramedSource::doGetNextFrame use 20
mpi_enc_test start
mpp[3302]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[3302]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [640:480] stride [640:480]
mpp[3302]: mpp_enc: send header for codec/prep cfg change
mpp[3302]: mpp_enc: mode vbr bps [1500000:2000000:2500000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[3302]: mpp_enc: MPP_ENC_SET_RC_CFG bps 1152000 [1080000 : 1224000] fps [30:30] gop 60
mpp[3302]: mpp_enc: send header for rc cfg change rc_mode/fps/gop
mpp[3302]: mpp_enc: mode cbr bps [1080000:1152000:1224000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[3302]: mpp_enc: send header for codec/prep cfg change
mpp[3302]: mpp_enc: Please use MPP_ENC_GET_HDR_SYNC instead of unsafe MPP_ENC_GET_EXTRA_INFO
mpp[3302]: mpp_enc: NOTE: MPP_ENC_GET_HDR_SYNC needs MppPacket input
mpp[3302]: mpp_drm: os_allocator_drm_alloc handle_to_fd failed ret -1
mpp[3302]: mpp_buffer: mpp_buffer_create failed to create buffer with size 460800
mpp[3302]: hal_h264e_vepu_v2: Assertion buf failed at h264e_vepu_buf_get_frame_buffer:293
mpp[3302]: mpp_drm: os_allocator_drm_alloc handle_to_fd failed ret -1
mpp[3302]: mpp_buffer: mpp_buffer_create failed to create buffer with size 460800
mpp[3302]: hal_h264e_vepu_v2: Assertion buf failed at h264e_vepu_buf_get_frame_buffer:293
mpp[3302]: mpp_buffer: mpp_buffer_get_fd invalid NULL input from hal_h264e_vepu2_get_task_v2
mpp[3302]: mpp_buffer: mpp_buffer_get_fd invalid NULL input from hal_h264e_vepu2_get_task_v2
mpp[3302]: mpp_drm: os_allocator_drm_alloc handle_to_fd failed ret -1
mpp[3302]: mpp_buffer: mpp_buffer_create failed to create buffer with size 128
mpp[3302]: hal_h264e_vepu_v2: Assertion buf failed at h264e_vepu_buf_get_nal_size_table:276
encoded frame 0 size 4941
encode max 1 framesmpi_enc_test success total frame 1 bps 1185840
StreamEncoder::doGetNextFrame() use 143
V4L2FramedSource::doGetNextFrame use 21
mpi_enc_test start
mpp[3302]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[3302]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [640:480] stride [640:480]
mpp[3302]: mpp_enc: send header for codec/prep cfg change
mpp[3302]: mpp_enc: mode vbr bps [1500000:2000000:2500000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[3302]: mpp_enc: MPP_ENC_SET_RC_CFG bps 1152000 [1080000 : 1224000] fps [30:30] gop 60
mpp[3302]: mpp_enc: send header for rc cfg change rc_mode/fps/gop
mpp[3302]: mpp_enc: mode cbr bps [1080000:1152000:1224000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[3302]: mpp_enc: send header for codec/prep cfg change
mpp[3302]: mpp_enc: Please use MPP_ENC_GET_HDR_SYNC instead of unsafe MPP_ENC_GET_EXTRA_INFO
mpp[3302]: mpp_enc: NOTE: MPP_ENC_GET_HDR_SYNC needs MppPacket input
mpp[3302]: mpp_drm: os_allocator_drm_alloc handle_to_fd failed ret -1
mpp[3302]: mpp_buffer: mpp_buffer_create failed to create buffer with size 48256
mpp[3302]: mpp_drm: os_allocator_drm_alloc handle_to_fd failed ret -1
mpp[3302]: mpp_buffer: mpp_buffer_create failed to create buffer with size 460800
mpp[3302]: hal_h264e_vepu_v2: Assertion buf failed at h264e_vepu_buf_get_frame_buffer:293
mpp[3302]: mpp_drm: os_allocator_drm_alloc handle_to_fd failed ret -1
mpp[3302]: mpp_buffer: mpp_buffer_create failed to create buffer with size 460800
mpp[3302]: hal_h264e_vepu_v2: Assertion buf failed at h264e_vepu_buf_get_frame_buffer:293
mpp[3302]: mpp_buffer: mpp_buffer_get_fd invalid NULL input from hal_h264e_vepu2_get_task_v2
mpp[3302]: mpp_buffer: mpp_buffer_get_fd invalid NULL input from hal_h264e_vepu2_get_task_v2
mpp[3302]: mpp_drm: os_allocator_drm_alloc handle_to_fd failed ret -1
mpp[3302]: mpp_buffer: mpp_buffer_create failed to create buffer with size 128
mpp[3302]: hal_h264e_vepu_v2: Assertion buf failed at h264e_vepu_buf_get_nal_size_table:276
encoded frame 0 size 4941
encode max 1 framesmpi_enc_test success total frame 1 bps 1185840
StreamEncoder::doGetNextFrame() use 135
V4L2FramedSource::doGetNextFrame use 20
mpi_enc_test start
mpp[3302]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[3302]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [640:480] stride [640:480]
mpp[3302]: mpp_enc: send header for codec/prep cfg change
mpp[3302]: mpp_enc: mode vbr bps [1500000:2000000:2500000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[3302]: mpp_enc: MPP_ENC_SET_RC_CFG bps 1152000 [1080000 : 1224000] fps [30:30] gop 60
mpp[3302]: mpp_enc: send header for rc cfg change rc_mode/fps/gop
mpp[3302]: mpp_enc: mode cbr bps [1080000:1152000:1224000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[3302]: mpp_enc: send header for codec/prep cfg change
mpp[3302]: mpp_enc: Please use MPP_ENC_GET_HDR_SYNC instead of unsafe MPP_ENC_GET_EXTRA_INFO
mpp[3302]: mpp_enc: NOTE: MPP_ENC_GET_HDR_SYNC needs MppPacket input
mpp[3302]: mpp_drm: os_allocator_drm_alloc handle_to_fd failed ret -1
mpp[3302]: mpp_buffer: mpp_buffer_create failed to create buffer with size 307200
mpp[3302]: mpp_enc: Assertion buffer failed at mpp_enc_check_pkt_buf:1147
mpp[3302]: mpp_buffer: mpp_buffer_get_ptr invalid NULL input from mpp_enc_check_pkt_buf
mpp[3302]: mpp_buffer: mpp_buffer_get_size invalid NULL input from mpp_enc_check_pkt_buf
mpp[3302]: mpp_enc: Assertion enc->pkt_buf failed at try_get_enc_task:1534
Segmentation fault
toybrick@debian10:~/IPCamera$



请问各位大神,我要怎么改才行呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表