A Python package (+CLI) for voice over subtitles, with the ability to embed in video, audio ducking, and dynamic voice changer for a single track.
Project description
Package for voice over subtitles:
- with the ability to embed in video,
- audio ducking,
- dynamic voice changer for a single track. Add "!: voice name" at the beginning of the subtitle line. (Applies to all subsequent ones)
pip install PyFastDub
python -m FastDub --help
CLI
Input:
-i INPUT, --input INPUT
Input file or directory.
-vf VIDEO_FORMAT, --video-format VIDEO_FORMAT
Video format (default .mp4).
-sf SUBTITLES_FORMAT, --subtitles-format SUBTITLES_FORMAT
Subtitles format (default .srt).
Audio Ducking:
--ducking, --no-ducking
Enable audio ducking (default: True)
--min-silence-len MIN_SILENCE_LEN
Minimum silence length in ms (default 100)
--silence-thresh SILENCE_THRESH
Silence threshold in dB
--gain-during-overlay GAIN_DURING_OVERLAY
Gain during overlay in dB
Voicer:
-v {...},
--voice {...}
Voice
-a ALIGN, --align ALIGN
Audio fit align
1 = right (default)
2 = center
Output:
-ll LOGLEVEL, --loglevel LOGLEVEL
FFMpegWrapper loglevel
-y, --yes Don't ask for confirmation
-rf CLEANUP_LEVEL, --cleanup-level CLEANUP_LEVEL
Cleanup level (0 = No removing any files
> 0 remove audio from video (default)
> 1 = remove dubbed audio if video exists)
> 2 = reomve dubbed cache files
Example
python -m FastDub -i "DirToDub" -v "Yuriy" --ducking --min-silence-len 200
name = "Any name"
DirToDub:
- name.srt
- name.mp4
- name2.srt
- name2.mp4
Then: name and name2 will be announced, and the results will be saved to a folder with the appropriate name.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file PyFastDub-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: PyFastDub-2.0.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58423d709e518cf679d4d732a838d30482fe0cf3a4eec8844bce3073e2b0f523 |
|
MD5 | 2288bb63b97671c3cbbae59e3d0e2e8a |
|
BLAKE2b-256 | baceedd94e06178f8b9722534e9cf7a9c916fb330e683599591f62072f0ef8ea |