Open xiaoxiangdong opened 1 year ago
Looks like you're sending RTSP packets through WebSockets. JSMpeg doesn't speak RTSP. You have to send MPEG-TS (without any other transport/streaming wrapper).
我也遇到了类似问题,我的解决思路是先pause,然后在onPause回调函数里面调用destroy。
那你解决了吗?我放弃了,官方说不支持这个
---Original--- From: @.> Date: Wed, Feb 1, 2023 17:28 PM To: @.>; Cc: @.**@.>; Subject: Re: [phoboslab/jsmpeg] Uncaught RuntimeError: memory access out ofbounds (Issue #410)
我也遇到了类似问题,我的解决思路是先pause,然后在onPause回调函数里面调用destroy。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
那你解决了吗?我放弃了,官方说不支持这个 … ---Original--- From: @.> Date: Wed, Feb 1, 2023 17:28 PM To: @.>; Cc: @.**@.>; Subject: Re: [phoboslab/jsmpeg] Uncaught RuntimeError: memory access out ofbounds (Issue #410) 我也遇到了类似问题,我的解决思路是先pause,然后在onPause回调函数里面调用destroy。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我遇到的问题暂时解决了,我的根本原因是在关闭窗口时,ws并没有断,导致报错。 我看很多人提出这个错误是因为码率问题,我这边是web播放大华的rtsp流,利用别人写好的rtsp2web组件实现的,暂时还没涉及到码率问题。
My solution is to increase the videoBufferSize
to 10 1024 1024
my ffmpeg config: ffmpeg -rtsp_transport tcp -i "rtsp://admin:aaa@192.168.11.164:554/Streaming/Channels/101" -q 0 -f mpegts -codec:v mpeg1video -s 700x400 -b:v 512k -r 30 http://192.168.1.136:9902/multimedia/rtsp/receive?cameraId=22
help me!!