Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
60 Views

ICS v4.1: Start rtmp stream is not working

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

Tags (2)
0 Kudos
2 Replies
Highlighted
60 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
Highlighted
Beginner
60 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