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 closed with code 1 and signal null no reason #9

Closed ReArno closed 3 years ago

ReArno commented 3 years ago

After a certain time, the FFmpeg process closes with code 1, the mux live stream will be disconnected, and the asset will be created, but the MediaRecorder sends the data continuously. image Im using a canvas, a MediaRecorder object, then a WebSocket NodeJS server. I send the recorded data to the MUX with FFmpeg. It works for approximative 1 minute.

ReArno commented 3 years ago

If the MediaRecorder somehow stops (tab focus lose), then the FFmpeg process immediately stops, with this code 1.