donmai-me / wannacri Goto Github PK
View Code? Open in Web Editor NEWCriware media formats library
License: MIT License
Criware media formats library
License: MIT License
I'm working on a reader for the USM files used in Deus Ex Human Revolution, but I kept giving me an error with the format version of the @SFV
chunks
I commented out https://github.com/donmai-me/WannaCRI/blob/master/wannacri/usm/usm.py#L187 and https://github.com/donmai-me/WannaCRI/blob/master/wannacri/usm/usm.py#L251 and I got the demuxed video and audio just fine, so I'm wondering if it's important to check for the fmtver key at all.
BTW, I also had to add
SUBTITLE = bytearray("@SBT", "UTF-8")
CUE = bytearray("@CUE", "UTF-8")
to the ChunkType enum
Some PS3 games use the usm file format to store cinematics. I was hoping that WannaCRI would be able to mux the extracted files from the usm but found that the the video codec used is MPEG1.
Would it be possible to implement createusm to take raw mpeg1video and an adx file to make an usm file?
Using the official SDK found here, https://archive.org/details/new-criware-sdk you can't open the usms generated with WannaCRI in the USM viewer included in the SDK, might be an interesting thing to investigate.
You can also create official USMs with this tool, which could be useful for reverse engineering purposes.
Thanks for your amazing works. this tool did work for me on old Criware files, but not recently files
Here is the EMB_AST link(not work with wannacri):
EMB_AST
I picked some difference from two files, which worked fine with left, but not right
Here is the error message
for i, usmfile in enumerate(usmfiles):
filename = os.path.basename(usmfile)
print(f"Processing {i+1} of {len(usmfiles)}... ", end="", flush=True)
try:
usm = Usm.open(usmfile, encoding=args.encoding, key=args.key)
usm.demux(
path=args.output,
save_video=True,
save_audio=True,
save_pages=args.pages,
folder_name=filename,
)
except ValueError:
print("ERROR")
print(f"Please run probe on {usmfile}")
else:
print("DONE")
I'm not sure if the KEYUSEDIFENCRYPTED is needed?
wannacri extractusm /path/to/usm/file/or/folder --key 0xKEYUSEDIFENCRYPTED
Or, if this file has new encryption, your help will be greatly appreciated!!!
I just discovered that there's a container made by google called vp9. I searched it and Webm contains it which is based from matroska. I tried making webm video files from ffmpeg to create usm files but it doesn't work... What kind of format does it need to create a usm?
(Sorry for dumb question i am new to github.)
Also If it's okay to ask, how's the progress for h.264 videos?
Great work on this program btw 😊
There is too much pog in this repo. Starred
I'm new to installing Python stuff from WHL, but I'm following the steps I can find and am getting an error...
Processing c:\users\kojom\downloads\wannacri\wannacri-0.3.0-py3-none-any.whl
Collecting ffmpeg-python~=0.2.0 (from WannaCRI==0.3.0)
Using cached ffmpeg_python-0.2.0-py3-none-any.whl (25 kB)
Collecting future (from ffmpeg-python~=0.2.0->WannaCRI==0.3.0)
Using cached future-0.18.3-py3-none-any.whl
Installing collected packages: future, ffmpeg-python, WannaCRI
Attempting uninstall: future
Found existing installation: future 0.18.3
Uninstalling future-0.18.3:
Successfully uninstalled future-0.18.3
WARNING: Failed to write executable - trying to use .deleteme logic
Rolling back uninstall of future
Moving to c:\python312\lib\site-packages\future-0.18.3.dist-info\
from C:\Python312\Lib\site-packages\~uture-0.18.3.dist-info
Moving to c:\python312\lib\site-packages\future\
from C:\Python312\Lib\site-packages\~uture
Moving to c:\python312\lib\site-packages\libfuturize\
from C:\Python312\Lib\site-packages\~ibfuturize
Moving to c:\python312\lib\site-packages\libpasteurize\
from C:\Python312\Lib\site-packages\~ibpasteurize
Moving to c:\python312\lib\site-packages\past\
from C:\Python312\Lib\site-packages\~ast
ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'C:\\Python312\\Scripts\\futurize.exe' -> 'C:\\Python312\\Scripts\\futurize.exe.deleteme'
I'm trying to create a USM without encryption .,But there's a problem.
I have already copied files ffmpeg.exe and ffprobe.exe to wannacri.exe folder.
command:wannacri createusm 666.mp4
666.mp4 is a video,My computer can play normally
I've got some errors when a was trying extract usm file and even use command 'probeusm'. File has been created via Scaleform VideoEncoder (CRI Medianoche [NR] Ver.1.70.00 - 2013-03-08) with sample video and subtitles. And video correctly works in game. (Although I had to change the value of the language id in the subtitle chunk so that they are displayed)
I didn't find any mention of the @SBT
tag (signature) in the log file.
test_1_usm.usm_NSi.log
test_1_usm.zip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.