【已解决】【SDK】本地录像无法按指定日期删除录像问题

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


Post Reply
17333092159
Posts: 33

【ty_ipc_wr_wl_linux_sdk-TuyaOS2.3.2_ty_ipc_wr_wl_linux_sdk_5.3.40_arm-anycloud-linux-uclibcgnueabi_release_wifi_ble_0.0.1-beta.1.tar.gz】
【问题描述】目前本地回放和录像功能都是正常的,但是在APP回放中点击删除某个日期的录像时APP会显示删除成功,但是卡主,SDK有应答,但是最后没有删除掉该日期的录像,APP要重登。
【日志】如下:
[09-12 15:18:30 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1290]
[09-12 15:18:30 TUYA E][tuya_ipc_stream_storage.c:3538] video cfg read failed readLen[0]. maybe reach the end
[09-12 15:18:30 TUYA D][tuya_ipc_stream_storage.c:2960] open new file
[09-12 15:18:31 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1320]
Dbg:p2p rev event cb=[11]
Dbg:PB Pause idx:0
[09-12 15:18:31 TUYA D][tuya_ipc_stream_storage.c:4430] set status pb:0 2
[09-12 15:18:31 TUYA D][tuya_ipc_stream_storage.c:4452] pause pb:0 2
[09-12 15:18:31 TUYA D][tuya_ipc_stream_storage.c:4457] curPbFileSeek[74286]
[09-12 15:18:31 TUYA D][tuya_ipc_stream_storage.c:2561] close file
[09-12 15:18:34 TUYA D][tuya_devos_health.c:30] feed watchdog
[09-12 15:18:34 TUYA D][tuya_devos_health.c:255] checking device health, prev stat:2, reason:0
[09-12 15:18:34 TUYA N][tuya_devos_health.c:179] tuya device health check finish, status is 2, reason is 0
[09-12 15:18:34 TUYA N][tuya_devos_health.c:180] cur free heap: -1
[09-12 15:18:34 TUYA N][tuya_devos_health.c:182] cur workq depth: 0, msgq depth: 0, timeq depth: 8
Dbg:p2p rev event cb=[202]
[09-12 15:18:34 TUYA D][tuya_ipc_p2p.c:1801] session[65543]video pb_video_resume
[09-12 15:18:34 TUYA D][tuya_ipc_p2p.c:4823] session[65543] __p2p_wait_concurr_idle start
[09-12 15:18:34 TUYA D][tuya_ipc_p2p.c:4840] session[65543] concurr idle[2][2]
[09-12 15:18:34 TUYA D][tuya_ipc_p2p.c:4846] session[65543] __p2p_wait_concurr_idle end
Dbg:p2p rev event cb=[12]
Dbg:PB Resume idx:0
[09-12 15:18:34 TUYA D][tuya_ipc_stream_storage.c:4430] set status pb:0 3
[09-12 15:18:34 TUYA D][tuya_ipc_stream_storage.c:4465] resume pb:0
[09-12 15:18:34 TUYA D][tuya_ipc_stream_storage.c:2575] abs file[/mnt/DCIM/2024/09/07/1725693160_0600/0100.media] seek[74286]
[09-12 15:18:35 TUYA D][tuya_ipc_p2p.c:5715] session[65543] audio Frame Send type[129] count[1100]
[09-12 15:18:35 TUYA D][tuya_ipc_p2p.c:4763] session detect run
[09-12 15:18:35 TUYA D][tuya_ipc_p2p.c:4719] session[65543] detech staticCnt[0]lstCnt[1340]vIFrameCnt[1340]
[09-12 15:18:35 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1350]

max nalu size = 79335, type: I, stream 0xc0ff0000

