A tool that takes a media file and a list file with offsets and processes the list file to split the media file up into pieces using ffmpeg.
Usage
Example usage:
$ splitmedia media.file list.txt output_path
Output
Splitting the Quake soundtrack:
$ splitmedia "Quake Soundtrack.m4a" list_file.quake quake_output OFF 000:00:00.000 DUR 000308.000 01_QuakeTheme.m4a OFF 000:05:08.000 DUR 000146.000 02_Aftermath.m4a OFF 000:07:34.000 DUR 000500.000 03_TheHallofSouls.m4a OFF 000:15:54.000 DUR 000366.000 04_ItisRaed.m4a OFF 000:22:00.000 DUR 000444.000 05_ParallelDimensions.m4a OFF 000:29:24.000 DUR 000519.000 06_Life.m4a OFF 000:38:03.000 DUR 000336.000 07_Damation.m4a OFF 000:43:39.000 DUR 000388.000 08_Focus.m4a OFF 000:50:07.000 DUR 000213.000 09_Falling.m4a OFF 000:53:40.000 DUR 000315.000 10_TheReaction.m4a ...
Dependencies
Python 2.7
List File Example
Also provided as list_file.formats in the project:
0:00:00.123 filepart1 0:03:10 filepart2 0:09:20 filepart3 1300 filepart4 1345.456 filepart5 1347 filepart6
List File Notes
Offsets can be integers or full time specifications
Seconds can be decimals
Can have hash-prefixed comments
Can have empty lines (for organization)
The filenames will be sanitized (innappropriate characters removed) automatically
Command Line
Command line help:
usage: splitmedia [-h] media_filepath list_filepath output_path Split the media file into multiple parts by times positional arguments: media_filepath File-path of the media file list_filepath File-path of the list output_path Output path optional arguments: -h, --help show this help message and exit
Metadata
Release files for splitmedia 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| splitmedia-0.2.1.tar.gz | 3.5 kB | Without provenance | Details for splitmedia-0.2.1.tar.gz |
Release files / splitmedia-0.2.1.tar.gz
| Download URL | splitmedia-0.2.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f0b93896285a081a7902f71b3ec2d8ad913c060e4df11ce63375ff43c9295d2
|
|
BLAKE2b-256 checksum How to use checksums |
946e167fcfb4c9f3adf61ea0f28f135d30d01ca7fc5058dcfe7ad58654dc6245
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for splitmedia 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.