- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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!
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page