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、操作简单,无需...
分享透视!wepoker底牌透... 分享透视!wepoker底牌透视,微乐辅助工具哪个好用,法子教程(有挂透视)-哔哩哔哩1、进入到we...
今日科普!三哥玩辅助,we p... 今日科普!三哥玩辅助,we poker辅助器v3.3,模块教程(有挂工具)-哔哩哔哩1、玩家可以在三...
透视总结!佛手在线大菠萝为什么... 透视总结!佛手在线大菠萝为什么都输,闲来辅助器免费,总结教程(有挂技巧)-哔哩哔哩1、每一步都需要思...
今天下午!土豪联盟辅助软件下载... 今天下午!土豪联盟辅助软件下载,陕麻圈插件开挂,指南书教程(有挂教程)-哔哩哔哩1、操作简单,无需土...
解迷透视!wepoker私人辅... 解迷透视!wepoker私人辅助器,微乐自建房怎么提高胜率,诀窍教程(有挂秘笈)-哔哩哔哩wepok...
来一盘!新悠悠拼十辅助,wep... 来一盘!新悠悠拼十辅助,wepoker辅助器最新版本更新内容,指南教程(有挂助手)-哔哩哔哩1.新悠...
2026版攻略!sohoo开挂... 2026版攻略!sohoo开挂辅助,牵手跑辅助,绝活儿教程(有挂技术)-哔哩哔哩小薇(辅助器软件下载...