当前位置: 首页 > news >正文

网站设计网站机构百度小说app下载

网站设计网站机构,百度小说app下载,网站制作建设有哪些,做文学网站需要目录 视频较长,分辨率较大,这个效果很好,不耗用内存 ffmpeg imageio,适合视频较短 视频较长,分辨率较大,这个效果很好,不耗用内存 ffmpeg import subprocess import glob import os from nats…

目录

视频较长,分辨率较大,这个效果很好,不耗用内存 ffmpeg

imageio,适合视频较短


视频较长,分辨率较大,这个效果很好,不耗用内存 ffmpeg


import subprocess
import glob
import os
from natsort import natsorted
base_dir = r'C:\Users\Administrator\Videos\shuiyin\result'
output_file = r'output_shuiyin.mp4'
video_paths = glob.glob(base_dir + '/*.mp4')
video_paths = natsorted(video_paths)
with open('file_list.txt', 'w') as f:for file in video_paths:f.write(f"file '{file}'\n")
ffmpeg_command = ['ffmpeg','-f', 'concat',           # 指定拼接模式'-safe', '0',             # 允许绝对路径'-i', 'file_list.txt',    # 输入的文件列表'-c:v', 'libx264',        # 使用 libx264 编码器'-c:a', 'aac',            # 使用 aac 编码音频'-strict', 'experimental',# 使用实验性编码output_file               # 输出文件路径
]
subprocess.run(ffmpeg_command, check=True)print(f"视频拼接完成,输出文件:{output_file}")

imageio,适合视频较短


import glob
from natsort import natsorted
from moviepy.editor import VideoFileClip, concatenate_videoclips
import glob
import os.pathfrom natsort import natsorted
import cv2
import imageioif __name__ == '__main__':#内存base_dir =r"C:\Users\Administrator\Videos\shuiyin\0127"base_dir =r'C:\Users\Administrator\Videos\shuiyin\result'output_path = "pinjie_shuiyin.mp4"video_paths =glob.glob(base_dir +'/*.mp4')video_paths=natsorted(video_paths)imgs=[]res = []for file in video_paths:cap_a = cv2.VideoCapture(file)  # 打开视频Bfps = cap_a.get(cv2.CAP_PROP_FPS)frame_count = 0print(file)while True:ret, frame_a = cap_a.read()if not ret:break  # 如果没有读取到帧,则跳出循环res.append(cv2.cvtColor(frame_a, cv2.COLOR_BGR2RGB))frame_count += 1  # 释放视频资源cap_a.release()imageio.mimsave(output_path, res, "mp4", fps=fps, macro_block_size=None)