[09-12 15:18:36 TUYA D][tuya_ipc_p2p.c:3783] video send proc alive [1372000]
[09-12 15:18:36 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1380]
[09-12 15:18:37 TUYA D][tuya_ipc_stream_storage.c:3658] PB send videoCnt = 1400 audioCnt = 1727
[09-12 15:18:37 TUYA D][tuya_ipc_stream_storage.c:3660] VideoPB 0 pb_speed enum 1 Sleep:0 cur_ts:1725693264551 last_ts:1725693264540 curr_send:1726125517532 last_send:1726125517532
[09-12 15:18:37 TUYA D][tuya_ipc_stream_storage.c:3658] PB send videoCnt = 1400 audioCnt = 1728
[09-12 15:18:37 TUYA D][tuya_ipc_stream_storage.c:3660] VideoPB 0 pb_speed enum 1 Sleep:34 cur_ts:1725693264582 last_ts:1725693264540 curr_send:1726125517579 last_send:1726125517532
[09-12 15:18:37 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1410]
[09-12 15:18:38 TUYA D][tuya_ipc_p2p.c:5715] session[65543] audio Frame Send type[129] count[1200]
[Application][2024-09-12 15:18:38 048] .[09-12 15:18:39 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1440]
[09-12 15:18:40 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1470]
[09-12 15:18:41 TUYA D][tuya_ipc_p2p.c:5715] session[65543] audio Frame Send type[129] count[1300]
[09-12 15:18:41 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1500]
[09-12 15:18:42 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1530]
[09-12 15:18:43 TUYA E][tuya_ipc_stream_storage.c:3538] video cfg read failed readLen[0]. maybe reach the end
[09-12 15:18:43 TUYA D][tuya_ipc_stream_storage.c:2960] open new file
[09-12 15:18:44 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1560]
[09-12 15:18:44 TUYA D][tuya_ipc_p2p.c:5715] session[65543] audio Frame Send type[129] count[1400]
[09-12 15:18:45 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1590]
[09-12 15:18:45 TUYA D][tuya_ipc_stream_storage.c:3658] PB send videoCnt = 1600 audioCnt = 1977
[09-12 15:18:45 TUYA D][tuya_ipc_stream_storage.c:3660] VideoPB 0 pb_speed enum 1 Sleep:0 cur_ts:1725693272558 last_ts:1725693272547 curr_send:1726125525728 last_send:1726125525729
[09-12 15:18:45 TUYA D][tuya_ipc_stream_storage.c:3658] PB send videoCnt = 1600 audioCnt = 1978
[09-12 15:18:45 TUYA D][tuya_ipc_stream_storage.c:3660] VideoPB 0 pb_speed enum 1 Sleep:0 cur_ts:1725693272582 last_ts:1725693272547 curr_send:1726125525728 last_send:1726125525729
[09-12 15:18:45 TUYA D][tuya_ipc_stream_storage.c:3658] PB send videoCnt = 1600 audioCnt = 1979
[09-12 15:18:45 TUYA D][tuya_ipc_stream_storage.c:3660] VideoPB 0 pb_speed enum 1 Sleep:33 cur_ts:1725693272589 last_ts:1725693272547 curr_send:1726125525771 last_send:1726125525729
[09-12 15:18:45 TUYA D][tuya_ipc_p2p.c:4763] session detect run
[09-12 15:18:45 TUYA D][tuya_ipc_p2p.c:4719] session[65543] detech staticCnt[0]lstCnt[1602]vIFrameCnt[1602]
[09-12 15:18:46 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1620]
[09-12 15:18:47 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1650]
[09-12 15:18:47 TUYA D][tuya_ipc_p2p.c:3783] video send proc alive [1373000]
[09-12 15:18:48 TUYA D][tuya_ipc_p2p.c:5715] session[65543] audio Frame Send type[129] count[1500]
[Application][2024-09-12 15:18:48 063] .[09-12 15:18:48 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1680]
[09-12 15:18:49 TUYA D][tuya_ipc_p2p.c:3572] session cmd recv proc alive [671000] num[1]
[09-12 15:18:50 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1710]
[09-12 15:18:50 TUYA D][mqtt_client.c:228] mqtt_ping -->>
[09-12 15:18:50 TUYA D][mqtt_client.c:246] mqtt_ping <<--
[09-12 15:18:50 TUYA D][mqtt_client.c:1297] ping respond. update fail_cnt:0
[09-12 15:18:51 TUYA D][tuya_ipc_p2p.c:5715] session[65543] audio Frame Send type[129] count[1600]
[09-12 15:18:51 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1740]
[09-12 15:18:52 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1770]
[09-12 15:18:53 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1800]
[09-12 15:18:53 TUYA D][tuya_ipc_stream_storage.c:3658] PB send videoCnt = 1800 audioCnt = 2227
[09-12 15:18:53 TUYA D][tuya_ipc_stream_storage.c:3660] VideoPB 0 pb_speed enum 1 Sleep:0 cur_ts:1725693280546 last_ts:1725693280545 curr_send:1726125533851 last_send:1726125533851
[09-12 15:18:53 TUYA D][tuya_ipc_stream_storage.c:3658] PB send videoCnt = 1800 audioCnt = 2228
[09-12 15:18:53 TUYA D][tuya_ipc_stream_storage.c:3660] VideoPB 0 pb_speed enum 1 Sleep:34 cur_ts:1725693280587 last_ts:1725693280545 curr_send:1726125533893 last_send:1726125533851
[09-12 15:18:53 TUYA E][tuya_ipc_stream_storage.c:3538] video cfg read failed readLen[0]. maybe reach the end
[09-12 15:18:53 TUYA D][tuya_ipc_stream_storage.c:2960] open new file
[09-12 15:18:54 TUYA D][tuya_devos_health.c:30] feed watchdog
[09-12 15:18:54 TUYA D][tuya_ipc_p2p.c:5715] session[65543] audio Frame Send type[129] count[1700]
[09-12 15:18:55 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1830]
[09-12 15:18:56 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1860]
[09-12 15:18:56 TUYA D][tuya_ipc_p2p.c:4763] session detect run
[09-12 15:18:56 TUYA D][tuya_ipc_p2p.c:4719] session[65543] detech staticCnt[0]lstCnt[1865]vIFrameCnt[1865]
[09-12 15:18:57 TUYA D][tuya_ipc_p2p.c:5629] pb video send cnt[1890]
[09-12 15:18:57 TUYA D][tuya_ipc_p2p.c:3000] CTRL PLAY BACK session[65543] chn[0] speed[1]
Dbg:p2p rev event cb=[16]
[09-12 15:18:57 TUYA D][tuya_ipc_p2p.c:5715] session[65543] audio Frame Send type[129] count[1800]
[09-12 15:18:57 TUYA D][tuya_ipc_p2p.c:3000] CTRL PLAY BACK session[65543] chn[0] speed[1]
Dbg:p2p rev event cb=[16]
Dbg:p2p rev event cb=[11]
Dbg:PB Pause idx:0
[09-12 15:18:57 TUYA D][tuya_ipc_stream_storage.c:4430] set status pb:0 2
[09-12 15:18:57 TUYA D][tuya_ipc_stream_storage.c:4452] pause pb:0 2
[09-12 15:18:57 TUYA D][tuya_ipc_stream_storage.c:4457] curPbFileSeek[209441]
[09-12 15:18:57 TUYA D][tuya_ipc_stream_storage.c:2561] close file
Dbg:p2p rev event cb=[13]
Dbg:PB idx:0 mute
[09-12 15:18:57 TUYA D][tuya_ipc_stream_storage.c:4430] set status pb:0 0
[09-12 15:18:57 TUYA D][tuya_ipc_stream_storage.c:4436] mute pb:0 0
[09-12 15:18:57 TUYA D][tuya_ipc_p2p.c:1889] session pb audio stop[65543]
[Application][2024-09-12 15:18:58 069] .watcher remove 12, nfds 2
15084019 (null) ERROR:1356256: tcp socket 12 recv EOF or Error: -4095((null))
15084020 (null) ERROR:1356256: connect [-1] / response [-1] / complete [-1] / keepalive [0]
15084021 (null) INFO:1356256: tcp 12 state change: STREAM -> FAILED
15084021 (null) INFO:1275548: rtc session 00010007 on tcp status: -1, cost: 86414
15084021 (null) INFO:1275548: rtc 00010007 transport update 4: 2 -1 -1, 100 0 0
[09-12 15:18:59 TUYA D][tuya_ipc_p2p.c:3783] video send proc alive [1374000]
[09-12 15:18:59 TUYA N][tuya_svc_timer_task.c:796] Update Timer from cloud
[09-12 15:19:00 TUYA D][iot_httpc.c:1161] Post Data: {"devId":"6ca90fbb3ff467ad30p3fd","lastFetchTime":"0","t":1726125540}
[09-12 15:19:00 TUYA D][iot_httpc.c:1173] Post URL: https://a2.tuyacn.com/d.json?a=tuya.dev ... d067e282b4
[09-12 15:19:00 TUYA D][httpc.c:813] Connect: a2.tuyacn.com Port: 443 -->>
[09-12 15:19:00 TUYA D][uni_network.c:314] unw_gethostbyname a2.tuyacn.com, prio 2

