Hi good sirs, I need a script to combine audio and video files.
Doing the merging of audio and video files by hand in VLC player is a tedious task when dealing with hundreds of pairs of audio + video.
I saved each video + audio file in their own folder.
Here's an example of what I'm dealing with:
Code
root/
audiovideo1/
videofile.ts
audiofile.aac
audiovideo2/
videofile.ts
audiofile.aac
audiovideo3/
videofile.ts
audiofile.aac
The file names are always the same; the thing that changes is the folder name containing each audio + video pair.
Ideally, I would like to combine audio + video from each folder and use the pair's folder name to create the combined file into mp4 format.
Here's the expected output based on the above example:
Code
root/
audiovideo1.mp4
audiovideo2.mp4
audiovideo3.mp4
Let me know if you can write a script to do this work please.
... or guide me into doing it
I think the simplest idea is to use a python (or another language) program to drive the merging script over each audiovideo folder...
This post was edited by moutonguerrier on May 27 2021 09:53pm