properly track discontinuity sequences with fmp4 (#2548)
* properly track discontinuity sequences with fmp4 * update dependencies
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user