switch back from fmp4 to ts segments (#2554)

* restore pts offset calculation

* use ts segments again

* update changelog
This commit is contained in:
Jason Dove
2025-10-21 12:17:05 -05:00
committed by GitHub
parent fcce53a3df
commit 2ef2b0299a
26 changed files with 333 additions and 55 deletions
@@ -82,7 +82,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
FillerKind fillerKind,
TimeSpan inPoint,
DateTimeOffset channelStartTime,
long ptsOffset,
TimeSpan ptsOffset,
Option<int> targetFramerate,
Option<string> customReportsFolder,
Action<FFmpegPipeline> pipelineAction,
@@ -244,7 +244,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
switch (channel.StreamingMode)
{
case StreamingMode.HttpLiveStreamingSegmenter:
outputFormat = OutputFormatKind.HlsMp4;
outputFormat = OutputFormatKind.Hls;
break;
case StreamingMode.HttpLiveStreamingDirect:
{
@@ -554,7 +554,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
Option<TimeSpan> duration,
string errorMessage,
bool hlsRealtime,
long ptsOffset,
TimeSpan ptsOffset,
string vaapiDisplay,
VaapiDriver vaapiDriver,
string vaapiDevice,
@@ -619,7 +619,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
switch (channel.StreamingMode)
{
case StreamingMode.HttpLiveStreamingSegmenter:
outputFormat = OutputFormatKind.HlsMp4;
outputFormat = OutputFormatKind.Hls;
break;
}
@@ -631,6 +631,7 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
Option<string> hlsSegmentTemplate = outputFormat switch
{
OutputFormatKind.Hls => Path.Combine(FileSystemLayout.TranscodeFolder, channel.Number, "live%06d.ts"),
OutputFormatKind.HlsMp4 => Path.Combine(
FileSystemLayout.TranscodeFolder,
channel.Number,