Skip to content

Commit bf3174f

Browse files
committed
Prepare 0.2.1
1 parent 16f480c commit bf3174f

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

CHANGELOG.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased]
7+
## [0.2.1] - 2021-09-01
88
### Added
99
- This changelog
1010

11+
### Fixed
12+
- Fixed bug in non-encrypted USM creation by [@emoose](https://github.com/emoose).
13+
1114
## [0.2.0] - 2021-08-11
1215
### Added
1316
- __main__.py.
@@ -24,5 +27,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2427
- Fixed bug in extractusm that causes it to fail when output directory doesn't exist.
2528
- Fixed bug where program fails when directory exists.
2629

27-
[Unreleased]: https://github.com/donmai-me/WannaCRI/compare/0.2.0...HEAD
30+
[0.2.1]: https://github.com/donmai-me/WannaCRI/compare/0.2.0...0.2.1
2831
[0.2.0]: https://github.com/donmai-me/WannaCRI/compare/0.1.0...0.2.0

README.md

+24-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,32 @@ WannaCRI
55
A (WIP) Python library for parsing, extracting, and generating Criware's various audio and video file formats.
66
If you're interested in reading more about USM, you can read my write-up about it [here](https://listed.to/@donmai/24921/criware-s-usm-format-part-1)
77

8-
Currently supports the following formats with more planned:
9-
* USM (encrypted and plaintext)
10-
* VP9
11-
* H.264 (in-progress)
8+
Support
9+
=======
10+
This currently supports the following formats with more planned:
11+
12+
✅: Implemented and tested ❓: Should work but not tested ❌: Not implemented
13+
14+
x/y: Extract support / Create support
15+
16+
## USM
17+
18+
### Video
19+
20+
| Codec | Not-encrypted | Encrypted |
21+
| ----- | ----- | ----- |
22+
| VP9 | ✅ / ✅ | ✅ / ✅ |
23+
| H.264 | ✅ / ❌ | ❓ / ❌ |
24+
| Prime | ❓ / ❌ | ❓ / ❌ |
25+
26+
### Audio
1227

28+
| Codec | Not-encrypted | Encrypted |
29+
| ----- | ----- | ----- |
30+
| CRI HCA | ✅ / ❌ | ✅ / ❌ |
1331

32+
Requirements
33+
============
1434
This library has the following requirements:
1535

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

wannacri/codec.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def from_file(path: str, ffprobe_path: str = "ffprobe") -> Sofdec2Codec:
1414
info = ffmpeg.probe(path, cmd=ffprobe_path)
1515

1616
if len(info.get("streams")) == 0:
17-
raise ValueError("File has no videos streams.")
17+
raise ValueError("File has no video streams.")
1818

1919
codec_name = info.get("streams")[0].get("codec_name")
2020
if codec_name == "vp9":
@@ -26,7 +26,7 @@ def from_file(path: str, ffprobe_path: str = "ffprobe") -> Sofdec2Codec:
2626
# TODO: Check if we need to have extra checks on h264 bitstreams
2727
return Sofdec2Codec.H264
2828
if codec_name == "mpeg2video":
29-
# TODO: Check if we need to have extra checks on h264 bitstreams
29+
# TODO: Check if we need to have extra checks on MPEG2 bitstreams
3030
return Sofdec2Codec.PRIME
3131

3232
raise ValueError(f"Unknown codec {codec_name}")

0 commit comments

Comments
 (0)