Skip to main content
blindcast init creates a ready-to-use project directory with everything you need to see encrypted HLS playback: sample video segments, a player HTML page, and a .env.example file.

Usage

blindcast init [directory]
If no directory is specified, it creates a blindcast-demo/ directory in the current folder.

Example

blindcast init my-first-video
Created my-first-video/
├── segments/
│   ├── manifest.m3u8        # HLS manifest (3 segments, 720p)
│   ├── seg-0.ts             # Sample segment (~170 KB)
│   ├── seg-1.ts
│   └── seg-2.ts
├── player.html              # Minimal player page (loads from localhost)
└── .env.example             # Template for BLINDCAST_MASTER_KEY and BLINDCAST_SALT
The sample segments are pre-generated — no FFmpeg or video tooling required.

Next steps

After blindcast init, follow the Quick Start:
cd my-first-video
blindcast keygen > .env       # Generate keys
source .env                    # Load keys into shell
blindcast encrypt ./segments --content-id demo  # Encrypt
blindcast serve                # Start key server (port 4100)
# Open player.html in a browser

Flags

FlagDescription
--forceOverwrite existing directory
--jsonOutput created file paths as JSON to stdout
The sample video is ~500 KB total. It exists purely for evaluating BlindCast — use your own HLS content for production.