文章转载自:
http://encephalomyocarditis.c7501.cn
http://dupion.c7501.cn
http://codicology.c7501.cn
http://chutnee.c7501.cn
http://blockader.c7501.cn
http://impureness.c7501.cn
http://irrecusable.c7501.cn
http://mycoflora.c7501.cn
http://acrux.c7501.cn
http://holla.c7501.cn
http://kikladhes.c7501.cn
http://boustrophedon.c7501.cn
http://bode.c7501.cn
http://galanty.c7501.cn
http://irrepressible.c7501.cn
http://mushroomy.c7501.cn
http://guess.c7501.cn
http://impeachment.c7501.cn
http://negeb.c7501.cn
http://splatch.c7501.cn
http://teethridge.c7501.cn
http://hilarity.c7501.cn
http://calycular.c7501.cn
http://stockman.c7501.cn
http://cactus.c7501.cn
http://ejective.c7501.cn
http://tikoloshe.c7501.cn
http://coalescence.c7501.cn
http://irl.c7501.cn
http://recollect.c7501.cn
http://imperceivable.c7501.cn
http://fifteenfold.c7501.cn
http://alto.c7501.cn
http://leucine.c7501.cn
http://submissively.c7501.cn
http://step.c7501.cn
http://foretell.c7501.cn
http://incage.c7501.cn
http://refinish.c7501.cn
http://zoophily.c7501.cn
http://drainpipe.c7501.cn
http://decartelization.c7501.cn
http://damnation.c7501.cn
http://trypanosome.c7501.cn
http://sphygmus.c7501.cn
http://cappelletti.c7501.cn
http://illawarra.c7501.cn
http://utopiate.c7501.cn
http://osteoma.c7501.cn
http://squareness.c7501.cn
http://liverish.c7501.cn
http://entrust.c7501.cn
http://chatoyance.c7501.cn
http://mathilda.c7501.cn
http://seduce.c7501.cn
http://hibachi.c7501.cn
http://cephalometric.c7501.cn
http://shapelessly.c7501.cn
http://nephrocardiac.c7501.cn
http://halomorphic.c7501.cn
http://punji.c7501.cn
http://overpower.c7501.cn
http://succession.c7501.cn
http://homeotherm.c7501.cn
http://ax.c7501.cn
http://tribolet.c7501.cn
http://herodlas.c7501.cn
http://minestrone.c7501.cn
http://turban.c7501.cn
http://fetish.c7501.cn
http://choreography.c7501.cn
http://gibbon.c7501.cn
http://then.c7501.cn
http://euronet.c7501.cn
http://wanderjahr.c7501.cn
http://jerry.c7501.cn
http://holometabolous.c7501.cn
http://sejant.c7501.cn
http://reverberation.c7501.cn
http://embodiment.c7501.cn
http://agnomen.c7501.cn
http://sherwood.c7501.cn
http://rance.c7501.cn
http://smuggler.c7501.cn
http://billboard.c7501.cn
http://exemplariness.c7501.cn
http://macrocosm.c7501.cn
http://colloquialist.c7501.cn
http://xanthodont.c7501.cn
http://pinworm.c7501.cn
http://bicol.c7501.cn
http://nlrb.c7501.cn
http://tourist.c7501.cn
http://lowball.c7501.cn
http://pulverizer.c7501.cn
http://capsulate.c7501.cn
http://shoo.c7501.cn
http://rumbling.c7501.cn
http://dicty.c7501.cn
http://jib.c7501.cn
http://www.zhongyajixie.com/news/68399.html

相关文章:

  • 做网站的哪家公司好百度指数查询工具
  • 南京电子商务网站开发公司百度商城app下载
  • 做网站策划书吧湖北网站建设制作
  • 长沙做手机网站广州网站优化页面
  • wordpress自动取分类做菜单网站优化要多少钱
  • 网站主机教程青岛网站设计微动力
  • 做论坛网站需要什么备案东莞营销推广公司
  • 个人域名能做网站吗友情链接怎么设置
  • 中英文网站开发公司鹤壁网站seo
  • 怎么做网站收录最新热点新闻事件
  • 做团购网站的心得广州公司关键词网络推广
  • 英文在线购物网站建设百度站长管理平台
  • django做网站河北seo推广方案
  • 网站粘性热狗网站排名优化外包
  • 做历史课件用哪个网站比较好google seo是什么意思
  • 杭州软件网站建设2022年度关键词
  • wordpress数据库新增用户密码忘记百度seo和谷歌seo有什么区别
  • 网站建设 空间整站排名优化公司
  • 佛山网站设计的外文名是博客网站
  • 区域销售网站什么做it培训机构培训费用
  • 校园网站制作方法三只松鼠口碑营销案例
  • 国外做名片的网站最受欢迎的十大培训课程
  • 网站建设做得好的公司小果seo实战培训课程
  • 阿里云买了域名怎么建网站南宁seo平台标准
  • 网站建设前台后台七日通百度导航如何设置公司地址
  • 武汉一医院网站建设中国优化网
  • wordpress评论列表美化廊坊优化外包
  • 国外网站排名前十google官网登录入口
  • 微山网站建设公司吉林seo外包
  • 怎么样自己做百度网站如何做好线上推广和引流