Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
1146 Discussions

v4.1 external RTSP stream崩溃

Second_Chan
Novice
1,149 Views

1.运行环境

ics v4.1

default sample room  (video:h264 profile:cb)

2. 问题描述

调用ICS_REST.API.startStreamingIn

参数 

var url = 'rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov';
  var transport = {
    protocol: 'udp',
    bufferSize: 2048
  };
  var media = {
    audio: 'auto',
    video: true
  };

结果返回错误代码2001,ics崩溃无法再进入会议,需要重启ics才能正常使用。

查看日志文件streaming-f7c4cb8ca5cf0e64af95@192.168.1.120_0出现以下错误

2018-12-05 21:09:47.481  - INFO: ErizoJS - pid: 28119
2018-12-05 21:09:47.485  - INFO: ErizoJS - Connecting to rabbitMQ server...
2018-12-05 21:09:47.499  - INFO: AmqpClient - Connecting to rabbitMQ server OK, hostPort: { host: 'localhost', port: 5672 }
2018-12-05 21:09:47.520  - INFO: ErizoJS - streaming-f7c4cb8ca5cf0e64af95@192.168.1.120_0 as rpc server ready
2018-12-05 21:09:47.523  - INFO: ErizoJS - streaming-f7c4cb8ca5cf0e64af95@192.168.1.120_0 as monitor ready
2018-12-05 21:13:43,490  - INFO: woogeen.LiveStreamIn - (0x39f5000)url: rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov, audio: auto, video: yes, transport: udp, bufferSize: 2048
2018-12-05 21:13:43,490  - INFO: woogeen.LiveStreamIn - (0x39f5000)rtsp, transport: udp(2048)
[rtsp @ 0x7f4d44000900] Could not find codec parameters for stream 1 (Video: h264, none, 240x160): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
2018-12-05 21:13:54,931  - INFO: woogeen.LiveStreamIn - (0x39f5000)Has video, video stream number(1), codec(h264), (null), 240x160
2018-12-05 21:13:54,931  - WARN: woogeen.LiveStreamIn - (0x39f5000)Unsupported H264 profile: (null)
2018-12-05 21:13:54,931  - INFO: woogeen.LiveStreamIn - (0x39f5000)Has audio, audio stream number(0), codec(aac), 48000-2
2018-12-05 21:14:05,960  - WARN: woogeen.LiveStreamIn - (0x39f5000)Error read frame, Connection timed out
2018-12-05 21:14:05,960  - WARN: woogeen.LiveStreamIn - Read input data failed, trying to reopen input from url rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov
[rtsp @ 0x7f4d44006f00] UDP timeout, retrying with TCP
[rtsp @ 0x7f4d44006f00] Could not find codec parameters for stream 1 (Video: h264, none, 240x160): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
2018-12-05 21:14:19.861  - WARN: ErizoJS - Exiting on SIGTERM
2018-12-05 21:14:19,861  - INFO: woogeen.LiveStreamIn - (0x39f5000)Closing rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov
2018-12-05 21:14:19,921  - WARN: woogeen.LiveStreamIn - (0x39f5000)Error read frame, Immediate exit requested
2018-12-05 21:14:19,921  - WARN: woogeen.LiveStreamIn - Read input data failed, trying to reopen input from url rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov
2018-12-05 21:14:19,922  - ERROR: woogeen.LiveStreamIn - (0x39f5000)Error opening input Immediate exit requested
2018-12-05 21:14:19,922  - ERROR: woogeen.LiveStreamIn - (0x39f5000)Reconnect failed
 

3.

rtsp 地址测试过用ffplay能正常播放,但首次等待时间比较久(10秒左右)。

从日志发现"Connection timed out",估计会不会是ics对外部rtsp连接有时间限制?这个限制时间能修改吗?

rtsp连接失败不应该要 重启整个服务.

 

 

0 Kudos
3 Replies
Qiujiao_W_Intel
Employee
1,149 Views

关于rtsp连接的问题试试看把transport的protocol由udp改成tcp试试看能不能连上,如果还不能连上的话这个rtsp的连接外网能访问吗?如果可以的话我们可以连上去试试看。

ics崩溃再也无法连接的麻烦请提供logs目录下所有模块的log给我们debug,谢谢

0 Kudos
Second_Chan
Novice
1,149 Views

@Qiujiao W. (Intel)   感谢你的回复~~

  tcp还是不行,这个rtsp可以连接外网,麻烦有空试试~

  rtsp://184.72.239.149/vod/mp4://BigBuckBunny_175k.mov

0 Kudos
Qiujiao_W_Intel
Employee
1,149 Views

我们试下来这个rtsp的链接没问题可以正常加入,请确认参数是按照如下格式进行设置:

var options = {
        url: url,
        media: {
            audio: 'auto',
            video: true
        },
        transport: {
            protocol: 'tcp',
            bufferSize: 4096
        }
    };
    send('POST', '/rooms/' + room + '/streaming-ins', options, ok_cb, err_cb);

0 Kudos
Reply