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

ICS v4.1: Start rtmp stream is not working

Roland_B_
Beginner
430 Views

Hi,

we use the ICS v4.1 server with javascript and REST-API-SDK.

When trying to start a rtmp stream from the mixed room (out), we get the following error message:

"Internal Server Error"

 

This is the REST-API call:

var startStreamingOut = function (room, outUrl, audioFrom, videoFrom, host) {

    var options = {
        media: {
            audio: {
                from: audioFrom,
                format: { channelNum: 2, sampleRate: 48000, codec: "aac" }
            },
            video: {
                from: videoFrom,
                format: { codec: "h264", profile: "CB" },
                parameters: {  resolution: { width: 1280, height: 720 }, framerate: 30, bitrate: 1000, keyFrameInterval: 100 }
            }
        },
        url: outUrl
    };
    send('POST', '/rooms/' + room + '/streaming-outs', options, onResponse, host);
};

 

The call only works when removing the "parameters" block. But we want to generate a rtmp stream with 1 MBit/s.

 

Is the "parameters" block not supported or is its structure wrong?

Thanks.

Best regards,

Roland

0 Kudos
2 Replies
Qiujiao_W_Intel
Employee
430 Views

Hi, Roland, please set bitrate value to wantedBitrateMultiple like x0.2, x0.4 to control bitrate value, we didn't public bitrate setting in kbps for 4.1 release

0 Kudos
yt__xia
Beginner
430 Views

@Qiujiao W. (Intel)   

4.3  vs     4.1    (new add   protocol,parameters )   how to use it?

I‘m  try

url = 'rtmp://127.0.0.1/live/ttttt'  (rtmp service is ok)

stream = roomId + '-common'

 media = { audio: { from: stream }, video: { from: stream, parameters: { keyFrameInterval: 2 } } }

protocol = 'rtmp'

parameters = {method: 'PUT'}

 error : startStreamingOut  failed  (startStreamingOut  : {"error":{"code":2001,"message":"Error RPC:addServerSideS
ubscription failed"}}

Do you have an example?

Thank you!

0 Kudos
Reply