38

M3U8Downloader:开源直播流(m3u8)下载工具

 3 years ago
source link: http://osp.io/archives/3131
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
M3U8Downloader:开源直播流(m3u8)下载工具 – 开源派

M3U8Downloader 是一款 m3u8 下载工具,把 m3u8 流媒体下载到特定的本地目录,包含所有的媒体片段。

M3U8Downloader 是 Node 模块,使用 JavaScript 编写,遵循 MIT 开源授权协议,当前已经停止维护。

M3U8Downloader  使用非常简单,在使用以下代码段之前必须先创建一个本地的目录:

var m3u8downloader = require('m3u8downloader');
var downloader = new m3u8downloader("http://www.nacentapps.com/m3u8/index.m3u8", "destination",
function(err, data)
{
    if(err)
        console.log(err);
    else
        console.dir(data)
});

downloader.on('start', function()
{
    console.log("started downloading");
});

downloader.on('progress', function(d)
{
    console.log(d);
});


downloader.on('downloaded', function(d)
{
    console.log(d);
});


downloader.on('complete', function(d) 
{
    console.log('done');
});

https://github.com/skimotv/m3u8downloader 

此外还有一款 C# 编写的,基于FFmpeg (https://github.com/FFmpeg/FFmpeg) 的 M3U8 下载器 M3U8 Downloader:

https://github.com/nilaoda/M3U8-Downloader

XP 需要安装 Microsoft .NET Framework 4 Client Profile。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK