Skip to content

A python program that synthesizes audio recorded separately from musical instrument performance videos

Notifications You must be signed in to change notification settings

amaguri0408/auto_merge_movie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

auto_merge_movie

楽器の演奏動画と別で録音した音声を合成するpythonのプログラム
A python program that synthesizes audio recorded separately from musical instrument performance videos

Qiitaに解説記事を載せてます https://qiita.com/amaguri0408/private/6c36a84ba2625c20580c

Requirement

以下のライブラリが必要です

  • moviepy 1.0.1
  • librosa 0.8.0

Usage

python main.py [動画ファイル] [音声ファイル]

demo

python main.py sample_movie.mp4 sample_sound.wav

resultディレクトリが作成され結果が格納されます。 result/main.mp4が出力です。

Note

  • 動画ファイル、音声ファイルともに30秒以上
  • 動画ファイルと音声ファイルのずれは前後5秒以内に収める
    ※上2つの制約はmain.pyの10-13行目を書き換えることで緩和できます
  • 音声ファイルはwav形式

About

A python program that synthesizes audio recorded separately from musical instrument performance videos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages