switch back from fmp4 to ts segments (#2554)
* restore pts offset calculation * use ts segments again * update changelog
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user