Skip to content

lmmtrr/usm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

USM Extractor

A Python script to extract audio and video streams from USM (CRI Middleware) files. It automatically demultiplexes USM files (the file extension does not need to be .usm) and attempts to convert the extracted video streams into .mp4 format using FFmpeg.

Features

  • Extract video and audio streams (.adx, .hca, .aix, .ac3) from USM files.
  • Process a single file or batch-process a directory of files recursively.
  • Automatically converts video streams to .mp4 using FFmpeg.
  • Fix for common mosaic artifacts on the first frame of video streams.

Prerequisites

  • Python 3.x
  • FFmpeg (Must be available in your system's PATH, or the standalone executable can be placed in the same directory as usm.py, for automatic video conversion to .mp4)

Usage

python usm.py [InputPath] [options]

Arguments

  • InputPath: The path to a single USM file (the .usm extension is not strictly required) or a directory containing such files.

Options

Flag Description
--save-m2v Saves the extracted video as .m2v instead of automatically converting to .mp4 with FFmpeg.
--skip-first-frame Skips the first frame of the video to fix mosaic artifacts (requires re-encoding via FFmpeg).

Examples

Process a single file:

python usm.py path/to/video.usm

Process an entire directory (recursive):

python usm.py path/to/folder/

Extract without converting to MP4 (keep as .m2v):

python usm.py path/to/video.usm --save-m2v

Extract and skip the first frame to fix mosaic artifacts:

python usm.py path/to/video.usm --skip-first-frame

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages