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黑侠破解,微乐智能辅助app,指南教程(有挂详情)-哔哩哔哩1.wepoke...
针对!柳州天天爱字牌辅助器,青... 针对!柳州天天爱字牌辅助器,青橙竞技游戏辅助,方案教程(有挂透明挂)-哔哩哔哩1、许多玩家不知道柳州...
突发!拱趴大菠萝机器人,熟客温... 突发!拱趴大菠萝机器人,熟客温州游戏辅助器,模板教程(有挂神器)-哔哩哔哩1、熟客温州游戏辅助器脚本...
科普透视!wpk作弊,微信小程... 科普透视!wpk作弊,微信小程序透视微乐,法子教程(有挂教程)-哔哩哔哩亲,关键说明,wpk作弊透视...
2026版教学!哈糖大菠萝攻略... 2026版教学!哈糖大菠萝攻略,新星游辅助软件,方式教程(有挂工具)-哔哩哔哩1、哈糖大菠萝攻略透视...
据统计!新上游辅助,拱趴大菠萝... 据统计!新上游辅助,拱趴大菠萝辅助工具是真的吗,教材教程(揭秘有挂)-哔哩哔哩1、这是跨平台的拱趴大...
有挂透视!竞技联盟透视插件,微... 您好,竞技联盟透视插件这款游戏可以开挂的,确实是有挂的,需要了解加去威信【485275054】很多玩...
受玩家影响!德州之星扫描器,斗... 受玩家影响!德州之星扫描器,斗棋有bug么开挂,手段教程(讲解有挂)-哔哩哔哩1、下载好德州之星扫描...
近日!透视辅助器免费蜀山四川,... 近日!透视辅助器免费蜀山四川,手机填大坑辅助器,法子教程(有挂解惑)-哔哩哔哩1、打开软件启动之后找...
有挂透视!hhpkoer辅助器... 有挂透视!hhpkoer辅助器视频,微乐小程序黑科技下载,方针教程(有挂方略)-哔哩哔哩1、首先打开...