登录
首页 » C# » 获取视频时间的长度

获取视频时间的长度

于 2022-07-16 发布 文件大小:34.83 kB
0 153
下载积分: 2 下载次数: 3

代码说明:

忽然想统计一下这套视频一共多长时间,由于视频文件很多,一共72个,挨个打开进行累加不是程序员应该想起的办法。所以就打算写一个程序来完成这件事,最核心的问题就是“获得一个视频文件的时长”。 ffmpeg是一个专业的音频视频处理开源技术,借助于它可以完成视频转码、视频截图、视频提取等工作,ffmepg也提供了获取视频长度的方法,不过想想只是获取视频长度这么一件事就要动用ffmpeg有点“杀鸡用牛刀”的感觉,所以就上网搜寻是否有其他获得视频文件长度的方法,很快就找到了这样一篇文章《C# 获取视频文件播放时长》,使用下面的代码就可以获得视频文件的长度

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ms-bcs-spl-1.2-2
    matlab code for image compressive sensing. block compressive sensing is used.
    2013-04-22 23:05:20下载
    积分:1
  • kalmanPcamshift
    基于视频的跟踪,结合卡尔曼和camshift的目标跟踪。由鼠标选中目标区域(包含了鼠标选中程序),kalman和camshift预测质心,从而达到目标跟踪。(Based opencv, combined with the target tracking Kalman and camshift. By the mouse to select the target area, kalman and centroid camshift forecast to achieve target tracking.)
    2011-06-10 18:50:47下载
    积分:1
  • 28335PWM设置程序
    说明:  TMS320F28335的PWM模块设置程序,最基本的PWM设置模板(The PWM module setting program of TMS320F28335 and the most basic PWM setting template)
    2020-06-17 20:00:02下载
    积分:1
  • kennedy_-pso
    二进制粒子群的源代码,可以用来给初学者作为学习的模板。只要修改目标函数,就可以运行解决离散的优化问题(Binary particle swarm of source code, and can be used as a template for beginners to learn. As long as the objective function changes can run to solve the problem of the optimization of the discrete)
    2012-03-28 15:13:18下载
    积分:1
  • DP-48A1-QRcode-Print--MSP430
    本程序用于DP-48A1达普内嵌式打印机打印二维码使用,内包含打印指令详细注释以及自行编程了集汉字、字符串、变量的二维码打印函数,可以方便使用。(This procedure for DP-48A1 da dimensional code embedded printer use, and contains detailed notes, and self print instruction program a two-dimensional code printing function set characters, strings, variables, you can easily use.)
    2020-07-09 15:58:55下载
    积分:1
  • clock
    三星S3C2440板子中配置时钟的程序,ARM ADS开发工具,初学的时候很实用。(Samsung S3C2440 board configured clock procedures, ARM ADS development tools, a novice when it is practical.)
    2013-10-23 21:41:21下载
    积分:1
  • bingo
    自己做的两个小病毒和一个控制开关机的程序。。。小病毒求大神指点aaa(Own two small virus and a control switch procedure. . . The god of small viruses seek advice aaa)
    2013-12-26 18:46:40下载
    积分:1
  • Grade
    用mfc做的学生成绩c++程序,能连接数据库。能实现增加,删除,修改(Using MFC to do student achievement c++ program, can connect to the database. Can increase, delete, modify)
    2018-09-25 22:06:42下载
    积分:1
  • Horizontal-dip-XYZ-detector
    基于STC89C51RC的水平倾角XYZ检测仪(Horizontal dip XYZ detector STC89C51RC)
    2016-01-31 01:55:10下载
    积分:1
  • baw
    json c 0,9 Source code and documentation()
    2018-03-18 09:13:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载