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) 

相关内容

热门资讯

透视辅助!wpk挂在哪里买到真... >>您好:wpk挂在哪里买到真的确实是有挂的,很多玩家在这款游戏中打牌都会发现很多用户的牌特别好,总...
透视计算!hhpoker透视脚... 透视计算!hhpoker透视脚本,wejoker手机版透视脚本,演示教程(竟然有挂)-哔哩哔哩1、每...
透视黑科技!模拟器打开hhpo... 透视黑科技!模拟器打开hhpoker(透视)确实真的有挂,力荐教程(有挂科技)-哔哩哔哩1、进入到模...
开挂辅助工具!WePoKer有... 无需打开直接搜索;操作使用教程:开挂辅助工具!WePoKer有没有透视软件挂,wepoker透视挂真...
五分钟开挂!aa poker透... 五分钟开挂!aa poker透视软件(透视)确实有挂,微扑克教程(有挂辅助)-哔哩哔哩1、五分钟开挂...
透视能赢!wejoker辅助器... 透视能赢!wejoker辅助器要钱玩吗,wepoker有透视功能吗,积累教程(有挂神器)-哔哩哔哩w...
透视黑科技!we-poker辅... 透视黑科技!we-poker辅助(透视)原来有挂,解密教程(有挂网页版)-哔哩哔哩1、下载好we-p...
透视脚本!wepokerplu... 透视脚本!wepokerplus辅助透视教程,wepoker透视挂教程,(重大科普外挂辅助安装)是一...
透视好友房!aapoker怎么... 透视好友房!aapoker怎么提高中牌率,wepoker辅助透视,经验教程(发现有挂)-哔哩哔哩1、...
第6分钟详情!wepoker私... 第6分钟详情!wepoker私人局透视插件(透视)总是有挂,必赢方法(有挂讲解)-哔哩哔哩1、很好的...