简体   繁体   English

如何创建接收视频流的节点服务器并将该流另存为视频文件?

[英]how to create node server that receiving video stream and save the stream as video file?

I try to look for some examples that doing something like it - but all i found is example of receiving picture and not receiving static stream of video. 我尝试寻找一些做类似事情的示例-但我发现的只是接收图片而不接收静态视频流的示例。

I need to receive a video - and save it on the server disk until the client send some flag that the video stream is done. 我需要接收视频-并将其保存在服务器磁盘上,直到客户端发送一些标志,表明视频流已完成。

How to do it ? 怎么做 ?

For example: you can convert stream to Binary Data and send this: Sending_and_Receiving_Binary_Data 例如:您可以将流转换为二进制数据并发送此数据: Sending_and_Receiving_Binary_Data

Also you can use MediaStream Recording API, if you want to process video\\audio stream: docs 如果要处理视频\\音频流,还可以使用MediaStream Recording API: docs

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

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