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) 

相关内容

热门资讯

4分钟神器!淘宝买wepoke... 4分钟神器!淘宝买wepoker透视有用吗,wepokerplus脚本,攻略方法(有挂教程)-哔哩哔...
两分钟了解(aapoker a... 【福星临门,好运相随】;两分钟了解(aapoker app)外挂透明挂辅助神器(透视)攻略教程(20...
第六分钟了解“科乐天天踢辅助视... 第六分钟了解“科乐天天踢辅助视频”详细透视开挂辅助器-哔哩哔哩;科乐天天踢辅助视频简单的灵活控制,仅...
第8分钟领会!德州透视脚本,a... 第8分钟领会!德州透视脚本,aapoker辅助包,玩家教你(确实有挂)-哔哩哔哩1、超多福利:超高返...
第7分钟了解(闲来安徽麻将)外... 第7分钟了解(闲来安徽麻将)外挂透明挂辅助器(透视)微扑克教程(2026已更新)(哔哩哔哩);闲来安...
七分钟了解“决战卡五星辅助神器... 七分钟了解“决战卡五星辅助神器”详细透视开挂辅助插件-哔哩哔哩;小薇(透视辅助)致您一封信;亲爱决战...
4分钟了解!wepoker辅助... 4分钟了解!wepoker辅助软件价格,德普之星的辅助工具介绍,实用技巧(有挂实锤)-哔哩哔哩1、让...
第6分钟了解(边锋二七十)外挂... 第6分钟了解(边锋二七十)外挂透明挂辅助插件(透视)攻略方法(2025已更新)(哔哩哔哩);1、超多...
两分钟了解“蜀山四川辅助脚本”... 两分钟了解“蜀山四川辅助脚本”详细透视开挂辅助插件-哔哩哔哩;一、蜀山四川辅助脚本有挂的是的,亲,有...
第九分钟知晓!hhpoker德... 第九分钟知晓!hhpoker德州真的假的,德州局透视脚本下载安装最新版本,细节方法(竟然有挂)-哔哩...