properly track discontinuity sequences with fmp4 (#2548)

* properly track discontinuity sequences with fmp4

* update dependencies
This commit is contained in:
Jason Dove
2025-10-19 10:31:11 -05:00
committed by GitHub
parent 889904e70d
commit d14ebf3522
15 changed files with 611 additions and 435 deletions
@@ -8,16 +8,11 @@ using Microsoft.EntityFrameworkCore;
namespace ErsatzTV.Application.Streaming;
public class GetErrorProcessHandler : FFmpegProcessHandler<GetErrorProcess>
public class GetErrorProcessHandler(
IDbContextFactory<TvContext> dbContextFactory,
IFFmpegProcessService ffmpegProcessService)
: FFmpegProcessHandler<GetErrorProcess>(dbContextFactory)
{
private readonly IFFmpegProcessService _ffmpegProcessService;
public GetErrorProcessHandler(
IDbContextFactory<TvContext> dbContextFactory,
IFFmpegProcessService ffmpegProcessService)
: base(dbContextFactory) =>
_ffmpegProcessService = ffmpegProcessService;
protected override async Task<Either<BaseError, PlayoutItemProcessModel>> GetProcess(
TvContext dbContext,
GetErrorProcess request,
@@ -26,9 +21,12 @@ public class GetErrorProcessHandler : FFmpegProcessHandler<GetErrorProcess>
string ffprobePath,
CancellationToken cancellationToken)
{
Command process = await _ffmpegProcessService.ForError(
DateTimeOffset now = DateTimeOffset.Now;
Command process = await ffmpegProcessService.ForError(
ffmpegPath,
channel,
now,
request.MaybeDuration,
request.ErrorMessage,
request.HlsRealtime,
@@ -43,6 +41,7 @@ public class GetErrorProcessHandler : FFmpegProcessHandler<GetErrorProcess>
Option<GraphicsEngineContext>.None,
request.MaybeDuration,
request.Until,
true);
true,
now.ToUnixTimeSeconds());
}
}