https://github.com/themcaffee/video-audio-swap
Swap the audio of a music video with another track using beat detection
https://github.com/themcaffee/video-audio-swap
Last synced: about 2 months ago
JSON representation
Swap the audio of a music video with another track using beat detection
- Host: GitHub
- URL: https://github.com/themcaffee/video-audio-swap
- Owner: themcaffee
- License: gpl-3.0
- Created: 2017-06-01T03:04:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-02T07:44:42.000Z (almost 8 years ago)
- Last Synced: 2025-02-26T09:43:11.584Z (2 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Video Audio Swap
Swap the audio of a music video with another track using beat detection. Download from youtube urls or local files.
```
usage: run.py [-h] [--audio-youtube AUDIO_YOUTUBE]
[--video-youtube VIDEO_YOUTUBE] [--audio-file AUDIO_FILE]
[--video-file VIDEO_FILE] [--clear] [--output OUTPUT]
[--video-start VIDEO_START] [--video-end VIDEO_END]
[--audio-start AUDIO_START] [--audio-end AUDIO_END]
[--samplerate SAMPLERATE] [--win_s WIN_S] [--hop_s HOP_S]
[--video-samplerate VIDEO_SAMPLERATE]
[--video-win_s VIDEO_WIN_S] [--video-hop_s VIDEO_HOP_S]optional arguments:
-h, --help show this help message and exit
--audio-youtube AUDIO_YOUTUBE
The youtube audio url
--video-youtube VIDEO_YOUTUBE
The youtube video url
--audio-file AUDIO_FILE
The location of the audio file
--video-file VIDEO_FILE
The location of the video file
--clear Delete all stored temp files from audio and video
folders
--output OUTPUT The path and name of the output file
--video-start VIDEO_START
Where the music video's audio track starts playing
--video-end VIDEO_END
Where the music video's audio track ends
--audio-start AUDIO_START
Where the audio in the given audio track starts
--audio-end AUDIO_END
Where the audio in the given audio track stops
--samplerate SAMPLERATE
The sample rate of the audio track
--win_s WIN_S
--hop_s HOP_S
--video-samplerate VIDEO_SAMPLERATE
The sample rate of the video track's audio
--video-win_s VIDEO_WIN_S
--video-hop_s VIDEO_HOP_S
```