https://github.com/calebweinreb/mkv-extract
simple tool to extract and compress data from mkv files that are written by k4arecorder
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.4%) to scientific vocabulary
Repository
simple tool to extract and compress data from mkv files that are written by k4arecorder
Basic Info
- Host: GitHub
- Owner: calebweinreb
- Language: Python
- Default Branch: main
- Size: 28.3 KB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
mkv-extract
Simple tool to extract and compress data from mkv files that are written by k4arecorder.
Installation
Clone this repository, enter the directory mkv-extract and run pip install -e .
Behavior
Extracts each video stream from the mkv file and saves to a compressed video file. Timestamps and metadata are also saved.
* IR and DEPTH streams are encoded losslessly using the FFV1 codec.
* COLOR stream is encoded using the H264 codec (which is lossy) at a high-quality setting.
* Timestamps (in seconds) are saved to a text file
* Metadata, including camera calibration, are saved to a json file.
* All newly created files are named by adding suffixes to the input file. For example, if the input file is my_recoridng.mkv, then the output files will be my_recording.depth.avi, my_recording.metadata.json, my_recording.timestamps.txt etc.
* There is an option to delete .mkv files after extraction. Prior to deletion, the losslessly encoded .avi files will be scanned, and deletion will only occur if they are identical to the original .mkv data.
Usage
- Extracting a single file:
mkv-extract path/to/my_recoridng.mkv - Extracting multiple files:
mkv-extract "path/to/*.mkv" - Extracting multiple files using slurm:
mkv-extract "path/to/*.mkv" --slurm - Extraction followed by deletion:
mkv-extract [ARGS] --delete - Running extraction from python:
from mkv_extract.mkv_utils import * ....
Note: This tool requires ffmpeg. If using HMS O2, you must run module load ffmpeg before running any of the example commands above.
Owner
- Name: Caleb Weinreb
- Login: calebweinreb
- Kind: user
- Repositories: 3
- Profile: https://github.com/calebweinreb
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 2
- Total pull requests: 1
- Average time to close issues: 13 days
- Average time to close pull requests: 14 days
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 1.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- wingillis (2)
Pull Request Authors
- jonahpearl (1)