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) 

相关内容

热门资讯

黑科技攻略(WePoKe)we... 黑科技攻略(WePoKe)wepoke显示有作弊(透明黑科技)确实真的是有挂(2023已更新)(哔哩...
黑科技辅助(wpk长期盈利打法... 黑科技辅助(wpk长期盈利打法教学)外挂透明挂辅助插件(透视)原来存在有挂(有挂猫腻)-哔哩哔哩;1...
玩家必看攻略!德扑ai机器人哪... 1、玩家必看攻略!德扑ai机器人哪里有卖(软件透明挂)大神讲解(2020已更新)(哔哩哔哩)。2、德...
黑科技有挂(WePoKe)菠萝... 黑科技有挂(WePoKe)菠萝德州有挂吗(辅助挂)原来真的是有挂(2020已更新)(哔哩哔哩)菠萝德...
黑科技辅助(wepoke德州扑... 黑科技辅助(wepoke德州扑克智能ai)外挂透明挂辅助工具(透视)都是是有挂(果真有挂)-哔哩哔哩...
玩家实测!aapoker辅助软... 玩家实测!aapoker辅助软件开发定制(透明黑科技)2025新版(2022已更新)(哔哩哔哩)是一...
黑科技教学(WePoKe)we... 黑科技教学(WePoKe)wepoke有辅助挂吗(透明挂)竟然是有挂(2023已更新)(哔哩哔哩)1...
黑科技数据(德州ai人工智能)... 黑科技数据(德州ai人工智能)外挂透明挂辅助黑科技(透视)一直真的有挂(讲解有挂)-哔哩哔哩1、德州...
玩家交流!wepoke显示有作... 玩家交流!wepoke显示有作弊(透明挂黑科技)力荐教程(2023已更新)(哔哩哔哩)1、实时wep...
黑科技辅助(WePoKe)wp... 黑科技辅助(WePoKe)wpk辅助透视(ai代打)真是真的是有挂(2020已更新)(哔哩哔哩);1...