tickley / rknn_yolov5_Multithreading

3 stars 0 forks source link

如果需要修改接收rtsp流的地址需要在哪里修改呢? #1

Open huochen1 opened 1 month ago

huochen1 commented 1 month ago

rtsp://192.168.2.97/live/main_stream 串流 ip修改为本机 就是这一段中这个ip地址是将获取到的结果传输出来,那么这个传输的ip地址是不是需要在代码中的哪里设置的

huochen1 commented 1 month ago

我试了,编译成功后,好像推流不成功,我使用vlc拉取,rtsp://192.168.1.1/live/main_stream,是连接不上的,本机ip为这个192.168.1.1,rtsp://localhost/live/main_stream也不行

tickley commented 1 month ago

需要在前面加上sudo

huochen1 commented 1 month ago

收到,谢谢

tickley commented 1 month ago

这个是自动获取系统的IP地址,如果要指定IP可以看一下这个 [https://github.com/tickley/RtspServer]

huochen1 commented 1 month ago

加上sudo可以显示了,不过只能拉取一帧图像就卡住了,是不是还需要什么操作的呢

tickley commented 1 month ago

分辨率要小于3840x2160,数据量太大会卡住

huochen1 commented 1 month ago

是小于3840x2160,我用的是1920*1080的,可能是其他问题?

tickley commented 1 month ago

我是使用这个软件接收EasyPlayer-RTSP

huochen1 commented 1 month ago

一样是不行的,不知道哪个环节出错了

tickley commented 1 month ago

你要看看摄像头或者网络,也可以把输入分辨率降到720P试一下,你也使用这个仓库的试一下推流mipi摄像头,运行后会打印拉流地址RtspServer

huochen1 commented 1 month ago

我也使用了您这个仓库的https://github.com/tickley/RtspServer的发现也是一样就是只有一幅图片使用的是usb摄像头来了,并不是视频流,我使用的是3588的芯片是不是 芯片的问题

huochen1 commented 1 month ago

使用测试的test.h264视频文件可以播放这个仓库RtspServer的,应该是摄像头的问题,然后使用这个test.h264视频文件流,用来运行本仓库的rknn_yolov5_video_demo的话还是只有一帧图像

huochen1 commented 1 month ago

image

huochen1 commented 1 month ago

输出就是这样只有开头的那一帧之后就不会变化了

tickley commented 1 month ago

使用这个 这个rknn_yolov5_video_demo是播放H264文件的没有测试过 usb摄像头要输出yuv才能推流,我使用的是mipi摄像头

huochen1 commented 1 month ago

使用的是海康rtsp摄像头来的,usb摄像头是另外那个仓库使用的,同时我还使用了那个测试h264流都是显示第一帧就不显示了

---原始邮件--- 发件人: @.> 发送时间: 2024年6月12日(周三) 晚上8:15 收件人: @.>; 抄送: @.**@.>; 主题: Re: [tickley/rknn_yolov5_Multithreading] 如果需要修改接收rtsp流的地址需要在哪里修改呢? (Issue #1)

使用这个 这个rknn_yolov5_video_demo是播放H264文件的没有测试过 usb摄像头要输出yuv才能推流,我使用的是mipi摄像头

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

tickley commented 1 month ago

那你得看一下网络是不是有问题

huochen1 commented 1 month ago

应该是没问题的vlc单独拉流是可以显示的,作者是使用这个zlm来推流的是吧

---原始邮件--- 发件人: @.> 发送时间: 2024年6月12日(周三) 晚上8:53 收件人: @.>; 抄送: @.**@.>; 主题: Re: [tickley/rknn_yolov5_Multithreading] 如果需要修改接收rtsp流的地址需要在哪里修改呢? (Issue #1)

那你得看一下网络是不是有问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

tickley commented 1 month ago

接收是zlm,发送是使用RK的一个库,你发一下完整的log,我使用h264视频流,是可以获取到完整流的就是有点卡而已,你也可以看看生成的out.h264是不是完整视频,还是只有一帧

huochen1 commented 1 month ago

这样那可能不知道哪里设置错了,是可以保存完整的视频流的,我使用ffplay播放这个h264文件可以播放

---原始邮件--- 发件人: @.> 发送时间: 2024年6月12日(周三) 晚上9:31 收件人: @.>; 抄送: @.**@.>; 主题: Re: [tickley/rknn_yolov5_Multithreading] 如果需要修改接收rtsp流的地址需要在哪里修改呢? (Issue #1)

接收是zlm,发送是使用RK的一个库,你发一下完整的log,我使用h264视频流,是可以获取到完整流的就是有点卡而已,你也可以看看生成的out.h264是不是完整视频,还是只有一帧

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

huochen1 commented 1 month ago

sudo ./rknn_yolov5_video_demo model/RK3588/yolov5s-640-640.rknn rtsp://admin:admin@192.168.1.155:554 264 [INFO rtsp_demo.c:281:rtsp_new_demo] rtsp server demo starting on port 888 [DEBUG rtsp_demo.c:481:rtsp_new_session] add session path: /live/main_stream Loading mode... sdk version: 1.6.0 (9a7b5d24c@2023-12-13T17:31:11) driver version: 0.8.2 model input num: 1, output num: 3 index=0, name=images, n_dims=4, dims=[1, 640, 640, 3], n_elems=1228800, size=1228800, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003922 index=0, name=output, n_dims=4, dims=[1, 255, 80, 80], n_elems=1632000, size=1632000, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003860 index=1, name=283, n_dims=4, dims=[1, 255, 40, 40], n_elems=408000, size=408000, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003922 index=2, name=285, n_dims=4, dims=[1, 255, 20, 20], n_elems=102000, size=102000, fmt=NCHW, type=INT8, qnt_type=AFFINE, zp=-128, scale=0.003915 model is NHWC input fmt model input height=640, width=640, channel=3 mpi_dec_test start mpi_dec_test decoder test start mpp_type 7 app_ctx=0x7fcf47b340 decoder=0x5581acf1a0 2024-06-13 06:43:27.776 D rknn_yolov5_video_demo[2248-stamp thread] util.cpp:366 operator() | Stamp thread started enter any key to exit 2024-06-13 06:43:27.777 I rknn_yolov5_video_demo[2248-rknn_yolov5_vid] EventPoller.cpp:466 EventPollerPool | EventPoller created size: 8 2024-06-13 06:43:27.777 D rknn_yolov5_video_demo[2248-event poller 0] RtspPlayer.cpp:93 play | rtsp://192.168.1.155:554 admin admin 0 2024-06-13 06:43:27.825 D rknn_yolov5_video_demo[2248-event poller 0] RtspPlayer.cpp:488 handleResPAUSE | seekTo(ms):0 2024-06-13 06:43:27.825 W rknn_yolov5_video_demo[2248-event poller 0] RtspPlayer.cpp:689 onPlayResult_l | 0 rtsp play success play success!on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=29 2024-06-13 06:43:27.904 D rknn_yolov5_video_demo[2248-event poller 0] MediaSink.cpp:137 emitAllTrackReady | all track ready use 100ms 2024-06-13 06:43:27.904 I rknn_yolov5_video_demo[2248-event poller 0] main_video.cc:540 on_mk_play_event_func | got video track: H264 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=8 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=9 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=29 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=8 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=60540 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=103 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=99 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 decode_get_frame get info changed found on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=97 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008024 data_vir=0x7fac3fd000 fd=47 0x7fa8043c60 encoder test start w 1920 h 1080 type 7 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! rgaapi version 1.10.0[2] once run use 26.781000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 loadLabelName ./model/coco_80_labels_list.txt chair @ (900 563 1062 970) 0.328924 frame_index1=1 . enc_data_size=40 chn 0 size 167392 qp 12 time_gap=-104decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008128 data_vir=0x7f8e608000 fd=53 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 21.178000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 558 1065 980) 0.335514 frame_index1=2 . enc_data_size=167392 chn 0 size 3995 qp 13 time_gap=15decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008178 data_vir=0x7f8e20c000 fd=58 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.734000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 556 1065 982) 0.328372 frame_index1=3 . enc_data_size=3995 chn 0 size 1018 qp 13 time_gap=3on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=84 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=85 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=108 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=113 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=127 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008274 data_vir=0x7fac3fd000 fd=47 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.755000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 556 1065 982) 0.334748 frame_index1=4 . enc_data_size=1018 chn 0 size 133 qp 13 time_gap=-42decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008320 data_vir=0x7f8e608000 fd=53 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.735000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 556 1065 982) 0.331529 frame_index1=5 . enc_data_size=133 chn 0 size 1972 qp 12 time_gap=4decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008370 data_vir=0x7f8e20c000 fd=58 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.743000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 556 1065 980) 0.318900 frame_index1=6 . enc_data_size=1972 chn 0 size 456 qp 12 time_gap=5decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008421 data_vir=0x7f8dc10000 fd=75 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.739000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 chair @ (900 565 1062 968) 0.331974 frame_index1=7 . enc_data_size=456 chn 0 size 4432 qp 12 time_gap=3decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008471 data_vir=0x7f8d814000 fd=76 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 26.167000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 chair @ (900 563 1062 970) 0.333828 frame_index1=8 . enc_data_size=4432 chn 0 size 1234 qp 12 time_gap=3on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=87 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=99 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=88 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=427 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=159 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=102 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008574 data_vir=0x7fac3fd000 fd=47 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 21.621000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 556 1065 982) 0.342488 frame_index1=9 . enc_data_size=1234 chn 0 size 2660 qp 12 time_gap=-39decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008610 data_vir=0x7f8e608000 fd=53 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 20.006000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 chair @ (900 563 1062 970) 0.337430 frame_index1=10 . enc_data_size=2660 chn 0 size 2753 qp 12 time_gap=18decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008660 data_vir=0x7f8e20c000 fd=58 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.823000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 chair @ (900 563 1062 970) 0.342105 frame_index1=11 . enc_data_size=2753 chn 0 size 314 qp 12 time_gap=6decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008710 data_vir=0x7f8dc10000 fd=75 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 20.092000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 chair @ (900 563 1062 970) 0.331958 frame_index1=12 . enc_data_size=314 chn 0 size 2109 qp 11 time_gap=18decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008760 data_vir=0x7f8d814000 fd=76 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 22.563000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 chair @ (900 565 1062 966) 0.342902 frame_index1=13 . enc_data_size=2109 chn 0 size 2475 qp 11 time_gap=12decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008811 data_vir=0x7f8d418000 fd=78 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.892000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 556 1065 982) 0.331529 frame_index1=14 . enc_data_size=2475 chn 0 size 2972 qp 11 time_gap=2on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=120 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=138 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=118 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=114 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=122 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008864 data_vir=0x7fac3fd000 fd=47 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.804000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 chair @ (900 561 1062 968) 0.339392 frame_index1=15 . enc_data_size=2972 chn 0 size 5788 qp 11 time_gap=-1decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008911 data_vir=0x7f8e608000 fd=53 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.579000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 556 1065 982) 0.340572 frame_index1=16 . enc_data_size=5788 chn 0 size 3055 qp 11 time_gap=4decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261008961 data_vir=0x7f8e20c000 fd=58 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.915000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 553 1065 985) 0.350474 frame_index1=17 . enc_data_size=3055 chn 0 size 2050 qp 11 time_gap=3decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261009011 data_vir=0x7f8dc10000 fd=75 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.627000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 555 1065 985) 0.350198 frame_index1=18 . enc_data_size=2050 chn 0 size 1021 qp 11 time_gap=4decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261009061 data_vir=0x7f8d814000 fd=76 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.818000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 553 1065 985) 0.348772 frame_index1=19 . enc_data_size=1021 chn 0 size 9478 qp 11 time_gap=3on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=95 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=104 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=108 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=93 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=97 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261009116 data_vir=0x7f8d418000 fd=78 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 20.230000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 chair @ (900 561 1059 968) 0.318685 frame_index1=20 . enc_data_size=9478 chn 0 size 4099 qp 11 time_gap=12decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261009162 data_vir=0x7fac3fd000 fd=47 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 22.838000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 553 1065 985) 0.332924 frame_index1=21 . enc_data_size=4099 chn 0 size 3288 qp 11 time_gap=13decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261009213 data_vir=0x7f8e608000 fd=53 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 20.166000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 553 1065 985) 0.345048 frame_index1=22 . enc_data_size=3288 chn 0 size 1510 qp 11 time_gap=19decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261009263 data_vir=0x7f8e20c000 fd=58 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 24.205000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (909 572 1065 985) 0.348850 frame_index1=23 . enc_data_size=1510 chn 0 size 3828 qp 11 time_gap=8decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261009314 data_vir=0x7f8dc10000 fd=75 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 21.613000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 chair @ (900 563 1062 970) 0.346550 frame_index1=24 . enc_data_size=3828 chn 0 size 3922 qp 11 time_gap=13on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=113 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=90 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=88 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=112 on_track_frame_out ctx=0x7fcf47b340 decoder=0x5581acf1a0 receive packet size=85 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261009367 data_vir=0x7f8d814000 fd=76 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 20.234000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 556 1065 982) 0.331284 frame_index1=25 . enc_data_size=3922 chn 0 size 3384 qp 11 time_gap=12decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920 pts=0 dts=0 get one frame 1718261009413 data_vir=0x7f8d418000 fd=78 input image 1920x1080 stride 1920x1088 format=2560 resize with RGA! once run use 25.628000 ms post process config: box_conf_threshold = 0.25, nms_threshold = 0.45 refrigerator @ (900 556 1065 982) 0.337691 frame_index1=26 . 这个是运行的打印,我看每次的数据大小好像都不一样是不是可能是数据量大小的问题

tickley commented 1 month ago

我看这个都是正常的打印,因为每一帧大小不一样,所以数据量不一样

tickley commented 1 month ago

我这边测试接收流发送出去都是正常的

huochen1 commented 1 month ago

不知道啥原因了,我这里接收摄像头的流是正常的,但是如果我改用rtmp推流的话延迟直接到了5s左右,不知道您的rtsp流延迟大概多久呢

---原始邮件--- 发件人: @.> 发送时间: 2024年6月14日(周五) 中午11:46 收件人: @.>; 抄送: @.**@.>; 主题: Re: [tickley/rknn_yolov5_Multithreading] 如果需要修改接收rtsp流的地址需要在哪里修改呢? (Issue #1)

我这边测试接收流发送出去都是正常的

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

tickley commented 1 month ago

使用vlc这个软件延迟很大,我这边如果单纯使用摄像头推流不做RKNN,延迟差不多是120ms左右 使用这个接收EasyPlayer-RTSP

huochen1 commented 1 month ago

那这个延迟您是使用什么工具测试的呢

---原始邮件--- 发件人: @.> 发送时间: 2024年6月17日(周一) 上午8:29 收件人: @.>; 抄送: @.**@.>; 主题: Re: [tickley/rknn_yolov5_Multithreading] 如果需要修改接收rtsp流的地址需要在哪里修改呢? (Issue #1)

使用vlc这个软件延迟很大,我这边如果单纯使用摄像头推流不做RKNN,延迟差不多是120ms左右 使用这个接收EasyPlayer-RTSP

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

tickley commented 4 weeks ago

用手机相机拍,摄像头对着计数器,手机拍下RTSP显示的时间和计数器的时间去相减就可以了

huochen1 commented 3 weeks ago

EasyPlayer-RTSP 还是得要这个软件,只不过我的电脑可能有问题就延迟很久才出现画面,如果我想cv::cvtColor(bgrImage, yuvImage, cv::COLOR_BGR2YUV_I420);用这个bgr转yuv再使用void read_yuv_buffer(RK_U8 *buf, Mat &yuvImg, RK_U32 width, RK_U32 height)这个函数的话好像好像颜色就变了,可以这样使用的吗?

tickley commented 2 weeks ago

用不了,这个我试过用opencv转出来颜色很怪