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) 

相关内容

热门资讯

透视辅助!wejoker辅助器... 透视辅助!wejoker辅助器怎么卖,佛手在线大菠萝辅助,关于开挂辅助工具(透视竟然有挂) >>您好...
热点推荐“xpoker怎么辅助... 开挂教程视频分享装挂详细步骤在当今的网络游戏中,作为一种经典的娱乐方式,吸引了无数玩家的参与。尤其是...
透视辅助!wepoker透视脚... 透视辅助!wepoker透视脚本是什么,aapoker插件,科技开挂辅助工具(透视有挂解密)【无需打...
推荐一款“hhpkoer辅助挂... 您好:这款游戏可以开挂的,确实是有挂的,很多玩家在这款游戏中打牌都会发现很多用户的牌特别好,总是好牌...
透视辅助!hh poker辅助... hh poker辅助器先试用是一款专注玩家量身打造的游戏记牌类型软件,在hh poker辅助器先试用...
我来向大家传授“wepoker... 我来向大家传授“wepoker永久免费脚本”开挂(透视)辅助平台(科技教程有挂技术)您好:这款游戏可...
透视辅助!wepoker怎么设... 透视辅助!wepoker怎么设置盖牌,拱趴大菠萝十三水辅助,分享开挂辅助平台(透视有挂教程);无需打...
重磅来袭“wepoker可以免... 重磅来袭“wepoker可以免费玩吗”开挂(透视)辅助安装(新2026教程有挂猫腻)1、下载安装好,...
透视辅助!aa poker透视... 透视辅助!aa poker透视软件,wepoker插件功能辅助器,教会开挂辅助神器(透视有挂总结);...
实测教程“wepoker免费脚... 实测教程“wepoker免费脚本”开挂(透视)辅助安装(切实教程有挂秘笈) 【无需打开直接搜索加薇1...