
Converts an audio file to the specified target format with appropriate codec. Args: input_audio_path: Path to the source audio file. output_audio_path: Path to save the converted audio file. target_format: Desired output audio format (e.g., 'mp3', 'wav', 'aac', 'm4a', 'wma', 'flac', 'ogg'). Returns: A status message indicating success or failure.
让音频处理变得简单高效,无论是音乐爱好者还是音视频制作人都能轻松上手!

帮你把音频文件快速转换成文字,支持多种语言和格式。

将视频片段高质量导出为 GIF(优化的 palettegen/paletteuse 两遍法)。 Args: video_path: 输入视频路径。 output_gif_path: 输出 GIF 路径(应以 .gif 结尾)。 fps: GIF 帧率,建议 8~20 之间。 width: 目标宽度(keep_aspect 为 True 时,height 需为空)。 height: 目标高度(keep_aspect 为 True 时,width 需为空)。 keep_aspect: 是否保持纵横比。 start_time: 起始时间(秒或 'HH:MM:SS(.ms)')。 dither: 调色算法,支持 'none'|'bayer'|'floyd_steinberg'|'sierra2_4a'|'burkes'。 max_colors: 调色板颜色数,2~256。 loop: 循环次数(0 为无限循环)。 crop: 裁剪参数,如 {"x":0, "y":0, "w":320, "h":240}。 scale_flags: 缩放插值算法,如 'lanczos'|'bicubic' 等。 bayer_scale: bayer 调色算法的缩放因子(0~5)。 palette_stats_mode: 调色板统计模式,'single'|'diff'|'full'。 use_reserve_transparent: 是否为透明度保留一个颜色槽。 alpha_threshold: 透明度阈值(0-255)。 Returns: A status message indicating success or failure.

帮你压缩和优化视频,支持调整码率、分辨率、帧率和视频编码格式