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) 

相关内容

热门资讯

做出回应!hhpoker辅助器... 做出回应!hhpoker辅助器视频,wepoker免费透视,模板教程(果然透视真的有挂)-哔哩哔哩1...
今天上午!wepoker软件靠... 今天上午!wepoker软件靠谱么(透视)果然真的是有挂(真的有挂开挂辅助平台)-哔哩哔哩1、下载好...
此事备受玩家关注!陕麻圈脚本修... 此事备受玩家关注!陕麻圈脚本修改器(辅助挂)一直是有挂的(有挂指南)-哔哩哔哩1、每一步都需要思考,...
据通报!拱趴大菠萝有挂吗,we... 据通报!拱趴大菠萝有挂吗,wepoker免费脚本,项目教程(原来透视是有挂的)-哔哩哔哩1、点击下载...
截至发稿!hhpoker免费透... 截至发稿!hhpoker免费透视脚本(透视)果然真的有挂(有挂讲解开挂辅助辅助器)-哔哩哔哩1、任何...
这一现象值得深思!打大a辅助器... 这一现象值得深思!打大a辅助器(辅助挂)其实是有挂(有挂攻略)-哔哩哔哩打大a辅助器辅助器中分为三种...
做出回应!hhpoker是内部... 做出回应!hhpoker是内部控制吗,wepoker开脚本视频,方案教程(其实透视确实有挂)-哔哩哔...
迎来新发展!hhpoker有没... 迎来新发展!hhpoker有没有辅助挂(透视)一直有挂(有挂方法开挂辅助下载)-哔哩哔哩1、这是跨平...
现场直击!闲来山水广西辅助(辅... 现场直击!闲来山水广西辅助(辅助挂)一直有挂(有挂手段)-哔哩哔哩1、超多福利:超高返利,海量正版游...
据目击者称!德普之星app安卓... 据目击者称!德普之星app安卓版破解版,sohoopoker辅助,资料教程(原来透视真的是有挂)-哔...