Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #1  
Old 16-07-2021, 08:39
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 357
Thanks: 124
Thanked 60 Times in 39 Posts
L33THAK0R is on a distinguished road
Question about extraction of subtitles and cue points for "USM" containers.

UPDATE: It seems, at least for some "USM" containers, patching in a modified video file may be possible, however further experimentation and research into compression used (if any) by Criware in their "USM" containers (currently testing on the 2012 title "The Amazing Spider-man").

UPDATE 2: Patching in videos didn't work, however it seems it may be possible to decode the cue points from the .usm container as they are stored in plain text, however some values are difficult to translate, I'll update in a few days most likely.

Hi all,

Over the past few months I've been researching the "USM" file format, with the end-goal of successfully encoding the videos within such a file, as most from older titles ("Batman: Arkham City", "Batman: Arkham Knight" & "Mad Max") can be encoded with very little perceivable loss in quality to the naked eye, with the result of significantly reduced file size. However, "USM" containers with cue points will soft-lock the title upon completion of the video file, when attempting to execute an encoded "USM", requiring either the end-user restart the title and skip the video file, or, (and is my current solution), extend the video file to a given length, with a disclaimer informing the end-user they must skip the video.

This issue has been documented in passing [1][2], however a solution hasn't yet been found (to my knowledge). If anyone has any insight into this file format, and extraction of cue points & subtitles, or might be able to point me in the right direction to sourcing the CRIWARE SDK and/or the AutoDesk Media & Entertainment Collection, I'd greatly appreciate it.

Last edited by L33THAK0R; 18-07-2021 at 10:44.
Reply With Quote
Sponsored Links
  #2  
Old 19-07-2021, 00:18
Sergey3695 Sergey3695 is offline
Registered User
 
Join Date: Mar 2013
Location: Russia
Posts: 83
Thanks: 43
Thanked 74 Times in 40 Posts
Sergey3695 is on a distinguished road
https://help.autodesk.com/view/SCLFR...itle_info_html
look this.
Reply With Quote
  #3  
Old 19-07-2021, 01:49
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 357
Thanks: 124
Thanked 60 Times in 39 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by Sergey3695 View Post
Thank you for linking this, it slipped my mind that this may be a relevant resource. I've already been through that particular set of documentation, to better understand the function of cue points, however it wasn't able to help me identify where to look within the compiled ".usm" for the relevant cue point information.
Reply With Quote
  #4  
Old 21-07-2021, 22:23
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 357
Thanks: 124
Thanked 60 Times in 39 Posts
L33THAK0R is on a distinguished road
UPDATE 1: First-off thanks to some testing from users I contacted this project seems to be a success! Secondly, regarding subtitle meta-data extraction, the time-code for subtitle termination doesn't seem to be stored cleanly, whist the subtitle "begin" time-code is stored in a universal manner. Because of this it would require a user to listen through each sound file to determine when the subtitle should terminate, and I personally can't be bothered to do so. I'll probably research this further in the future but for now I've stopped examining this archive/container type, and I'm content with being able to gather the cue-points. Some time in the future I'll make a guide for anyone else looking to do so, and I'll try to possibly automate the process, as it's a rather convoluted process, and is not friendly to user's unfamiliar with hex-code.

-----------------------------------------------------------------------------------------------------------------

After extensive testing and a few sleepless nights I believe I've managed to decode the cue points in their entirety. for those of you with the title "Batman: Arkham City" I have this proof of concept (I would have gotten this far earlier, but I didn't anticipate the formatting of a given cue/trigger being so different to the examples provided in the now deleted 2nd post). It's the first cut-scene of the formerly mentioned title. There are elements I'm still working on, with their being some difficult to find cues referenced at the start of the video but as a grounds to build off of it seems to be successful after testing on my machine.

If someone else could test this and report back whether or not the title freezes up or resumes to game-play after the conclusion of the cut-scene I'd appreciate it greatly.

Should my own testing be successful I'll move onto the 2nd part of my project, decoding the subtitles (stored as plain-text) and their associated timestamps. This theoretically should be easy to do, provided the subtitle meta-data is encoded in the same format as the cut-scene triggers/cues.

