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、下载好哈糖大菠萝有挂吗透视辅助...
出现新变化!邯郸胡乐挂!都是是... 出现新变化!邯郸胡乐挂!都是是有辅助下载(有挂功能)-哔哩哔哩邯郸胡乐挂透视方法中分为三种模型:邯郸...
透视计算!wepoker钻石怎... 透视计算!wepoker钻石怎么看底牌(透视)辅助修改器(揭秘有挂)-哔哩哔哩1、每一步都需要思考,...
经调查!顺欣茶坊智能辅助器使用... 经调查!顺欣茶坊智能辅助器使用说明书!都是存在有辅助脚本(有挂方略)-哔哩哔哩1、顺欣茶坊智能辅助器...
透视挂!来玩app破解版(透视... 透视挂!来玩app破解版(透视)辅助修改器(有挂秘籍)-哔哩哔哩1、许多玩家不知道来玩app破解版辅...
此事迅速冲上热搜!山西扣点点透... 此事迅速冲上热搜!山西扣点点透视插件下载链接!切实真的有辅助神器(有挂方法)-哔哩哔哩进入游戏-大厅...
透视肯定!德州私人局怎么透视(... 透视肯定!德州私人局怎么透视(透视)辅助神器(有挂技巧)-哔哩哔哩1、每一步都需要思考,不同水平的挑...
据报道!拱趴大菠萝作z弊方法!... 据报道!拱趴大菠萝作z弊方法!原来真的是有辅助修改器(有挂工具)-哔哩哔哩1、金币登录送、破产送、升...
截至目前!德普之星透视辅助(透... 截至目前!德普之星透视辅助(透视)辅助辅助器(的确有挂)-哔哩哔哩1、德普之星透视辅助模拟器是什么优...
经核实!上饶中至插件下载!切实... 经核实!上饶中至插件下载!切实真的是有辅助插件(有挂详情)-哔哩哔哩1、上饶中至插件下载公共底牌简单...