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、雀友会广东潮汕麻雀开挂辅...
不少玩家反映!hhpoker是... 不少玩家反映!hhpoker是真的假的,wejoker手机版透视脚本,项目教程(真实有挂)1、起透看...
模板辅助!广东雀神智能插件安卓... 您好,广东雀神智能插件安卓包这款游戏可以开挂的,确实是有挂的,需要了解加去威信【136704302】...
据监测!wepoker开脚本视... 据监测!wepoker开脚本视频,aapoker透视怎么用,资料教程(有挂讲解)1、wepoker开...
妙计辅助!授权二厅辅助(辅助挂... 妙计辅助!授权二厅辅助(辅助挂)果然真的有辅助工具(存在有挂)1、下载好授权二厅辅助正确养号方法之后...
这一现象值得深思!wejoke... 这一现象值得深思!wejoker辅助软件价格,wepoker作弊方法,法门教程(有挂神器)1、许多玩...
阶段辅助!拱趴大菠萝运势(辅助... 阶段辅助!拱趴大菠萝运势(辅助挂)真是真的有辅助攻略(有挂神器)1、全新机制【拱趴大菠萝运势ai辅助...
值得注意的是!pokemmo修... 值得注意的是!pokemmo修改器手机版,wepoker透视辅助下载,策略教程(有挂解惑)1、完成w...
秘籍辅助!雀姬手游辅助(辅助挂... 秘籍辅助!雀姬手游辅助(辅助挂)其实真的有辅助挂(有挂头条)1、游戏颠覆性的策略玩法,独创攻略技巧玩...
现场直击!wepoker有没有... 现场直击!wepoker有没有挂,werplan脚本,窍门教程(确实有挂)wepoker有没有挂是不...