Last edited by L33THAK0R; 22-07-2021 at 03:30.
Reply With Quote
  #5  
Old 27-07-2021, 00:17
:( Sad8669 :( Sad8669 is offline
Registered User
 
Join Date: Oct 2020
Location: -
Posts: 203
Thanks: 97
Thanked 187 Times in 101 Posts
:( Sad8669 is on a distinguished road
Yo man, you've been dealing with .usm files.

Can you explain a little about cue points in a simple manner?
Reply With Quote
  #6  
Old 27-07-2021, 00:46
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 357
Thanks: 124
Thanked 60 Times in 39 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by :( Sad8669 View Post
Yo man, you've been dealing with .usm files.

Can you explain a little about cue points in a simple manner?
Cue points are essentially a set of instructions executed at a given point (or duration) within the runtime of a given video file. These can, for example, include instructions when to end rendering and when to activate controller rumble features and at what intensity to do so.

Thankfully not all titles that utilises CRIWARE's container format include cue points, as some engines allow for such instructions to be executed in-engine. It can also be a developers choice to include/exclude the use of cue points, for reasons I'm not yet clear on. Deciphering these cue-points can be trivial (for titles such as "Batman: Arkham City"), but can also be trickier for other titles, as there is no universal set of instructions, and even formatting of the cue points can change from title to title. So far I've had success with each title I've attempted this with, however more testing is required to determine whether these methods can be applied universally (depending on how the ".usm" is loaded by a given title (not engine-specific) into memory, and a guide can be published, as some encoded videos will not terminate correctly, even if the methodology is identical to a working, encoded ".usm".

I'm also reluctant to release a guide just to spite some users over at the Xentax forums who were really unhelpful buggers, but were still expecting me to educate them should I be successful.

Last edited by L33THAK0R; 27-07-2021 at 00:56.
Reply With Quote
  #7  
Old 27-07-2021, 00:48
:( Sad8669 :( Sad8669 is offline
Registered User
 
Join Date: Oct 2020
Location: -
Posts: 203
Thanks: 97
Thanked 187 Times in 101 Posts
:( Sad8669 is on a distinguished road
Keep digging man these .usm files are kinda pain xD.
Anyway do you have a fast contact?
Reply With Quote
  #8  
Old 27-07-2021, 02:56
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,810
Thanks: 18
Thanked 331 Times in 216 Posts
Joe Forster/STA is on a distinguished road
Quote:
Originally Posted by L33THAK0R View Post
I'm also reluctant to release a guide just to spite some users over at the Xentax forums who were really unhelpful buggers, but were still expecting me to educate them should I be successful.
Concentrate on having fun with your experiments. Then releasing your results (which you should do) or keeping them for yourself won't matter anymore. Just like it makes no sense to not release the source of a piece of software that is freely distributable anyway.
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
  #9  
Old 27-07-2021, 04:46
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 357
Thanks: 124
Thanked 60 Times in 39 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by :( Sad8669 View Post
Anyway do you have a fast contact?
I'm not sure what you mean by this, was pulling an all-nighter packing a handful of emulated releases, so I'm a bit tired, brains fried rip
Reply With Quote
  #10  
Old 27-07-2021, 04:51
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 357
Thanks: 124
Thanked 60 Times in 39 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by Joe Forster/STA View Post
Concentrate on having fun with your experiments. Then releasing your results (which you should do) or keeping them for yourself won't matter anymore. Just like it makes no sense to not release the source of a piece of software that is freely distributable anyway.
Honestly I'll probably release my findings in depth eventually, but just haven't the energy to write things up formally, it was a bit draining thinking I found a universal solution when I had actually just gotten lucky with an aspect of the process. On top of this I only really want to release a guide when I completely understand the container type, with subtitle meta-data (time-stamps), and attempting to identify whether or not a given track can have its track-number identified in a universal way (some tracks are labeled outside of the standard 0 - 11 numbering system). For now I've managed to create a proof of concept and apply my technique only to one title fully.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -7. The time now is 12:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com