owt-server icon indicating copy to clipboard operation
owt-server copied to clipboard

视频会议录像问题请教

Open zxsong007 opened this issue 3 years ago • 3 comments

1、请问怎么设置自动录像,不需要手动干预,也不需要通过API去请求,有合流就开始录像,没合流就结束录像。因为有一个问题是:会议室如果没人进来之前,录像就是一片黑。我已经做了房间有人进来就开始录像,房间一个人都没有就结束录像,但是这些是在WEB端做的,不可靠。 2、录像经常出问题,播放不了,下载下来用VLC也播放不了,无法解析,概率在5%左右。

zxsong007 avatar Jul 14 '22 02:07 zxsong007

我使用的版本是4.3.0

zxsong007 avatar Jul 14 '22 02:07 zxsong007

  1. You could write a node.js/c++ client to join conference like web to listen to the mixed stream's 'layout-change' events. Another way is that you could write a REST client which query streams at some intervals.
  2. Please provide the detail scenario that recording fails.

starwarfan avatar Jul 14 '22 09:07 starwarfan

  1. You could write a node.js/c++ client to join conference like web to listen to the mixed stream's 'layout-change' events. Another way is that you could write a REST client which query streams at some intervals.
  2. Please provide the detail scenario that recording fails.

感谢您的回复! 1.请问第一个方法的layout-change事件监听,在哪里做较好呢?是不是在video_agent/video/index.js里面,具体哪个地方呢? 2.下面是播放不了的录像MP4文件产生的日志信息,播放不了的文件名为579088266804678400.mp4: 2022-06-21 11:25:10.288 - INFO: WorkingNode - pid: 24925 2022-06-21 11:25:10.290 - INFO: WorkingNode - Connecting to rabbitMQ server... 2022-06-21 11:25:10.303 - INFO: AmqpClient - Connecting to rabbitMQ server OK, options: { host: 'localhost', port: 5672, login: 'owt' } 2022-06-21 11:25:10.321 - INFO: InternalConnectionFactory - QUIC is not enabled for internal IO 2022-06-21 11:25:10.327 - INFO: WorkingNode - [email protected]_208 as rpc server ready 2022-06-21 11:25:10.330 - INFO: WorkingNode - [email protected]_208 as monitor ready 2022-06-21 11:37:17,775 - INFO: owt.AVStreamOut - url /data/video-record/80920835271496510.mp4, audio 1, video 1, timeOut 3000 2022-06-21 11:37:17,783 - DEBUG: owt.media.MediaFileOut - onVideoSourceChanged 2022-06-21 11:37:17,786 - INFO: owt.AVStreamOut - Initial audio options format(AAC_48000_2), sample rate(48000), channels(2), isRtpPacket(0) 2022-06-21 11:37:17,823 - INFO: owt.AVStreamOut - Initial video options: format(H264), 1280x720 [mp4 @ 0x7fcdc4000900] track 0: codec frame size is not set 2022-06-21 11:39:50,875 - INFO: owt.AVStreamOut - Close /data/video-record/80920835271496510.mp4 2022-06-21 11:42:05,484 - INFO: owt.AVStreamOut - url /data/video-record/579088266804678400.mp4, audio 1, video 1, timeOut 3000 2022-06-21 11:42:05,487 - DEBUG: owt.media.MediaFileOut - onVideoSourceChanged 2022-06-21 11:42:05,494 - INFO: owt.AVStreamOut - Initial video options: format(H264), 1280x720 2022-06-21 11:42:05,500 - INFO: owt.AVStreamOut - Initial audio options format(AAC_48000_2), sample rate(48000), channels(2), isRtpPacket(0) [mp4 @ 0x7fcdc40008c0] track 0: codec frame size is not set 2022-06-29 18:46:40,652 - ERROR: owt.AVStreamOut - Cannot write frame, Cannot allocate memory 2022-06-29 18:46:40.704 - ERROR: RecordingNode - media recording error: Cannot write frame

zxsong007 avatar Jul 15 '22 04:07 zxsong007