I have two audiofiles:
'Users/x/Songs/1.mp4'
'Users/x/Songs/2.mp4'
I would like to join these to one audio file, where the two files play right after each other:
'Users/x/Songs/combined.mp4'
I'm using PyCharm on my Macbook to achieve this. Is there a way to do it? I saw a solution is to use this code:
from glob import iglob
import shutil
import os
PATH = r'/Users/x/Songs'
destination = open('everything.mp4', 'wb')
for filename in iglob(os.path.join(PATH, '*.mp4')):
shutil.copyfileobj(open(filename, 'rb'), destination)
destination.close()
But whenever I do this, I only get the last audio clip in the file called 'everything.mp4'.
Not sure what the code above does but found it as an answer to another question like the one I have.