New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

media-stream-util

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

media-stream-util

A CLI utility for downloading media content from playlist.json URLs or webpages. For personal, educational, and archival use only.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Media Stream Utility

A CLI utility for downloading media content from playlist.json URLs or webpages containing embedded media players.

Platform Support

Currently supports: Vimeo content only

Note: Support for additional video platforms (YouTube, Dailymotion, etc.) will be added in future releases.

This tool is provided for PERSONAL, EDUCATIONAL, and ARCHIVAL purposes only.

YOUR RESPONSIBILITIES:

  • ✅ Comply with all applicable copyright laws
  • ✅ Respect content creators' intellectual property rights
  • ✅ Follow the platform's Terms of Service
  • ✅ Ensure you have proper authorization to download content
  • ✅ Use only for personal, educational, or archival purposes

IMPORTANT LIMITATIONS:

  • 🚫 This software does NOT bypass DRM or access encrypted content
  • 🚫 Does NOT work with protected or premium content
  • 🚫 Only works with publicly accessible, unencrypted streams
  • ⚠️ Users must provide their own cookies for authenticated content

Use at your own risk and responsibility.

Installation & Usage

npx media-stream-util [options]

Options

FlagDescriptionExample
-p, --jsonPlaylistDirect link to playlist.json file-p "https://example.com/playlist.json"
-w, --webPageLink to webpage with embedded media-w "https://example.com/page"
-cp, --cookiePathPath to cookies.json file-cp "./cookies.json"
-a, --audioOnlyDownload audio only-a
-v, --videoOnlyDownload video only (requires resolution)-v -r 720
-c, --combineDownload and merge audio + video-c
-r, --resolutionSet video resolution-r 1080 (options: 240, 360, 540, 720, 1080)
-m, --maxResolutionDownload maximum available resolution-m
-o, --outputOutput filename-o "my-video"
--pathOutput directory path--path "./downloads"
--helpShow help--help
--versionShow version--version
--disclaimerPrints disclaimer--disclaimer

Examples

# Download audio only from direct playlist URL
npx media-stream-util -p "https://example.com/playlist.json" -a -o "audio-file"

# Download 720p video from webpage with cookies
npx media-stream-util -w "https://example.com/page" -cp "./cookies.json" -v -r 720 -o "video-file"

# Download and combine audio+video at max resolution
npx media-stream-util -p "https://example.com/playlist.json" -c -m -o "combined-file"

If accessing authenticated content, provide cookies in JSON format:

[
  {
    "name": "session_id",
    "value": "your_session_value",
    "domain": ".example.com",
    "path": "/",
    "secure": true,
    "httpOnly": true
  }
]

Requirements

  • Node.js 14+
  • FFmpeg (will prompt to install if missing)

Technical Notes

  • Only works with unencrypted HLS/DASH streams
  • Requires direct access to playlist.json or embedded player URLs
  • Does not perform web scraping or automated platform interaction
  • All URLs and authentication must be provided by the user

License

MIT License - See LICENSE file for details.

This software is provided "as is" without warranty of any kind.

Support

This tool is provided as-is for educational purposes. Users are responsible for ensuring their usage complies with applicable laws and platform terms of service.

Keywords

media downloader, video downloader, playlist, educational

FAQs

Package last updated on 20 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts