Good day.
Stream recordings are stored in the following formats:
- mp4 for H264 streams
- webm for VP8 streams
So you should publish H264 stream to server if you want to store it in mp4 file. First, enable H264 codec in server settings if not:
Code:
codecs=opus,...mpeg4-generic,h264,vp8,...
Then, on client side, disable VP8 codec
Code:
publishStream = session.createStream({
...
stripCodecs: "VP8"
}).on(STREAM_STATUS.PUBLISHING, function (publishStream) {
...
});
publishStream.publish();
Note that not all the browsers supports H264, especially Chromium based.