public void SetVideoCodecToken(IDisposable token) { if (token is FFmpegWriterForm.FormatPreset) { this.token = (FFmpegWriterForm.FormatPreset)token; } else { throw new ArgumentException("FFmpegWriter can only take its own codec tokens!"); } }
public void SetDefaultVideoCodecToken() { token = FFmpegWriterForm.FormatPreset.GetDefaultPreset(); }
public void SetVideoCodecToken(IDisposable token) { if (token is FFmpegWriterForm.FormatPreset) this.token = (FFmpegWriterForm.FormatPreset)token; else throw new ArgumentException("FFmpegWriter can only take its own codec tokens!"); }