Skip to content

Instantly share code, notes, and snippets.

@sidepelican
Last active February 1, 2022 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidepelican/9e349b48cd3b687129c6881faeeb4c93 to your computer and use it in GitHub Desktop.
Save sidepelican/9e349b48cd3b687129c6881faeeb4c93 to your computer and use it in GitHub Desktop.

動画の長さに合わせて無音ファイルをカット

$ ffmpeg -ss 0 -i mute30.wav -t 16.45 mute.wav

無音ファイルと動画を結合

$ ffmpeg -i in.mp4 -i mute.wav -vf scale=886:1920,setsar=1:1 out.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment