phoboslab / jsmpeg

MPEG1 Video Decoder in JavaScript
MIT License
6.3k stars 1.43k forks source link

Uncaught RuntimeError: memory access out of bounds #410

Open xiaoxiangdong opened 1 year ago

xiaoxiangdong commented 1 year ago

33ff72ac25b705acbc01df7cc64aecf image

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!!

phoboslab commented 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).

Jesssssfish commented 1 year ago

我也遇到了类似问题,我的解决思路是先pause,然后在onPause回调函数里面调用destroy。

xiaoxiangdong commented 1 year ago

那你解决了吗?我放弃了,官方说不支持这个

---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: @.***>

Jesssssfish commented 1 year ago

那你解决了吗?我放弃了,官方说不支持这个 ---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组件实现的,暂时还没涉及到码率问题。

Jesssssfish commented 1 year ago

image

zhangyahan commented 1 year ago

My solution is to increase the videoBufferSize to 10 1024 1024