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

Image preview error #3

Open
fabioharry opened this issue Jul 26, 2018 · 5 comments
Open

Image preview error #3

fabioharry opened this issue Jul 26, 2018 · 5 comments

Comments

@fabioharry
Copy link

Thanks for sharing!

I'm working on a project that uses this feature, but when I run your solution, an error is occurring.

Has anyone managed to make it work?

Any idea how I can solve it?

Uncaught DOMException: Failed to execute 'appendBuffer' on 'SourceBuffer': The HTMLMediaElement.error attribute is not null.
    at WebSocket.ws.onmessage (http://localhost:8080/js/app.js:66:24)
ws.onmessage @ app.js:66

Cod ffmpeg + IP cam RTSP

ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]/Streaming/Channels/1 -vcodec libx264 -profile:v main -g 25 -r 25 -b:v 500k -keyint_min 250 -strict experimental -pix_fmt yuv420p -movflags empty_moov+default_base_moof -an -preset ultrafast -f mp4 tcp://localhost:9090

captura de tela de 2018-07-25 23-04-08

captura de tela de 2018-07-25 23-05-21

@jdelrue
Copy link

jdelrue commented Jul 28, 2018

I got the same error in Chromium but didnt have it in Firefox. However still didnt get it working...

@PicoJr
Copy link

PicoJr commented Sep 29, 2018

Hello, awesome project.

issue on chromium may be linked to https://bugs.chromium.org/p/chromium/issues/detail?id=469457

It also works using x11grab (on firefox 62.0) but I had to take into account my modest hardware ^^ (-framerate 5, fewer threads, lower speed...)

Setup

ffmpeg -f x11grab -framerate 5 -video_size cif -i :0  -vcodec libvpx -b:v 3500k -r 25 -crf 10 -quality realtime -speed 6 -threads 4 -an -g 25 -f webm tcp://localhost:9090

@deepaash
Copy link

Any update? Any solution for chromium?

@zim32
Copy link

zim32 commented Aug 19, 2020

You could open chrome://media-internals/ page and see whats happening there

@ivanjx
Copy link

ivanjx commented Mar 2, 2022

try to change the first buffer from 3 to 2

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

6 participants