cctv-h5e-download

Download and decrypt encrypted CCTV H5e HLS streams into MP4 files.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/missdeer/skills --skill cctv-h5e-download
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cctv-h5e-download
Source: https://github.com/missdeer/skills/tree/main/cctv-h5e-download
Command: npx skills add https://github.com/missdeer/skills --skill cctv-h5e-download

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node.js, ffmpeg, ffprobe, chrome, and includes scripts (resource) and references (resource) and agents (resource) components.

What problem does it solve?

This skill solves the issue of garbled or unplayable video when attempting to download CCTV/CNTV content that utilizes encrypted H5e HLS streams, which standard tools like ffmpeg cannot decode directly.

Core Features & Use Cases

  • Encrypted Stream Decryption: Uses the official CCTV browser-based worker pipeline to decrypt and transmux H5e TS fragments into standard MP4 files.
  • Automated Workflow: Handles the entire lifecycle from playlist capture and segment downloading to patching the DRM script and final remuxing.
  • Use Case: Use this when you need to archive high-quality VOD content from tv.cctv.cn or cntv.cn that appears corrupted or fails to play when downloaded via conventional methods.

Quick Start

Use the cctv-h5e-download skill to download and convert the CCTV video at the provided URL into a playable local MP4 file.

Frequently Asked Questions about cctv-h5e-download

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download encrypted CCTV H5e HLS streams that ffmpeg cannot decode?

To download encrypted CCTV H5e HLS streams, you must leverage the official CCTV browser-based worker pipeline to decrypt and transmux H5e TS fragments into standard MP4 files, bypassing standard ffmpeg decoding limitations.

Why does my downloaded CCTV VOD video appear garbled or unplayable?

Downloaded CCTV VOD video appears garbled because the content utilizes encrypted H5e HLS streams. Standard tools cannot decode this DRM directly, requiring a multi-stage capture, patch, and remux process to produce valid MP4 files.

Do I need Node.js and Chrome to decrypt H5e video streams?

Yes, you need Node.js and a local Chrome instance with remote debugging enabled to decrypt H5e video streams. The workflow uses Chrome to execute the official player's transmuxing worker logic for capturing and patching the DRM script.

What is the best way to convert CCTV VOD URLs into playable local MP4 files?

The best way to convert CCTV VOD URLs into playable local MP4 files is an automated workflow handling playlist capture, segment downloading, DRM script patching, and final remuxing using ffmpeg for validation.

How does the H5e decryption process handle TS fragments during video capture?

The H5e decryption process handles TS fragments by using the official CCTV browser-based worker pipeline to transmux encrypted H5e TS fragments into standard MP4 files through a multi-stage capture and patch process.