improve segmenter v2 hevc compliance with fmp4 (#1684)

This commit is contained in:
Jason Dove
2024-04-21 10:01:11 -05:00
committed by GitHub
parent da20393a39
commit 19af303d76
6 changed files with 44 additions and 71 deletions
@@ -651,10 +651,14 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
Option<string> hlsPlaylistPath = Path.Combine(FileSystemLayout.TranscodeFolder, channel.Number, "live.m3u8");
Option<string> hlsSegmentTemplate = Path.Combine(
FileSystemLayout.TranscodeFolder,
channel.Number,
"live%06d.ts");
Option<string> hlsSegmentTemplate = videoFormat switch
{
// hls/hevc needs mp4
VideoFormat.Hevc => Path.Combine(FileSystemLayout.TranscodeFolder, channel.Number, "live%06d.m4s"),
// hls is otherwise fine with ts
_ => Path.Combine(FileSystemLayout.TranscodeFolder, channel.Number, "live%06d.ts")
};
var desiredState = new FrameState(
playbackSettings.RealtimeOutput,