Make videos with double audio
Project description
Dual-audio video maker
You can pass 2 playlists (or 2 lists with playlists), first for extracting audio (audio-playlists
), second for resulting video (video-playlists
), and get video with both audio tracks. For first playlists better use low-quality video.
Dependencies
ffmpeg
(work with media), wget
(download) and grep
utilities.
CLI arguments
Argument | Action |
---|---|
-d, --out-dir |
Directory where place audio and video folders |
-a, --audio-playlists |
Path(s) to playlist(s) with videos from which extract audio |
-v, --video-playlists |
Path(s) to playlist(s) with videos to add a second audio |
--args |
Pass shell arguments via file |
--preserve-video |
Preserving original videos from video-playlists |
-h, --help |
Show help message and exit |
How it works
- Parse templates and playlists.
- Download
audio-playlists
. For each playlist:- Download videos to
video-cache
. - Extract audio to
audio
folder and select extension (container) based onffprobe
(fromffmpeg
) output:
- Download videos to
Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 94 kb/s
- For each playlist from
video-playlists
download videos tovideo
. - Correlate audio and video file names (for example,
1x1.aac
will be added to1x1.mp4
). - Join audios and videos and save to
video-result
folder. - If
--preserve-video
is not passed, move resulting videos tovideo
folder.
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.