Skip to main content

Criware media formats library

Project description

Version

WannaCRI

A (WIP) Python library for parsing, extracting, and generating Criware's various audio and video file formats. If you're interested in reading more about USM, you can read my write-up about it here

Install

Install it conventionally using

pip install WannaCRI

I recommend using uv to download and install WannaCRI. After installing uv, you can just run

uvx wannacri extractusm /path/to/usm/file/or/folder

Which will download and run the latest WannaCRI for you.

Support

This currently supports the following formats with more planned:

✅: Implemented and tested ❓: Should work but not tested ❌: Not implemented

x/y: Extract support / Create support

USM

Video

Codec Not-encrypted Encrypted
VP9 ✅ / ✅ ✅ / ✅
H.264 ✅ / ✅ ✅ / ❓
Prime ❓ / ❌ ❓ / ❌

Audio

Codec Not-encrypted Encrypted
CRI HCA ✅ / ❌ ✅ / ❌

Requirements

This library has the following requirements:

A working FFmpeg and FFprobe installation. On Windows, you can download official ffmpeg and ffprobe binaries and place them on your path.

This project heavily uses the ffmpeg-python wrapper. And uses python-json-logger for logging.

Usage

If installed, there should be a command-line tool available.

For extracting USMs:

wannacri extractusm /path/to/usm/file/or/folder --key 0xKEYUSEDIFENCRYPTED

For creating USMs:

wannacri createusm /path/to/vp9/file --key 0xKEYIFYOUWANTTOENCRYPT

Licence

This is an open-sourced application licensed under the MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wannacri-0.3.1-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file wannacri-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: wannacri-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for wannacri-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d20b6327c17ea987d2f90ae961091442327238a254697dddceca5318bd68b8ee
MD5 f389534da6656389f2e17fa078d8073b
BLAKE2b-256 e105a67d54ee396907fe41c1b46097c70455715f318bb0df121175e26dd76b06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page