【已解决】[IPC SDK]IPC_DEMO_5.x 视频流播放问题

IPC/NVR/可视门铃等具备多媒体能力的设备,扫地机/AGV等机器人设备


Martin
Posts: 49

ping 10.168.11.251
PING 10.168.11.251 (10.168.11.251) 56(84) bytes of data.
64 bytes from 10.168.11.251: icmp_seq=1 ttl=63 time=4.76 ms
64 bytes from 10.168.11.251: icmp_seq=2 ttl=63 time=3.93 ms
64 bytes from 10.168.11.251: icmp_seq=3 ttl=63 time=4.30 ms
64 bytes from 10.168.11.251: icmp_seq=4 ttl=63 time=3.42 ms
64 bytes from 10.168.11.251: icmp_seq=5 ttl=63 time=8.81 ms
64 bytes from 10.168.11.251: icmp_seq=6 ttl=63 time=3.89 ms
64 bytes from 10.168.11.251: icmp_seq=7 ttl=63 time=4.76 ms
64 bytes from 10.168.11.251: icmp_seq=8 ttl=63 time=4.01 ms
64 bytes from 10.168.11.251: icmp_seq=9 ttl=63 time=4.38 ms
64 bytes from 10.168.11.251: icmp_seq=10 ttl=63 time=4.57 ms
64 bytes from 10.168.11.251: icmp_seq=11 ttl=63 time=3.25 ms
64 bytes from 10.168.11.251: icmp_seq=12 ttl=63 time=4.21 ms
64 bytes from 10.168.11.251: icmp_seq=13 ttl=63 time=3.97 ms
64 bytes from 10.168.11.251: icmp_seq=14 ttl=63 time=4.15 ms
64 bytes from 10.168.11.251: icmp_seq=15 ttl=63 time=3.90 ms
64 bytes from 10.168.11.251: icmp_seq=16 ttl=63 time=3.56 ms
64 bytes from 10.168.11.251: icmp_seq=17 ttl=63 time=3.89 ms
64 bytes from 10.168.11.251: icmp_seq=18 ttl=63 time=4.20 ms
64 bytes from 10.168.11.251: icmp_seq=19 ttl=63 time=3.99 ms
64 bytes from 10.168.11.251: icmp_seq=20 ttl=63 time=3.65 m

这是局域网设备

Martin
Posts: 49

Re: [IPC SDK]IPC_DEMO_5.x 视频流播放问题

我把帧率改成25fps也是一样的信息欸

User avatar
fallen-queen
Posts: 140

Re: [IPC SDK]IPC_DEMO_5.x 视频流播放问题

麻烦提供一下工具链信息,我更新一下SDK,加点打印排查一下,谢谢。

Martin
Posts: 49

Re: [IPC SDK]IPC_DEMO_5.x 视频流播放问题

aarch64-linux-gnu-gcc编译的

Martin
Posts: 49

Re: [IPC SDK]IPC_DEMO_5.x 视频流播放问题

Dbg:SDK Version:< TUYA IOT SDK V:5.3.26 BS:40.00_PT:2.2_LAN:3.4_CAD:1.0.4_CD:1.0.0 >
< BUILD AT:2022_08_15_15_41_33 BY ci_manage FOR ty_ipc_wr_wl_linux_sdk AT aarch64-buildroot-linux-gnu >
IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:1 SHUTDOWN_MODE:1 LITTLE_END:1 TLS_MODE:4 ENABLE_CLOUD_OPERATION:1 OPERATING_SYSTEM:100 ENABLE_SYS_RPC:0 RELIABLE_TRANSFER:0 ENABLE_LAN_ENCRYPTION:1 ENABLE_LAN_LINKAGE:0 ENABLE_LAN_DEV:0 >

这是SDK打印信息

User avatar
fallen-queen
Posts: 140

Re: [IPC SDK]IPC_DEMO_5.x 视频流播放问题

视频帧的pts有问题,看着是一直不变的,pts要求是微秒量级的时间戳。

捕获.PNG
Martin
Posts: 49

Re: [IPC SDK]IPC_DEMO_5.x 视频流播放问题

我是根据帧率设置的,帧率从30帧改到25、20,我都会改。

Attachments
a7e19e1ac560e3ee2f8e90fd402e8c7.png
User avatar
fallen-queen
Posts: 140

Re: [IPC SDK]IPC_DEMO_5.x 视频流播放问题

pts是需要累加的,少了+号。

捕获.PNG
User avatar
fallen-queen
Posts: 140

Re: [IPC SDK]IPC_DEMO_5.x 视频流播放问题

Martin 2023年 Mar 8日 10:44

我是根据帧率设置的,帧率从30帧改到25、20,我都会改。

建议参考demo的做法,设置一个pts变量,进行累加

Martin
Posts: 49

Re: [IPC SDK]IPC_DEMO_5.x 视频流播放问题

好的,我改成图片显示这样还是有这个信息:
[03-08 11:20:58 TUYA D][tuya_ring_buffer.c:343] ch0st0tr0 delay too much(seqNo:566->758)
[03-08 11:20:58 TUYA D][tuya_ring_buffer.c:348] ch0st0tr0 delay too much:0x7f930ee010 0x7f9320073a 0x7f9322e010 0x7f9316a3d6 30000
[03-08 11:20:58 TUYA D][tuya_ring_buffer.c:1076] skip to next frame, type(1) node 181 seqNo 581 ch0st0tr0
而且我看demo里面每次循环都先赋值0
log如文件

Attachments
ipc_test_log_202303081133.txt
(185.16 KiB) Downloaded 174 times
d9fdbe52d9fd67e5a4f730456a08644.png
Post Reply