Need to store streamed video as mp4 file

Nilay Anand

New Member
Currently, streamed video is stored as 'webm' file. I need to store streamed vide as mp4 format. Where should I make config setting so streamed video could be saved as mp4?
 

Max

Administrator
Staff member
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.
 
Top