Skip to main content

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

  1. Parse templates and playlists.
  2. Download audio-playlists. For each playlist:
    • Download videos to video-cache.
    • Extract audio to audio folder and select extension (container) based on ffprobe (from ffmpeg) output:
Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 94 kb/s
  1. For each playlist from video-playlists download videos to video.
  2. Correlate audio and video file names (for example, 1x1.aac will be added to 1x1.mp4).
  3. Join audios and videos and save to video-result folder.
  4. If --preserve-video is not passed, move resulting videos to video folder.

Project details


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

dual_audio-1.0-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page