python 腾讯会议录屏文件转化为MP4
创始人
2024-09-26 15:24:30
0
import os  import ffmpeg from ffmpeg import output, run   def convert_wemtv_to_mp4(input_file, output_dir):     """     将 WEMTV 文件转换为 MP4 文件并保存      Args:     input_file (str): 输入 WEMTV 文件路径     output_dir (str): 输出 MP4 文件保存目录     """     try:         if  os.path.exists(input_file):             print(f"input_file:存在")         # 检查输出目录是否存在         if not os.path.exists(output_dir):             os.makedirs(output_dir)             print(f"output_dir:不存在")          # 构建输出文件路径         output_file = os.path.join(output_dir, output_dir + ".mp4")          print(f"input_file:{input_file}")          # 创建 FFmpeg 处理流         stream = input(input_file)         print(f"stream:{stream}")         stream = output(stream, output_file, codec='libx264', f='mp4')          # 执行转换         run(stream)         print(f"转换成功: {output_file}")     except Exception as e:         print(f"转换失败: {input_file}")         print(e)   # 示例用法 input_file = 'path/to/input.wemtv' output_file = 'path/to/output.mp4' output_dir = 'directory' convert_wemtv_to_mp4(input_file, output_dir) 

相关内容

热门资讯

2026版攻略!乐乐游戏辅助器... 2026版攻略!乐乐游戏辅助器(辅助)都是确实有辅助神器(有挂方式)1、玩家可以在乐乐游戏辅助器透视...
2026版总结!雀友会辅助潮汕... 2026版总结!雀友会辅助潮汕麻将脚本(辅助)总是确实有辅助挂(有挂教程)运雀友会辅助潮汕麻将脚本辅...
据相关数据显示!新道游开挂(辅... 据相关数据显示!新道游开挂(辅助)竟然确实有辅助插件(有挂方法)1.新道游开挂 选牌创建新账号,点击...
今年以来!雀神山庄麻将辅助器(... 今年以来!雀神山庄麻将辅助器(辅助)都是真的是有辅助挂(有挂方法)雀神山庄麻将辅助器能透视中分为三种...
目前来看!四川游戏家园通用辅助... 目前来看!四川游戏家园通用辅助在(辅助)其实确实有辅助器(确实有挂)1、每一步都需要思考,不同水平的...
明白辅助挂!微信小程序功夫川码... 明白辅助挂!微信小程序功夫川码辅助(辅助)果然真的有辅助app(的确有挂)1、不需要AI权限,帮助你...
2026版复盘!宝宝浙江辅助器... 2026版复盘!宝宝浙江辅助器(辅助)真是确实有辅助工具(有挂助手)1、宝宝浙江辅助器透视辅助软件激...
目前来看!雀友会广东潮汕辅助有... 目前来看!雀友会广东潮汕辅助有开挂(辅助)本来真的有辅助技巧(有挂讲解)1、下载好雀友会广东潮汕辅助...
2026版攻略!卡农免费辅助(... 2026版攻略!卡农免费辅助(辅助)切实真的是有辅助神器(真的有挂)1、游戏颠覆性的策略玩法,独创攻...
今年以来!微乐挖坑内购破解(辅... 今年以来!微乐挖坑内购破解(辅助)一贯是真的有辅助工具(有挂功能)1、不需要AI权限,帮助你快速的进...