using System.Text.Json.Serialization;
namespace Dpz.Core.Service.ObjectStorage.VideoHandle;
public class PretreatmentTask
{
/// <summary>
/// 音频还是视频
/// </summary>
public required string Type { get; set; } = "video";
/// <summary>
/// 参数
/// </summary>
[JsonPropertyName("avopts"), JsonConverter(typeof(AvOptsConverter))]
public required AvOpts AvOpts { get; init; } = [];
/// <summary>
/// 返回元数据
/// </summary>
[JsonPropertyName("return_info")]
public bool ReturnInfo { get; set; } = true;
/// <summary>
/// 保存路径
/// </summary>
[JsonPropertyName("save_as")]
public required string SaveAs { get; init; }
}