using addtrack message with jit.qt.movie

jpg_mke's icon

I'm attempting to add an audio track to a video using the addtrack message but am not having any luck. Thus far I've tried "addtrack x.mp4", "addtrack sound x.mp4", "addtrack music x.mp4" and "addtrack mpeg x.mp4". This seems like it should be relatively easy, am I missing something here? Thanks!

jpg_mke's icon

I realized that I was using the incorrect syntax - that "addtrack sound" seems to be the correct first step (when I use "gettrackinfo" message I then see the empty track), but how would I insert the audio from here? I've been trying the insert message, however no luck yet. Any pointers?

jpg_mke's icon

OK I think I've got it sorted - instead of "addtrack" I'm now using "paste" w/ -1 as the destination track (which adds a new track) but unfortunately it only works if I include time/duration indicators (ex. "paste 1.aiff track 1 0 11071 track -1 0 11132") - wish these were optional.