Browse Source

improve live stream reliability (#2524)

pull/2525/head
Jason Dove 3 months ago committed by GitHub
parent
commit
65ff1f5502
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 7
      ErsatzTV.FFmpeg/InputOption/ReadrateInputOption.cs
  3. 5
      ErsatzTV.FFmpeg/Pipeline/PipelineBuilderBase.cs

1
CHANGELOG.md

@ -27,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -27,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix remote stream durations in playouts created using block, sequential or scripted schedules
- Fix playback troubleshooting selecting a subtitle even with no subtitle stream selected in the UI
- Fix intermittent watermark opacity
- Improve reliability of live remote streams; they should transcode closer to realtime in most cases
### Changed
- Do not use graphics engine for single, permanent watermark

7
ErsatzTV.FFmpeg/InputOption/ReadrateInputOption.cs

@ -41,11 +41,10 @@ public class ReadrateInputOption : IInputOption @@ -41,11 +41,10 @@ public class ReadrateInputOption : IInputOption
}
result.AddRange(
new[]
{
"-readrate_initial_burst",
[
"-readrate_initial_burst",
_initialBurstSeconds.ToString(CultureInfo.InvariantCulture)
});
]);
}
return result.ToArray();

5
ErsatzTV.FFmpeg/Pipeline/PipelineBuilderBase.cs

@ -762,6 +762,11 @@ public abstract class PipelineBuilderBase : IPipelineBuilder @@ -762,6 +762,11 @@ public abstract class PipelineBuilderBase : IPipelineBuilder
private void SetRealtimeInput(VideoInputFile videoInputFile, FrameState desiredState)
{
if (videoInputFile.StreamInputKind is StreamInputKind.Live)
{
return;
}
int initialBurst;
if (!desiredState.Realtime)
{

Loading…
Cancel
Save