mirror of https://github.com/ErsatzTV/ErsatzTV.git
Browse Source
* wip: hls direct subtitles * convert picture subtitles with hls direct * use mp4 for hls direct to support more codecs * disable subtitle conversion in hls direct * fix tests * update changelogpull/1294/head
13 changed files with 120 additions and 35 deletions
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
namespace ErsatzTV.FFmpeg.Encoder; |
||||
|
||||
public class EncoderDvdSubtitle : EncoderBase |
||||
{ |
||||
public override string Name => "dvdsub"; |
||||
public override StreamKind Kind => StreamKind.Subtitle; |
||||
public override FrameState NextState(FrameState currentState) => currentState; |
||||
} |
||||
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
namespace ErsatzTV.FFmpeg.Option; |
||||
|
||||
public class Mp4OutputOptions : OutputOption |
||||
{ |
||||
public override IList<string> OutputOptions => new List<string> { "-movflags", "+faststart+frag_keyframe+delay_moov" }; |
||||
} |
||||
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
using ErsatzTV.FFmpeg.Environment; |
||||
|
||||
namespace ErsatzTV.FFmpeg.OutputFormat; |
||||
|
||||
public class OutputFormatMp4 : IPipelineStep |
||||
{ |
||||
public IList<EnvironmentVariable> EnvironmentVariables => Array.Empty<EnvironmentVariable>(); |
||||
public IList<string> GlobalOptions => Array.Empty<string>(); |
||||
public IList<string> InputOptions(InputFile inputFile) => Array.Empty<string>(); |
||||
public IList<string> FilterOptions => Array.Empty<string>(); |
||||
public IList<string> OutputOptions => new List<string> { "-f", "mp4" }; |
||||
public FrameState NextState(FrameState currentState) => currentState; |
||||
} |
||||
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
namespace ErsatzTV.FFmpeg; |
||||
|
||||
public enum SubtitleMethod |
||||
{ |
||||
None, |
||||
Burn, |
||||
Convert, |
||||
Copy |
||||
} |
||||
Loading…
Reference in new issue