简体   繁体   English

使用Kurento媒体服务器在mp4中记录webRTC流

[英]Record webRTC stream in mp4 using kurento media server

I am working on recording the video stream using WebRTC and Kurento Media server. 我正在使用WebRTC和Kurento Media服务器录制视频流。 The recording is working fine, but I am facing an issue. 录音工作正常,但我遇到了问题。

The browser is storing the media in Webm format, which does not keep the metadata information. 浏览器以Webm格式存储媒体,该格式不保留元数据信息。 If I am recording a mobile webRTC stream in portrait mode, then the Kurento is recording that stream, but when I am playing that video, it's being played in landscape mode everywhere. 如果我以人像模式录制移动webRTC流,那么Kurento就是在录制该流,但是当我播放该视频时,到处都是以横向模式播放。

I have done some R&D on it and found the Webm does not keep the metadata information, so I have record the video in mp4 format. 我已经对其进行了一些研发,发现Webm不保留元数据信息,因此我以mp4格式录制了视频。

I have read the documentation of the Kurento media server but didn't found anywhere that how to record the video in mp4 format. 我已经阅读了Kurento媒体服务器的文档,但是没有找到如何以mp4格式录制视频的地方。

Can anybody tell me how we can do that? 谁能告诉我该怎么做?

I have tried the following things - Changed the file extension to mp4 我尝试了以下操作-将文件扩展名更改为mp4

Please try mentioning the recorder end-point profile spec (webm, MP4, MKV) 请尝试提及记录器端点配置文件规范(webm,MP4,MKV)

You can post your code as well so that corrections can be suggested. 您也可以发布代码,以便提出更正建议。

You can also follow this code https://github.com/Kurento/kurento-tutorial-js/blob/master/kurento-recorder/js/index.js 您也可以遵循以下代码https://github.com/Kurento/kurento-tutorial-js/blob/master/kurento-recorder/js/index.js

At line number 112 you can include profile based on the specs used in kurento-utils.js 在第112行,您可以根据kurento-utils.js中使用的规范添加配置文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM