Created
November 22, 2023 04:55
-
-
Save Thomashighbaugh/112c27de98dbde9529f7a2d44e15facb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import sys, os | |
inputOne = sys.argv[1] | |
inputTwo = sys.argv[2] | |
for i in sys.argv[1:]: | |
if ".mp3" in i: | |
output = i.replace("mp3", "mp4") | |
cmd = ( | |
'ffmpeg -loop_input -i "' | |
+ inputOne | |
+ '" -i "' | |
+ inputTwo | |
+ '" -shortest -acodec copy "' | |
+ output | |
+ '"' | |
) | |
os.system(cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment