mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
539 B
19 lines
539 B
namespace ErsatzTV.FFmpeg.Option.Metadata; |
|
|
|
public class MetadataServiceNameOutputOption : OutputOption |
|
{ |
|
private readonly string _serviceName; |
|
|
|
public MetadataServiceNameOutputOption(string serviceName) |
|
{ |
|
_serviceName = serviceName; |
|
} |
|
|
|
public override IList<string> OutputOptions => new List<string> |
|
{ "-metadata", $"service_name=\"{_serviceName}\"" }; |
|
|
|
public override FrameState NextState(FrameState currentState) => currentState with |
|
{ |
|
MetadataServiceName = _serviceName |
|
}; |
|
}
|
|
|