Please wait for about 5 seconds after push starts before starting stream mix.
If -505 is reported by the stream mix API, the stream ID has no corresponding data on the CSS backend.
AppID
is correct in the stream mix parameters.
Please check whether input_type
of the audio stream is set to 4.
The stream mix will continue until the command to cancel it is received.
If a non-background stream is interrupted, its image will freeze at the last frame. If a background stream is interrupted, the entire video image will freeze. If the interrupted stream is successfully pushed again with the same stream ID within 15 minutes, stream mix will resume automatically.
For detailed directions, please see Creating Recording Task.
Possible causes include:
You can prevent black bars in the following two ways:
Generally, this is caused by the change of the resolution of an input stream in stream mix. For example, if the input stream resolution is 1280x720 during stream mix application, but it becomes 2560x1440 after a while, then the output video image will change and in a different position.
Note:We recommend you not change the resolution of the input stream during stream mix. If necessary, you should calculate the position parameters and apply for stream mix again.
Currently, stream mix supports only H.264 encoding for the output stream. Even if the input stream is encoded in H.265, the output stream can be encoded only in H.264.
The API for canceling stream mix only needs to be called once and should not be called again after the cancellation succeeds.
Taking mixing two streams as an example, if one stream is interrupted, stream mix will not be canceled automatically. If recording is enabled, recording will also continue. If both streams are interrupted, stream mix will be canceled automatically after 15 minutes.
The implementation mechanism of stream mix will align the video images of different streams as much as possible; therefore, slight reverse may occur during processing. To prevent this from affecting your business, unless necessary, please do not call the stream mix API frequently.
No. The stream mix scheduler will not modify your layout parameters. If a host mics off, you need to calculate the layout parameters again and initiate stream mix again.
Was this page helpful?