You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Some of the advanced settings in the MPEG-TS protocol publication service create invalid syntax, causing the FFmpeg process to return an error and fail to start.
The default settings trigger this bug, resulting in a publication service that doesn't work out of the box.
To Reproduce
Steps to reproduce the behavior:
Create a channel
Add a publication output
Select the MPEG-TS protocol
Use any valid URL (e.g. a multicast IP address) and add the output without changing any other settings
Start the publication
See the output go to an error state (red toggle switch)
Expected behavior
The MPEG-TS output shouldn't return an error.
Desktop:
OS: Windows
Browser: Edge
Version: 2.6
Additional context
Having had a look at the errors and the code this is caused by a few different issues, which all lead to the same problem depending on the advanced settings used:
The service name (service_name) and provider (service_provider) are set as if they're muxer options, but they're not. Instead they should be set as metadata (e.g. -metadata service_name="Service 1" -metadata service_provider="Restreamer")
These are set by default causing it to error unless changed. This can be worked around by deleting these values in advanced settings.
muxrate is set to VBR by default, but this is not a valid value. Only integers are accepted. This should be set to nothing to default to VBR.
Once again this causes an error unless changed, and can be worked around by deleting the value.
If more than one mpegts_flags is set, these are sent to ffmpeg as a comma separated list (e.g. latm,system_b). This is not valid syntax for flags. Instead they should be set as a single string containing each flag in order preceded by a plus (e.g. +latm+system_b).
I did consider opening a pull request to change this myself, however I came to the conclusion that the metadata and flags syntax would required some design changes, and I wasn't sure how best to go about that.
The text was updated successfully, but these errors were encountered:
I've realised this can be fixed without significant design changes, so I've created a pull request (datarhei/restreamer-ui#39) which fixes these issues.
Thank you so much for your detailed feedback and for taking the time to identify this issue and provide insights into the problem and potential solutions.
We truly appreciate your commitment and initiative in creating a pull request. Your contribution is invaluable and will help us efficiently address your highlighted bug.
Please be assured that we will carefully review your pull request and incorporate it into our development efforts.
Once again, thank you for your support and for helping improve our product.
Describe the bug
Some of the advanced settings in the MPEG-TS protocol publication service create invalid syntax, causing the FFmpeg process to return an error and fail to start.
The default settings trigger this bug, resulting in a publication service that doesn't work out of the box.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The MPEG-TS output shouldn't return an error.
Desktop:
Additional context
Having had a look at the errors and the code this is caused by a few different issues, which all lead to the same problem depending on the advanced settings used:
service_name
) and provider (service_provider
) are set as if they're muxer options, but they're not. Instead they should be set as metadata (e.g.-metadata service_name="Service 1" -metadata service_provider="Restreamer"
)muxrate
is set to VBR by default, but this is not a valid value. Only integers are accepted. This should be set to nothing to default to VBR.mpegts_flags
is set, these are sent to ffmpeg as a comma separated list (e.g.latm,system_b
). This is not valid syntax for flags. Instead they should be set as a single string containing each flag in order preceded by a plus (e.g.+latm+system_b
).I did consider opening a pull request to change this myself, however I came to the conclusion that the metadata and flags syntax would required some design changes, and I wasn't sure how best to go about that.
The text was updated successfully, but these errors were encountered: