m3u8-to-mp4
This module helps you convert an M3U8 file to an MP4 file easily using ffmpeg/node.js
Installation
This module can be installed via npm. You will also need to install ffmpeg for this module to work:
$ sudo apt install ffmpeg$ npm install --save m3u8-to-mp4
Usage
var m3u8ToMp4 = ;var converter = ;
Functions
converter.setInputFile(filename)
- filename: M3U8 file path. You can use remote URL
converter.setOutputFile(filename)
- filename: Output file path. Has to be local :)
converter.start()
var m3u8ToMp4 = ;var converter = ; { await converter start; console;};
or if you want to use it with .then() instead of async/await:
var m3u8ToMp4 = ;var converter = ; converter start ;