An open API service indexing awesome lists of open source software.

https://github.com/codingstark-dev/m3u8-to-mp4

m3u8 to mp4 (deno)
https://github.com/codingstark-dev/m3u8-to-mp4

deno m3u8 m3u8-downloader mp4

Last synced: 11 months ago
JSON representation

m3u8 to mp4 (deno)

Awesome Lists containing this project

README

          

/**
* This script creates a server using the Oak framework and listens on port 3000.
* When a GET request is made to the "/convert" endpoint with a "url" query parameter,
* the script downloads the video from the URL, converts it to an MP4 file using FFmpeg,
* and sends the MP4 file as a response with the "Content-Disposition" header set to
* "attachment; filename="video.mp4"".
*
* @requires import { Application, Router } from "https://deno.land/x/oak/mod.ts"
* @requires import { exec } from "https://deno.land/x/exec/mod.ts"
*/