[09-12 15:19:00 TUYA D][uni_network.c:353] use dynamic dns ip:42.192.31.36 for domain:a2.tuyacn.com
[09-12 15:19:00 TUYA D][httpc.c:477] ----got ipaddr:42,192,31,36
[09-12 15:19:00 TUYA D][httpc.c:815] Connect: a2.tuyacn.com Port: 443 --<< ,r:0
[09-12 15:19:00 TUYA D][tuya_tls.c:1274] ----enable_cert:1,DEFAULT_LOAD_CERT:1
[09-12 15:19:00 TUYA D][tuya_tls.c:1317] TUYA_TLS Begin Connect a2.tuyacn.com:443 CustomNet:TRUE Enable_Cert:TRUE Default:TRUE
[09-12 15:19:00 TUYA D][tuya_tls.c:1390] load tuya cert.
[09-12 15:19:00 TUYA D][tuya_tls.c:1395] parse crt <0> len <2002> ret <0>
[09-12 15:19:00 TUYA D][tuya_iot_com_api.c:259] tuya public url
[09-12 15:19:00 TUYA D][tuya_tls.c:1505] socket fd is set. set to inner send/recv to handshake
APP的情况:

mmexport1726125575244.jpg

Tags:
User avatar
Passat
Posts: 55

Re: 【SDK】本地录像无法按指定日期删除录像问题

