Frame-based cutting/trimming/splicing of audio with VapourSynth and FFmpeg.
Project description
acsuite
audiocutter(.py) replacement for VapourSynth.
Allows for easy frame-based cutting/trimming/splicing of audio files using VapourSynth clip information.
Functions:
eztrim(clip, trims, audio_file[, outfile, ffmpeg_path=, quiet=])
import vapoursynth as vs
core = vs.core
from acsuite import eztrim
file = r'/BDMV/STREAM/00003.m2ts'
afile = r'/BDMV/STREAM/00003.wav' # pre-extracted with TSMuxer or similar
src = core.lsmas.LWLibavSource(file)
# for the example, we will assume the src clip is 100 frames long (0-99)
trimmed_clip = src[3:22]+src[23:40]+src[48]+src[50:-20]+src[-10:-5]+src[97:]
# `clip` arg should be the uncut/untrimmed source that you are trimming from
eztrim(src, [(3,22),(23,40),(48,49),(50,-20),(-10,-5),(97,None)], afile)
Output:
Uses the file extension of the input audio_file to output a cut/trimmed audio file with the same extension. If no outfile is given, defaults to audio_file_cut.ext
.
Getting Started
Dependencies
Installing
Arch Linux
Install the AUR package vapoursynth-tools-acsuite-git
with your favorite AUR helper:
$ yay -S vapoursynth-tools-acsuite-git
Gentoo Linux
Install via the VapourSynth portage tree.
Windows / Other
Use the Python Package Index (PyPI / pip):
python3 -m pip install --user --upgrade acsuite-orangechannel
or simply
pip install acsuite-orangechannel
if you are able to use a pip
executable directly.
Help!
Check out the documentation or use Python's builtin help()
:
help('acsuite')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for acsuite-orangechannel-5.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a26e419476ae611012cd97522438cc53f8b0520841202e2121cd8933aefa302 |
|
MD5 | 7d941d104433d90f40c9d4554b5e51df |
|
BLAKE2b-256 | b9821c6118518f47223c536d3af703ff900cebe73fdb3f78308cc134fe3bd9a8 |
Hashes for acsuite_orangechannel-5.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95abd0d4175e644994b30d3b58c4bab9bafac6a0da60da24606e57909b57b6e7 |
|
MD5 | 672f60133529d180d660dabc8c44d6a8 |
|
BLAKE2b-256 | 2a2682e8460663ef456ddc9c4ff91a35abdf17be1b29c326a1058a7718bef73f |