Thanks to everyone for their feedback. It seems like the use of ffmpeg is the available solution. I was already thinking that melt did not have the general functionality for what I was trying to do. It would be helpful if this information were in the documentation of melt. And not just in forum comments.
Thanks.