[BUG] jessibuca-pro无法播放代理流,ZLM提示 "flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:H265 PCMU"
现象描述
问下各位大佬,我这边目前对接了很多型号的海康设备,接入逻辑均为调用addStreamProxy接口进行代理. rtsp格式为标准格式如下: rtsp://[username]:[password]@[ip]:[port]/[codec]/[channel]/[subtype]/av_stream
目前出现了部分型号设备一直加载中,ZLM日志提示"flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:H265 PCMA"
jessibuca明明是支持H265和PCMA格式的,请问是不是我config.ini哪里配错了?
如何复现?
随机发生,同一个摄像头有时候能播.有时候不能播.不能播的时候ZLM就会报这些描述.不知道是否跟不能播有关系
相关日志或截图
展开查看详细日志
2024-06-25 22:40:12.958 W [MediaServer] [6-event poller 9] HttpSession.cpp:105 onError | 12770-168(10.0.0.2:57856) FLV/TS/FMP4播放器(__defaultVhost__/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU_2)断开:end of file,耗时(s):20 2024-06-25 22:40:12.958 T [MediaServer] [6-event poller 9] HttpSession.cpp:33 ~HttpSession | 12770-168(10.0.0.2:57856) 2024-06-25 22:40:13.027 T [MediaServer] [6-event poller 11] HttpSession.cpp:27 HttpSession | 12773-168(10.0.0.2:57858) 2024-06-25 22:40:13.032 W [MediaServer] [6-event poller 11] HttpSession.cpp:368 operator() | 12773-168(10.0.0.2:57858) flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:PCMU 2024-06-25 22:40:18.878 W [MediaServer] [6-event poller 9] HttpSession.cpp:105 onError | 12771-175(10.0.0.2:57857) FLV/TS/FMP4播放器(__defaultVhost__/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU_2)断开:recv close request from client,耗时(s):20 2024-06-25 22:40:18.878 T [MediaServer] [6-event poller 9] HttpSession.cpp:33 ~HttpSession | 12771-175(10.0.0.2:57857) 2024-06-25 22:40:18.939 T [MediaServer] [6-event poller 11] HttpSession.cpp:27 HttpSession | 12774-175(10.0.0.2:57860) 2024-06-25 22:40:18.942 W [MediaServer] [6-event poller 11] HttpSession.cpp:368 operator() | 12774-175(10.0.0.2:57860) flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:PCMU 2024-06-25 22:40:29.936 W [MediaServer] [6-event poller 15] HttpSession.cpp:105 onError | 12760-177(10.0.0.2:57844) FLV/TS/FMP4播放器(__defaultVhost__/DS-7916N-R4(B)1620220415CCRRJ79588489WCVU/DS-7916N-R4(B)1620220415CCRRJ79588489WCVU_34)断开:end of file,耗时(s):103 2024-06-25 22:40:29.936 T [MediaServer] [6-event poller 15] HttpSession.cpp:33 ~HttpSession | 12760-177(10.0.0.2:57844) 2024-06-25 22:40:30.053 T [MediaServer] [6-event poller 14] HttpSession.cpp:27 HttpSession | 12775-177(10.0.0.2:57863) 2024-06-25 22:40:30.057 W [MediaServer] [6-event poller 14] HttpSession.cpp:368 operator() | 12775-177(10.0.0.2:57863) flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:PCMA 2024-06-25 22:40:30.057 W [MediaServer] [6-event poller 14] HttpSession.cpp:368 operator() | 12775-177(10.0.0.2:57863) flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:H265 2024-06-25 22:40:31.541 T [MediaServer] [6-event poller 11] HttpSession.cpp:119 onError | 12772-176(10.0.0.2:36886) session timeout 2024-06-25 22:40:31.541 T [MediaServer] [6-event poller 11] HttpSession.cpp:33 ~HttpSession | 12772-176(10.0.0.2:36886) 2024-06-25 22:40:33.021 W [MediaServer] [6-event poller 11] HttpSession.cpp:105 onError | 12773-168(10.0.0.2:57858) FLV/TS/FMP4播放器(__defaultVhost__/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU_2)断开:end of file,耗时(s):19 2024-06-25 22:40:33.021 T [MediaServer] [6-event poller 11] HttpSession.cpp:33 ~HttpSession | 12773-168(10.0.0.2:57858) 2024-06-25 22:40:33.086 T [MediaServer] [6-event poller 0] HttpSession.cpp:27 HttpSession | 12776-168(10.0.0.2:57864) 2024-06-25 22:40:33.092 W [MediaServer] [6-event poller 0] HttpSession.cpp:368 operator() | 12776-168(10.0.0.2:57864) flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:PCMU 2024-06-25 22:40:39.878 W [MediaServer] [6-event poller 11] HttpSession.cpp:105 onError | 12774-175(10.0.0.2:57860) FLV/TS/FMP4播放器(__defaultVhost__/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU_2)断开:recv close request from client,耗时(s):20 2024-06-25 22:40:39.878 T [MediaServer] [6-event poller 11] HttpSession.cpp:33 ~HttpSession | 12774-175(10.0.0.2:57860) 2024-06-25 22:40:39.947 T [MediaServer] [6-event poller 5] HttpSession.cpp:27 HttpSession | 12777-175(10.0.0.2:57865) 2024-06-25 22:40:39.952 W [MediaServer] [6-event poller 5] HttpSession.cpp:368 operator() | 12777-175(10.0.0.2:57865) flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:PCMU 2024-06-25 22:40:53.087 W [MediaServer] [6-event poller 0] HttpSession.cpp:105 onError | 12776-168(10.0.0.2:57864) FLV/TS/FMP4播放器(__defaultVhost__/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU/DS-8816HQH-K8(D)1620230818CCCHAF3485581WCVU_2)断开:end of file,耗时(s):20 2024-06-25 22:40:53.088 T [MediaServer] [6-event poller 0] HttpSession.cpp:33 ~HttpSession | 12776-168(10.0.0.2:57864) 2024-06-25 22:40:53.149 T [MediaServer] [6-event poller 6] HttpSession.cpp:27 HttpSession | 12778-168(10.0.0.2:57867) 2024-06-25 22:40:53.154 W [MediaServer] [6-event poller 6] HttpSession.cpp:368 operator() | 12778-168(10.0.0.2:57867) flv播放器一般只支持H264和AAC编码,该编码格式可能不被播放器支持:PCMU
配置
展开查看详细配置
[api] apiDebug=1 defaultSnap=./www/logo.png secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc snapRoot=./www/snap/ [cluster] origin_url= retry_count=3 timeout_sec=15 [ffmpeg] bin=/OZ-Dev/tools/ffmpeg/bin/ffmpeg.exe cmd=%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s log=./ffmpeg/ffmpeg.log restart_sec=0 snap=%s -i %s -y -f mjpeg -t 0.001 %s [general] check_nvidia_dev=1 enableVhost=0 enable_ffmpeg_log=0 flowThreshold=1024 maxStreamWaitMS=15000 mediaServerId=FQ3TF8yT83wh5Wvz 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 fileBufSize=65536 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.102.20:30700/index/hook/on_play on_publish=http://192.168.102.20:30700/index/hook/on_publish on_record_mp4=http://rsms-video-record-assist:18081/index/hook/on_record_mp4 on_record_ts= on_rtp_server_timeout=http://192.168.102.20:30700/index/hook/on_rtp_server_timeout on_rtsp_auth= on_rtsp_realm= on_send_rtp_stopped=http://192.168.102.20:30700/index/hook/on_send_rtp_stopped on_server_keepalive=http://192.168.102.20:30700/index/hook/on_server_keepalive on_server_started=http://192.168.102.20:30700/index/hook/on_server_started on_shell_login= on_stream_changed=http://192.168.102.20:30700/index/hook/on_stream_changed on_stream_none_reader=http://192.168.102.20:30700/index/hook/on_stream_none_reader on_stream_not_found=http://192.168.102.20:30700/index/hook/on_stream_not_found retry=1 retry_delay=3.0 timeoutSec=20 [http] 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:Git_Unkown_commit/Git_Unkown_time,branch:Git_Unkown_branch,build time:2023-02-01T09:36:38)</center></body></html> port=80 rootPath=./www sendBufSize=65536 sslport=443 virtualPath= [multicast] addrMax=239.255.255.255 addrMin=239.0.0.0 udpTTL=64 [protocol] add_mute_audio=1 continue_push_ms=3000 enable_audio=1 enable_fmp4=1 enable_hls=1 enable_mp4=0 enable_rtmp=1 enable_rtsp=1 enable_ts=1 fmp4_demand=0 hls_demand=0 hls_save_path=./www modify_stamp=0 mp4_as_player=1 mp4_max_second=3600 mp4_save_path=./www rtmp_demand=0 rtsp_demand=0 ts_demand=0 [record] appName=record fastStart=0 fileBufSize=65536 fileRepeat=0 sampleMS=500 [rtc] externIP= port=8000 preferredCodecA=PCMU,PCMA,opus,mpeg4-generic preferredCodecV=H264,H265,AV1,VP9,VP8 rembBitRate=0 tcpPort=8000 timeoutSec=15 [rtmp] enhanced=0 handshakeSecond=15 keepAliveSecond=15 modifyStamp=0 port=1935 sslport=0 [rtp] audioMtuSize=600 lowLatency=0 rtpMaxSize=10 videoMtuSize=1400 [rtp_proxy] dumpDir= h264_pt=98 h265_pt=99 opus_pt=100 port=10000 port_range=30000-30500 ps_pt=96 timeoutSec=15 [rtsp] authBasic=0 directProxy=1 handshakeSecond=15 keepAliveSecond=15 lowLatency=0 port=554 sslport=0 [shell] maxReqSize=1024 port=0 [srt] latencyMul=4 pktBufSize=8192 port=9000 timeoutSec=5
各种环境信息
- 代码提交记录/git commit hash:
- 操作系统及版本:
- 硬件信息:
- crash backtrace:
#崩溃信息backtrace粘贴至此
- 其他需要补充的信息:
flv播放器一般只支持H264和AAC编码 is just a hint for the user, because flv.js was the mainstream previously.
You can try updating zlm first.
flv播放器一般只支持H264和AAC编码只是给用户提示用,因为之前flv.js是主流。
你更新下zlm试试。
TRANS_BY_GITHUB_AI_ASSISTANT
Has it been solved?
解决了吗
TRANS_BY_GITHUB_AI_ASSISTANT
@deathff123
Solved?
解决了么?
TRANS_BY_GITHUB_AI_ASSISTANT
Has this issue been resolved, and if so, how was it resolved?
请问下这个问题解决了么,是怎么解决的?
TRANS_BY_GITHUB_AI_ASSISTANT
This is not a problem, nor is it a bug. This warning is to inform engineers that if this video plays abnormally, it is not a problem with zlm, but rather the player (mse) does not support it.
这个不是问题 更不是bug 这个警告是告知工程师 如果这个视频播放异常 那么不是zlm的问题 只是播放器(mse)不支持它而已
TRANS_BY_GITHUB_AI_ASSISTANT