MuxLabs / wocket

Example of streaming to an RTMP endpoint from a browser via WebSockets

Home Page:https://ws.mux.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ffmpeg break

tym3515 opened this issue · comments

FFmpeg STDERR: [flv @ 000001fc12158500] Failed to update header with correct duration.
[flv @ 000001fc12158500] Failed to update header with correct filesize.
Error writing trailer of rtmp://

This can happen for a few reasons, but the most common in my experience has been when the browser isn't able to broadcast chunks fast enough. Some browsers essentially de-prioritize JS execution if the tab isn't focused, which can cause this, but I've also seen it happen when the client's upload bandwidth is constrained.

Going to close this because there's just not enough information to go on here, but if you can reply with some more details please do!