I want to take 2 hours of video from 3 separate gopro cameras, clips of audio from 1 of the gopros and some music mp3 and combine them into a 12 min video. I have +30 such sets to process so this calls for some programming.
My 1st step was to put all the source material into a shotcut project.
So I have 7 tracks on the time line.
The video shrinking sofware I am creating now has to reformat the source MLT into a new MLT that Shotcut can use to render my short video.
The software reads in the MLT and splits it into 7 sub project MLT files, one for each track.
These 7 MLT files are then loaded into the final MLT as the playlist resources.
This works 100% and I can play / work with each sub MLT using the usual Shotcut features. All good so far.
My next challenge is to create the audio tracks.
A1 will contain the music
A2 will contain the voice clips
I want to fade in / out as I switch from music to voice clips.
My music sub MLT is “playlist6”
My voice sub MLT is “playlist0”
Basically, your producer ProducerVFO1 does not refer to any file. You cannot make a producer of another producer. Make a dummy project, Open MLT XML as Clip, add it to the Timeline, Save, and view the saved XML to see how to use a MLT XML clip on the timeline.
I will add info to this thread that may help others who are attempting MLT scripting.
So the next obstacle is to get both audio channels to play.
Adding the voice and the music playlists (tracks) to a tractor results in only one track being output at a time.
You need to add a transition to get the tracks to mix.