PyCriCodecsEx 0.0.1__cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- CriCodecsEx.cpython-310-x86_64-linux-gnu.so +0 -0
- PyCriCodecsEx/__init__.py +1 -0
- PyCriCodecsEx/acb.py +100 -0
- PyCriCodecsEx/adx.py +16 -0
- PyCriCodecsEx/awb.py +151 -0
- PyCriCodecsEx/chunk.py +75 -0
- PyCriCodecsEx/cpk.py +732 -0
- PyCriCodecsEx/hca.py +302 -0
- PyCriCodecsEx/usm.py +1266 -0
- PyCriCodecsEx/utf.py +704 -0
- pycricodecsex-0.0.1.dist-info/METADATA +81 -0
- pycricodecsex-0.0.1.dist-info/RECORD +15 -0
- pycricodecsex-0.0.1.dist-info/WHEEL +6 -0
- pycricodecsex-0.0.1.dist-info/licenses/LICENSE +21 -0
- pycricodecsex-0.0.1.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: PyCriCodecsEx
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Criware formats library for Python
|
|
5
|
+
Home-page: https://github.com/mos9527/PyCriCodecsEx
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Provides-Extra: usm
|
|
13
|
+
Requires-Dist: ffmpeg-python; extra == "usm"
|
|
14
|
+
Dynamic: classifier
|
|
15
|
+
Dynamic: description
|
|
16
|
+
Dynamic: description-content-type
|
|
17
|
+
Dynamic: home-page
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
Dynamic: provides-extra
|
|
20
|
+
Dynamic: requires-python
|
|
21
|
+
Dynamic: summary
|
|
22
|
+
|
|
23
|
+
# PyCriCodecsEx
|
|
24
|
+
A continuation of @Youjose's work on Criware formats. Feautres are still in flux and subject to change. When in doubt, Refer to the [original repo](https://github.com/Youjose/PyCriCodecs) for more information.
|
|
25
|
+
|
|
26
|
+
# Installation
|
|
27
|
+
```bash
|
|
28
|
+
pip install PyCriCodecsEx
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
For USM features, you need `ffmpeg` installed and available in your PATH. See also https://github.com/kkroening/ffmpeg-python?tab=readme-ov-file#installing-ffmpeg
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
If not otherwise mentioned, all features marked with [x] are considered working, and has been verified with official tools.
|
|
35
|
+
|
|
36
|
+
### ACB Cue sheets (also AWB)
|
|
37
|
+
- [x] Editing & Saving (Scripting APIs. Helper functions TODO. see examples in [Tests](https://github.com/mos9527/PyCriCodecsEx/tree/main/Tests))
|
|
38
|
+
### USM Sofdec2 (Encode & Decode)
|
|
39
|
+
#### Audio Stream
|
|
40
|
+
For audio to be muxed in, you need a PCM WAV sample with NO metadata, which can be produced with e.g.:
|
|
41
|
+
```bash
|
|
42
|
+
ffmpeg -i input.mp3 -vn -c:a pcm_s16le -map_metadata -1 output.wav
|
|
43
|
+
```
|
|
44
|
+
Decoding and Encoded format can be the following:
|
|
45
|
+
- [x] HCA
|
|
46
|
+
- [x] ADX
|
|
47
|
+
#### Video Stream
|
|
48
|
+
**NOTE**: You definitely want to tweak these encode settings a bit.
|
|
49
|
+
- [x] Sofdec Prime (MPEG1, from `.m1v` container)
|
|
50
|
+
- Prepare source file with: `ffmpeg -i <input_file> -c:v mpeg1video -an <output_file>.m1v`
|
|
51
|
+
- [x] H264 (from `.h264` raw container)
|
|
52
|
+
- Prepare source file with: `ffmpeg -i <input_file> -c:v libx264 -an <output_file>.h264`
|
|
53
|
+
- [x] VP9 (from `.ivf` container)
|
|
54
|
+
- Prepare source file with: `ffmpeg -i <input_file> -c:v libvpx -an <output_file>.ivf`
|
|
55
|
+
### HCA Audio Codec
|
|
56
|
+
- [x] Decoding (up to version 3.0)
|
|
57
|
+
- [x] Encoding (up to version 3.0)
|
|
58
|
+
### ADX Audio Codec
|
|
59
|
+
- [x] Decoding
|
|
60
|
+
- [x] Encoding
|
|
61
|
+
### CPK
|
|
62
|
+
- [x] Unpacking
|
|
63
|
+
- [x] Packing
|
|
64
|
+
|
|
65
|
+
## Roadmap
|
|
66
|
+
- [ ] ACB Extraction (Massive TODO. see also https://github.com/mos9527/PyCriCodecsEx/blob/main/Research/ACBSchema.py)
|
|
67
|
+
- [ ] Interface for encode tasks (CLI then maybe GUI?)
|
|
68
|
+
- [ ] Documentation
|
|
69
|
+
- [ ] C/C++ port + FFI
|
|
70
|
+
## Currently Known Bugs
|
|
71
|
+
- USM seeking does not work. Though most games don't use it anyways.
|
|
72
|
+
- Not important, and might not fix: ADX encoding and decoding at higher bitdepths (11-15) adds popping noise.
|
|
73
|
+
- Some CPK's that has the same filename for every file in the entry will overwrite each other.
|
|
74
|
+
- Probably many more I am unaware of, report if you find any.
|
|
75
|
+
|
|
76
|
+
# Credits
|
|
77
|
+
- https://github.com/Youjose/PyCriCodecs
|
|
78
|
+
- https://github.com/Mikewando/PyCriCodecs ([PR#1 on USM](https://github.com/mos9527/PyCriCodecsEx/pull/1))
|
|
79
|
+
- https://github.com/donmai-me/WannaCRI
|
|
80
|
+
- https://github.com/vgmstream/vgmstream
|
|
81
|
+
- https://github.com/K0lb3/UnityPy (For CI script)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
CriCodecsEx.cpython-310-x86_64-linux-gnu.so,sha256=tcXltf6wyi6553A-mJqgJwJgxNjroKVpOuEe4Mzwdzw,371912
|
|
2
|
+
PyCriCodecsEx/cpk.py,sha256=bSbEZFUI7SfJlVgPWLtzrUpHBIbEOzoGc_D0DyqjdBI,36961
|
|
3
|
+
PyCriCodecsEx/hca.py,sha256=4OE0YQDox5PwKuzu8ekWmj8LqKsWbSQJaTFAaqSlxg4,13890
|
|
4
|
+
PyCriCodecsEx/utf.py,sha256=QDbU0odoDvlLWVKgWQm_P3IM-MmH56ft__1PUVhyj6I,27552
|
|
5
|
+
PyCriCodecsEx/adx.py,sha256=dKv1HcBoe4Wkfot4Y2bfViBV2wJe1rrTzM325VA6RKk,762
|
|
6
|
+
PyCriCodecsEx/awb.py,sha256=nl9manXuPU4pF_Rr2z36ERVJ2PFyXiMnIzkSGxhtdzE,5507
|
|
7
|
+
PyCriCodecsEx/chunk.py,sha256=O_ibqWMnIGGiItMykwgIOoAddljRktzCquz8bEBfu80,2430
|
|
8
|
+
PyCriCodecsEx/acb.py,sha256=LYRp3buMC-JCyDdzCD90HcirVEjZk9V8ZiYIN0p6RlQ,2606
|
|
9
|
+
PyCriCodecsEx/usm.py,sha256=acEFVev9G5DYuWz9Um0U7gm7zi7E3VUJd9B4xoElTx4,44950
|
|
10
|
+
PyCriCodecsEx/__init__.py,sha256=sXLh7g3KC4QCFxcZGBTpG2scR7hmmBsMjq6LqRptkRg,22
|
|
11
|
+
pycricodecsex-0.0.1.dist-info/RECORD,,
|
|
12
|
+
pycricodecsex-0.0.1.dist-info/METADATA,sha256=SDTfklRPINDNe2zC6yf3L2rHDctNGNdMtcF6qo8Ddqo,3243
|
|
13
|
+
pycricodecsex-0.0.1.dist-info/top_level.txt,sha256=mSrrEse9hT0s6nl-sWAQWAhNRuZ6jo98pbFoN3L2MXk,26
|
|
14
|
+
pycricodecsex-0.0.1.dist-info/WHEEL,sha256=DTnKjM5OInJxWADod3iQyWxWcdG-eRwxzGww236swpY,151
|
|
15
|
+
pycricodecsex-0.0.1.dist-info/licenses/LICENSE,sha256=GyZb4dzF2tM3LU5I_tJXpHtUDz8297zeUuCJ5qz8io0,1063
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 mos9527
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|