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免费脚本,wepoker有辅助工具吗(透视)策略脚本(切实是真的挂)-哔哩哔哩...
长期以来!德州辅助工具到底怎么... 长期以来!德州辅助工具到底怎么样,wepokerh5破解(透视)教程书教程(原来有挂)1)德州辅助工...
一直以来!樱花之盛有没有挂,麻... 您好,樱花之盛有没有挂这款游戏可以开挂的,确实是有挂的,需要了解加去威信【485275054】很多玩...
透视软件!凑一桌游戏关春天辅助... 透视软件!凑一桌游戏关春天辅助,微信微乐小程序有窍门吗(开挂)真是有挂(有挂教程)-哔哩哔哩1、下载...
据通报!aapoker透视方法... 据通报!aapoker透视方法,aapoker辅助器怎么用(透视)要领脚本(真是有挂)-哔哩哔哩aa...
有了最新消息!微乐河北自建房脚... 有了最新消息!微乐河北自建房脚本免费入口,大菠萝辅助器(透视)器-好像真的有挂小薇(辅助器软件下载)...
今天下午!wepoker科技辅... 今天下午!wepoker科技辅助器,如何下载德普之星辅助软件(透视)模块教程(一直真的有挂)1、下载...
透视模拟器!贪玩互娱辅助,微信... 透视模拟器!贪玩互娱辅助,微信微乐游戏辅助器(开挂)一贯存在有挂(有挂规律)-哔哩哔哩透视模拟器!贪...
昨日!wpk插件,有哪些免费的... 昨日!wpk插件,有哪些免费的wpk透视码(透视)教材脚本(切实真的有挂)-哔哩哔哩1、超多福利:超...
有了最新消息!hhpoker脚... 有了最新消息!hhpoker脚本,wepoker私人局透视插件(透视)方针教程(好像有挂)1、全新机...