New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SRT fails to init on high bitrate? #733
Comments
I tested it locally by pulling the
In your setup, how long does it take to drop the connection? It doesn't seem to be an issue with Restreamer. The 404 status code in the logs ist not related to the RTMP. |
Thanks for the confirmation and details! Sounds like the issue is not with restreamer then. Will follow up here when I know more. |
Finally had a chance to investigate this. Was unable to reproduce the original issue with RTMP. Using the latest restreamer docker image. I did find when it came to SRT, the initial ffmpeg inspect fails at high bitrates. I enabled the debug logs and found that the ffmpeg analyse command was failing. I believe this is due to the fact that there are no key frames present in the short duration that is analyzed to allow ffmpeg to decode the frames correctly. Proposed solutionIncrease the ffmpeg There could be cases that would break with even higher bitrates (compared to what I tested with, 100M). Perhaps the probesize could be configurable in the GUI? I don't know if this may break some other configurations? What do you think is a good approach? Reproducable with these commandsThe examples below all use the same ffmpeg config to send the SRT stream. Only thing that changes is the bitrate (
where and then I analyse that same stream with this command (taken from the restreamer logs):
Changing the Test result examplesThese results are the same for all the tests. In the next paragraph I add the tests I ran and how many times they failed to inspect correctly. Failed result exampleNotice, there is no frame dimensions defined.
As far as I understand, the h264 errors reported (repeated multiple times) indicate that there isn't any key frame present for ffmpeg to decode. Once a key frame is received the errors stop. Valid result examplesNotice the correct frame dimensions defined.
Test Runs with different bitratesThe below are tested with bitrates 10M and 100M. Note, the below (ex. probesize=100.000.000 bytes) failed more often with the 100M bitrate compared to the 10M bitrate.
|
It seems that it is indeed possible to manually configure the probesize etc from the edit wizard when you have an existing stream. I suppose this is the preferred approach and this should just be closed? |
The issue with SRT and high bitrates is that the A general higher default value for SRT will probably solve this issue. For adding a new channel you can skip the wizard and directly start with the advanced settings. |
Subject of the issue
Hey datarhei team, great job on the restreamer project!
I saw #695 that found some possible challenges with high bitrates. This seems to have been merged already. I did in fact experience something similar with SRT as well.
Has anyone experienced any issues now with higher bitrates?
I was trying out restreamer yesterday and got some unexpected results. Tried both the latest and dev docker image.
I haven't done proper tests to investigate more. Wanted to ask here first to sanity check first.
Your environment
Was trying restreamer in docker on a AWS m5zn.large machine:
Steps to reproduce
With
BITRATE=2M
it seems to work without issues, but if I change to e.g.BITRATE=20M
then I see drops in the RTMP connection. It's as if the rtmp server or the stream is restarted for short while before it's up again.Moreover, I saw the following 404 status codes in the logs with the web UI open. Not sure if it's related.
The text was updated successfully, but these errors were encountered: