BUnipendix / PyCriUsm

a python script to decrypt and demux Honkai: Star Rail cutscene video
100 stars 11 forks source link

Help me using this program #5

Open swarm99x opened 9 months ago

swarm99x commented 9 months ago

Hello author! Please help me on your program. I don't understand this example:

def extract_video(video_path, output_dir):
    a = UsmDemuxer(video_path)
    video_name, audio_names = a.export(output_dir)
    return video_name, audio_names

So I tried to run python demux.py in cri_usm_demuxer folder, and I got this output:

Traceback (most recent call last): File "C:\Users***\Downloads\Compressed\PyCriUsm-main\cri_usm_demuxer\demux.py", line 10, in from .decrypt import VideoDecrypter ImportError: attempted relative import with no known parent package

BUnipendix commented 8 months ago

do not run code in module folder.