jsmpeg icon indicating copy to clipboard operation
jsmpeg copied to clipboard

Memory access out of bounds

Open binn opened this issue 4 years ago • 8 comments

I'm trying to proxy FFMPEG over UDP to websocket and have it decode using JSMPEG. I don't understand why its giving me this error

image

This is my FFMPEG command ffmpeg -f dshow -i video="screen-capture-recorder" -f mpegts -codec:v mpeg1video -bf 0 -codec:a mp2 -ar 44100 -ac 1 -b:a 128k -b:v 1000k -s 960x540 udp://cube.bin.moe:11000

This is how I'm running my UDP server. image

image image

From my knowledge everything seems to be going fine, but this is my video output on the page and I'm actually pretty confused as to what I'm doing wrong. image

binn avatar Nov 07 '19 15:11 binn

Have you solved the same problem I encountered

Har-zheng avatar Dec 01 '19 15:12 Har-zheng

UDP doesn't guarantee that the data arrives in order and JSMpeg has no way of dealing with out-of-order packets. Try TCP.

phoboslab avatar Dec 01 '19 15:12 phoboslab

I did, had a similar issue still

---- On Sun, 01 Dec 2019 09:12:36 -0600 [email protected] wrote ----

UDP doesn't guarantee that the data arrives in order and JSMpeg has no way of dealing with out-of-order packets. Try TCP.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

binn avatar Dec 01 '19 15:12 binn

Did you try to increase the videoBufferSize? Does it work without WASM (disableWebAssembly)?

videoBufferSize – when streaming, size in bytes for the video decode buffer. Default 512*1024 (512kb). You may have to increase this for very high bitrates.

phoboslab avatar Dec 01 '19 16:12 phoboslab

Did you try to increase the videoBufferSize? Does it work without WASM (disableWebAssembly)?

videoBufferSize – when streaming, size in bytes for the video decode buffer. Default 512*1024 (512kb). You may have to increase this for very high bitrates.

Will try to do now

binn avatar Dec 02 '19 06:12 binn

Hi there, thanks for JSMPEG. Im not sure, maybe my issue is related. Then I call .destroy() method from my react app, i handle this issue. Screenshot_1

Imjamper avatar Jun 07 '21 00:06 Imjamper

Hi there. I solved my problem. This is my mistake in react component code.

Imjamper avatar Jun 07 '21 09:06 Imjamper

Hi @Imjamper , did u use jsmpeg for live streaming ?

vishalkr058 avatar Sep 02 '21 17:09 vishalkr058