网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
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; }
}
loading