完整的日志发下,现有的日志没有搜到调用 tuya_ipc_ss_delete_video 删除接口的打印。

17333092159
Posts: 33

Re: 【SDK】本地录像无法按指定日期删除录像问题

这一份日志是我将设备重启后,执行删除回放操作的完整日志了

回放1.log
(268.88 KiB) Downloaded 27 times
User avatar
Passat
Posts: 55

Re: 【SDK】本地录像无法按指定日期删除录像问题

新的日志里,依旧没有调用 tuya_ipc_ss_delete_video 的打印,你的代码里是怎么处理 TRANS_PLAYBACK_DELETE 这个命令的?
以下是demo中的处理步骤。

Code: Select all

        case TRANS_PLAYBACK_DELETE: {
            C2C_TRANS_CTRL_PB_DELDATA_BYDAY_REQ* pParam = (C2C_TRANS_CTRL_PB_DELDATA_BYDAY_REQ*)args;
            if (OPRT_OK != tuya_ipc_ss_delete_video(pParam->channel, pParam->year, pParam->month, pParam->day)) {
                PR_DEBUG("tuya_ipc_ss_delete_video err\n");
            }
            break;
        }
17333092159
Posts: 33

Re: 【SDK】本地录像无法按指定日期删除录像问题

我看了一下,发现原先demo中并没有把这段加进去,我添加进去试试

17333092159
Posts: 33

Re: 【SDK】本地录像无法按指定日期删除录像问题

已经可以了,谢谢!

Post Reply