2024年11月21日

nodejs获取ts媒体文件的时间长度

摘要: nodejs获取ts媒体文件的时间长度 在Node.js中,你可以使用ffprobe,这是FFmpeg套件中的一个工具,来获取TS媒体文件的时长。首先,确保你已经安装了FFmpeg,然后可以通过Node.js的child_process模块运行ffprobe命令。 以下是一个简单的Node.js脚本 阅读全文

posted @ 2024-11-21 12:08 漫思 阅读(10) 评论(0) 推荐(0) 编辑

C# 获取ts媒体文件的时间长度

摘要: C# 获取ts媒体文件的时间长度 在C#中,你可以使用System.Media.SoundPlayer类来获取ts媒体文件的时间长度。以下是一个简单的示例代码: using System; using System.Media; class Program { static void Main() 阅读全文

posted @ 2024-11-21 12:06 漫思 阅读(8) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示