MuxLabs / wocket

Example of streaming to an RTMP endpoint from a browser via WebSockets
https://ws.mux.dev
122 stars 19 forks source link

ffmpeg break #5

Closed tym3515 closed 4 years ago

tym3515 commented 4 years ago

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://

mmcc commented 4 years ago

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!