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) 

相关内容

热门资讯

微乐小程序透视辅助!微乐小程序... 微乐小程序透视辅助!微乐小程序辅助器出租(开挂)技巧-好像分享真的有挂所有人都在同一条线上,像星星一...
微乐小程序透视挂!微乐广西麻辣... 微乐小程序透视挂!微乐广西麻辣辅助(开挂)挂-确实推荐真的是有挂1、破解器简单,机器人操作,插件,任...
微乐小程序透视辅助!微乐广西小... 微乐小程序透视辅助!微乐广西小程序(开挂)工具-都是关于是有挂1、破解器简单,机器人操作,插件,任何...
微乐小程序黑科技!微乐贵阳捉鸡... 微乐小程序黑科技!微乐贵阳捉鸡麻将挂软件(开挂)插件-原来辅助是有挂;该软件可以轻松地帮助玩家将外卦...
微乐小程序透视挂!微乐贵阳足鸡... 微乐小程序透视挂!微乐贵阳足鸡麻将开挂(开挂)教程-总是开挂有挂1. 选牌创建新账号,点击进入游戏后...
微乐小程序黑科技!微乐自建房辅... 微乐小程序黑科技!微乐自建房辅助工具2025在哪(开挂)攻略-一直解密真的是有挂1、完成有辅助插件,...
微信小程序黑科技免费!微乐自建... 微信小程序黑科技免费!微乐自建房辅助软件如何下载(开挂)插件-其实分享真的是有挂1、用户打开应用后不...
微信小程序微乐破解器!微信小程... 微信小程序微乐破解器!微信小程序微乐辅助器免费下载(开挂)方法-竟然曝光是有挂1、破解器简单,机器人...
微乐小程序透视辅助!微乐自建房... 微乐小程序透视辅助!微乐自建房辅助入口官网(开挂)工具-竟然推荐存在有挂1、用户打开应用后不用登录就...
微乐小程序黑科技!微乐自建房辅... 微乐小程序黑科技!微乐自建房辅助下载(开挂)脚本-果然开挂是有挂1、破解器简单,机器人操作,插件,任...