MediaStreamRecorder icon indicating copy to clipboard operation
MediaStreamRecorder copied to clipboard

Save recording as MPEG-TS

Open BrightSoul opened this issue 6 years ago • 3 comments

Hi, I'd like to save recordings in the MPEG-TS format (as a single or a series of .ts files). This way I would also be able to stream the recording via Ffmpeg while it's being encoded. How can I do this?

Thanks, Moreno

BrightSoul avatar May 07 '19 08:05 BrightSoul

我的做法是将记录的每段Blob数据发送的服务端,然后在Node.js服务端通过调用FFmpeg将Buffer转化为.ts文件并进行推流。

JackyM06 avatar Apr 17 '21 10:04 JackyM06

@JackyM06 Thanks, that would be a solution (I had to use Google translate but I got your message). However, I'm still convinced MPEG-TS is a better option because I could even do without ffmpeg: I could just upload those files to AWS S3 and serve them via a CloudFront distribution, keeping streaming latency to a minimum. No need to send files to another server first.

BrightSoul avatar Apr 17 '21 13:04 BrightSoul

I'm trying to save as mp4, without convert in the server with FFmpeg. You can load ffmpeg.js to make a convertion in the frontend, but have 17mb. I'm looking for a better solution.

rogerbage avatar Feb 22 '23 22:02 rogerbage