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) 

相关内容

热门资讯

透视软件!wepoker到底有... 透视软件!wepoker到底有没有透视,wepoker可以开透视吗,课程教程(确实有挂)-哔哩哔哩1...
一分钟app!玖游卡五星辅助,... 一分钟app!玖游卡五星辅助,四川徒有辅助软件,一贯有挂(有挂工具)-哔哩哔哩1)四川徒有辅助软件辅...
三分钟普及!填大坑辅助器(辅助... 三分钟普及!填大坑辅助器(辅助挂)切实真的是有挂,力荐教程(有挂总结)-哔哩哔哩1、该软件可以轻松地...
透视科技!菠萝辅助器免费版的功... 透视科技!菠萝辅助器免费版的功能介绍,wepoker游戏安装教程,绝活儿教程(的确有挂)-哔哩哔哩;...
第八分钟工具!花花生活圈脚本,... 第八分钟工具!花花生活圈脚本,掌中乐游戏辅助器,好像是有挂(竟然有挂)-哔哩哔哩1、掌中乐游戏辅助器...
第7分钟专业!红人阁自动挂机脚... 第7分钟专业!红人阁自动挂机脚本(辅助挂)都是存在有挂,切实教程(有挂透明挂)-哔哩哔哩1、红人阁自...
透视真的!德普之星怎么开辅助,... 透视真的!德普之星怎么开辅助,wepoker智能辅助插件,阶段教程(有挂功能)-哔哩哔哩1、实时德普...
四分钟工具!兴动互娱最强辅助神... 四分钟工具!兴动互娱最强辅助神器,全民比鸡bug,一直有挂(确实有挂)-哔哩哔哩1、很好的工具软件,...
第九分钟推荐!琼戏互娱破解版(... 第九分钟推荐!琼戏互娱破解版(辅助挂)一贯是有挂,力荐教程(有挂细节)-哔哩哔哩一、琼戏互娱破解版A...
透视工具!aapoker辅助插... 透视工具!aapoker辅助插件工具,wepokerplus万能挂,法门教程(有挂透视)-哔哩哔哩a...