测试的
Opened this issue · 0 comments
alexliyu7352 commented
测试是否工作正常, 多测试几次
现象描述
局域网通过startSendRtp接口发送mp4文件给摄像头 前几秒的语音总是丢失 大概1~2秒
参考了ZLMediaKit/ZLMediaKit#2747
如何复现?
1.通过国标对摄像头发起对讲 收到invite消息后 调用startSendRtp接口发送mp4文件给摄像头
相关日志或截图
调用参数
{"app":"record","src_port":50503,"vhost":"__defaultVhost__","use_ps":"0","is_udp":"0","pt":8,"stream":"002.mp4","ssrc":"0000000115","only_audio":"1","from_mp4":"1"}
展开查看详细日志
#详细日志粘在这里!
配置
展开查看详细配置
; auto-generated by mINI class { [api] apiDebug=1 defaultSnap=E:/software/ZLMediaKit/www/logo.png downloadRoot=E:/software/ZLMediaKit/www secret=034523TF8yT83wh5Wvz73f7 snapRoot=E:/software/ZLMediaKit/www [cluster] origin_url= retry_count=3 timeout_sec=15 [ffmpeg] bin=/usr/bin/ffmpeg cmd=%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s log=E:/software/ZLMediaKit/log/ffmpeg/ffmpeg.log restart_sec=0 snap=%s -rtsp_transport tcp -i %s -y -f mjpeg -frames:v 1 %s [general] check_nvidia_dev=1 enableVhost=0 enable_ffmpeg_log=0 flowThreshold=1024 maxStreamWaitMS=15000 mediaServerId=GQ3TF8yT83wh5Wvz mergeWriteMS=0 resetWhenRePlay=1 streamNoneReaderDelayMS=20000 unready_frame_cache=100 wait_add_track_ms=3000 wait_track_ready_ms=10000 [hls] broadcastRecordTs=0 deleteDelaySec=10 fastRegister=0 fileBufSize=65536 segDelay=0 segDur=2 segKeep=0 segNum=3 segRetain=5 [hook] alive_interval=10.0 enable=1 on_flow_report= on_http_access= on_play=http://192.168.1.25:18080/index/hook/on_play on_publish=http://192.168.1.25:18080/index/hook/on_publish on_record_mp4=http://192.168.1.25:18080/index/hook/on_record_mp4 on_record_ts= on_rtp_server_timeout=http://192.168.1.25:18080/index/hook/on_rtp_server_timeout on_rtsp_auth= on_rtsp_realm= on_send_rtp_stopped=http://192.168.1.25:18080/index/hook/on_send_rtp_stopped on_server_exited= on_server_keepalive=http://192.168.1.25:18080/index/hook/on_server_keepalive on_server_started=http://192.168.1.25:18080/index/hook/on_server_started on_shell_login= on_stream_changed=http://192.168.1.25:18080/index/hook/on_stream_changed on_stream_none_reader=http://192.168.1.25:18080/index/hook/on_stream_none_reader on_stream_not_found=http://192.168.1.25:18080/index/hook/on_stream_not_found retry=1 retry_delay=3.0 stream_changed_schemas=rtsp/rtmp/fmp4/ts/hls/hls.fmp4 timeoutSec=20 [http] allow_cross_domains=1 allow_ip_range=::1,127.0.0.1,172.16.0.0-172.31.255.255,192.168.0.0-192.168.255.255,10.0.0.0-10.255.255.255 charSet=utf-8 dirMenu=1 forbidCacheSuffix= forwarded_ip_header= keepAliveSecond=30 maxReqSize=40960 notFound=<html><head><title>404 Not Found</title></head><body bgcolor="white"><center><h1>�����ʵ���Դ�����ڣ�</h1></center><hr><center>ZLMediaKit(git hash:f49aed7/2024-03-02T06:25:32-04:00,branch:master,build time:2024-04-11T16:08:16)</center></body></html> port=6080 rootPath=E:/software/ZLMediaKit/www sendBufSize=65536 sslport=443 virtualPath= [multicast] addrMax=239.255.255.255 addrMin=239.0.0.0 udpTTL=64 [protocol] add_mute_audio=1 auto_close=0 continue_push_ms=3000 enable_audio=1 enable_fmp4=1 enable_hls=1 enable_hls_fmp4=0 enable_mp4=0 enable_rtmp=1 enable_rtsp=1 enable_ts=1 fmp4_demand=0 hls_demand=0 hls_save_path=E:/software/ZLMediaKit/www modify_stamp=2 mp4_as_player=0 mp4_max_second=3600 mp4_save_path=E:/software/ZLMediaKit/www paced_sender_ms=0 rtmp_demand=0 rtsp_demand=0 ts_demand=0 [record] appName=record enableFmp4=0 fastStart=0 fileBufSize=65536 fileRepeat=0 sampleMS=500 [rtc] datachannel_echo=1 externIP= max_bitrate=0 min_bitrate=0 port=8000 preferredCodecA=PCMA,PCMA,opus,mpeg4-generic preferredCodecV=H264,H265,AV1,VP9,VP8 rembBitRate=0 start_bitrate=0 tcpPort=8000 timeoutSec=15 [rtmp] directProxy=1 enhanced=0 handshakeSecond=15 keepAliveSecond=15 port=1935 sslport=0 [rtp] audioMtuSize=600 h264_stap_a=1 lowLatency=0 rtpMaxSize=10 videoMtuSize=1400 [rtp_proxy] dumpDir= gop_cache=1 h264_pt=98 h265_pt=99 opus_pt=100 port=10000 port_range=30000-30500 ps_pt=96 rtp_g711_dur_ms=100 timeoutSec=15 udp_recv_socket_buffer=4194304 [rtsp] authBasic=0 directProxy=0 handshakeSecond=15 keepAliveSecond=15 lowLatency=0 port=554 rtpTransportType=-1 sslport=0 [shell] maxReqSize=1024 port=0 [srt] latencyMul=4 pktBufSize=8192 port=9000 timeoutSec=5 ; } ---
各种环境信息
e6506a96d438622923d6522fe8fc54dfa2848b5f
Windows 10
- 代码提交记录/git commit hash:
- 操作系统及版本:
- 硬件信息:
- crash backtrace:
#崩溃信息backtrace粘贴至此
- 其他需要补充的信息: