下午好,我按照你说的方式调用,但是sdk直接出现内存错误SIGSEGV,下面是相关的日志,在p2p_cmd_recv中出现的。
0240901/1725148800/1725169013.mp4]
[INFO] media_playback_release_ffmpeg(Line 242): media_playback_release_ffmpeg
[INFO] media_playback(Line 354): media_playback_open_file_ffmpeg [0][2][/mnt/sdcard//media/01/20240901/1725148800/1725168953.mp4]
[09-01 19:00:19 ty D][tuya_ipc_p2p.c:2943] recv session[65537] high cmd[7] low cmd[4] len[8] req_id[1966206]
[09-01 19:00:19 ty D][tuya_imm_service_log.c:764] trigger upload timer....
[09-01 19:00:19 ty W][tuya_ipc_p2p.c:1675] session[65537] audio already open
[09-01 19:00:19 ty D][ty_sdk_media_callback.c:128] p2p rev event cb=[44]
[09-01 19:00:19 ty D][ty_sdk_media_callback.c:527] PB idx:0 unmute
[09-01 19:00:19 ty E][tuya_ipc_ss_pb.c:1120] curr pb 0 not inited.
[09-01 19:00:19 ty D][tuya_imm_service_log.c:414] upload timer trigger....
[09-01 19:00:19 ty D][tuya_imm_service_log.c:437] start send.
[09-01 19:00:19 ty D][mqc_app.c:891] Send MQTT Msg.P:312 N:44723 Q:0
[09-01 19:00:19 ty D][tuya_svc_mqtt_client.c:427] packet id: 42
[09-01 19:00:19 ty D][tuya_ipc_p2p.c:4793] session detect run
[09-01 19:00:19 ty D][tuya_ipc_p2p.c:4771] session[65537] detect WaitCnt[4] SendCnt[0] RecvCnt[0]
MpiAdapterEncode 19:00:19-961 {ma_encode_buffer_i:1023} mpp_buffer_import fail:0xfffffffc!
wifi state = 0
MpiAdapterEncode 19:00:19-993 {ma_encode_buffer_i:1023} mpp_buffer_import fail:0xfffffffc!
MpiAdapterEncode 19:00:20-080 {ma_encode_buffer_i:1023} mpp_buffer_import fail:0xfffffffc!
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/sdcard//media/01/20240901/1725148800/1725168953.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.20.100
Duration: 00:01:00.30, start: 0.000000, bitrate: 4483 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(yuvj420p) (pc, bt709), 1920x1080, 4179 kb/s, 24.88 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 16000 Hz, stereo, fltp, 160 kb/s (default)
Metadata:
handler_name : SoundHandler
[INFO] media_playback(Line 359): media_playback_open_file_ffmpeg
[WARNING] process_video_packet(Line 176): Video Frame:start_tick[0] pts_us[0] pts_ms[0] fps[24] client[0]
[INFO] fill_video_frame(Line 121): video_codec[5], video_frame_type[1], width[1920], height[1080], fps[24], buf_len[4147200]
--Type <RET> for more, q to quit, c to continue without paging--
Thread 149 "p2p_cmd_recv" received signal SIGSEGV, Segmentation fault.
[Switching to LWP 1527]