Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught RuntimeError: memory access out of bounds #410

Open
xiaoxiangdong opened this issue Nov 9, 2022 · 6 comments
Open

Uncaught RuntimeError: memory access out of bounds #410

xiaoxiangdong opened this issue Nov 9, 2022 · 6 comments

Comments

@xiaoxiangdong
Copy link

xiaoxiangdong commented Nov 9, 2022

33ff72ac25b705acbc01df7cc64aecf
image

my ffmpeg config:
ffmpeg -rtsp_transport tcp -i "rtsp://admin:[email protected]: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
Copy link
Owner

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
Copy link

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

@xiaoxiangdong
Copy link
Author

xiaoxiangdong commented Feb 1, 2023 via email

@Jesssssfish
Copy link

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

---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
Copy link

image

@zhangyahan
Copy link

My solution is to increase the videoBufferSize to 10 * 1024 * 1024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants