a python library to decrypt and demux HSR cutscene video. In theory, it can demux any of the encrypted Usm file. But I only adapted to HSR..
The decryption module was written in cython so that we can achieve a speed 5 to 7 times faster than WannaCRI and nearly as fast as GI-Cutscene.
Refer to WannaCRI and GI-Cutscene
Enter the repository and run this command
python setup.py build_ext --inplace
Move decrypt.xxx.[so|pyd] fils to cri_usm_demuxer folder
def extract_video(video_path, output_dir):
a = UsmDemuxer(video_path)
video_name, audio_names = a.export(output_dir)
return video_name, audio_names
- USM decryption support
- HCA decryption support(Used by GI)
- More flexable and powerful option to control usm chunks