Archived from the Transloadit support forum. Originally posted on January 18, 2014; details may be outdated, see our docs for current behavior. Original thread
Hej,
I am quite new to Transloadit but already love the service! However, I am currently stuck to get the following to work:
Upload audio file and encode to MP3 using /audio/encode
Generate a waveform image of the MP3 using /audio/waveform
Merge MP3 and waveform image to a video using /video/merge
Store it.
The single steps are pretty easy to achieve.
I am stuck at #3 since this robot requires an image URL instead of making use a of previous step.
Is it possible to make this workflow work in one template?
Hey this seems like a very cool use-case that we definitely will want to support. I’m going to talk with my team to figure out the best way and get back to you very soon.
So I discussed with the team and it should be possible to add an intermediate export step, and then use path variables to refer to those urls in the merge step.
We understand this is not very efficient, and your use-case made us realize the /video/merge bot should really accept images from a previous step. And /http/import, could have been used to acquire the image url.
It will take some time to make these changes though, in the meantime would you like to try the workaround? We can help you with more details if needed.
We’ve been working on the neccessary improvements to our API and are planning to launch it tomorrow morning. I won’t be here then, but my collegue Tim is going to run the show, and I’ll ask him to leave an update here if all went as planned.
I am currently deploying the patch that we worked on yesterday for this. It should become available within the next 30 minutes and will allow you to support the following syntax:
I have just tested the newly introduced syntax and it works like a charm.
Many thanks for your effort and the great service you are providing!
In case this scenario is of interest for someone else, here is the completed template from the beginning of this thread, which performs all necessary steps:
Encode an uploaded audio file to MP3
Generates a waveform image
Merge the two in a video file
Store it — in this case to Rackspace Cloudfiles (UK), with a unique prefix
We’ll update our documentation soon and will also add some demos that make use of the new syntax. The old image_url parameter of the merge robot will most likely be deprecated.