Archived from the Transloadit support forum. Originally posted on July 18, 2012; details may be outdated, see our docs for current behavior. Original thread
Hey guys,
I’ve got a template that looks like this:
{ "steps": {
"mp3": {
"use": ":original",
"robot": "/audio/encode",
"preset": "mp3"
},
"theora.ogv": {
"use": ":original",
"robot": "/audio/encode",
"ffmpeg": {
"acodec": "libvorbis",
"f": "ogg"
}
},
"store-mp3": {
"use": ["mp3"],
"robot": "/s3/store",
"path": "${unique_prefix}.${previous_step.name}",
"bucket": "kera-production",
"key": "",
"secret": ""
},
"store-ogg": {
"use": ["theora.ogv"],
"robot": "/s3/store",
"path": "${unique_prefix}.${previous_step.name}",
"headers": { "Content-Type": "audio/ogg" },
"bucket": "kera-production",
"key": "",
"secret": ""
}
} }
I NEED the ogg format to be stored with the header ‘audio/ogg’ for use with Firefox/HTML5. Is there a more efficient way of doing this? By default the content type for ogg is set to x-audio/ogg. Ideally I’d specify a variable in the /audio/encode step which can be used in the ‘store’ step but I’m not sure if this is possible?
Thanks.
-Cameron