# Audio file encoding

**URL:** <https://community.transloadit.com/t/audio-file-encoding/17770>\
**Category:** Transloadit\
**Tags:** tender-archive\
**Created:** [November 12, 2010, 12:26am UTC](https://community.transloadit.com/t/audio-file-encoding/17770 "2010-11-12T00:26:00Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kele\_Nakamura](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/kele_nakamura/32/1459_2.png) [@Kele\_Nakamura](https://community.transloadit.com/u/Kele_Nakamura)\
**Post date:** [November 12, 2010, 12:26am UTC](https://community.transloadit.com/t/audio-file-encoding/17770/1 "2010-11-12T00:26:00Z")

</div>

> Archived from the Transloadit support forum. Originally posted on November 12, 2010; details may be outdated, see [our docs](https://transloadit.com/docs/) for current behavior. [Original thread](https://web.archive.org/web/20150926173727/http://support.transloadit.com/discussions/problems/24-audio-file-encoding)

any future plans to create and audio/encode robot?

ie. wav to mp3?

thanks kele.

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [November 12, 2010, 8:14am UTC](https://community.transloadit.com/t/audio-file-encoding/17770/2 "2010-11-12T08:14:00Z")

</div>

Yes, in fact it can probably already be done right now using the `/video/encode` robot with custom ffmpeg settings. If you’re interested in trying that out let me know and I’ll see if I can get a working example for wav → mp3 for you.

---

<div class="post-metadata">

**Author:** ![Kele\_Nakamura](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/kele_nakamura/32/1459_2.png) [@Kele\_Nakamura](https://community.transloadit.com/u/Kele_Nakamura)\
**Post date:** [November 12, 2010, 6:48pm UTC](https://community.transloadit.com/t/audio-file-encoding/17770/3 "2010-11-12T18:48:00Z")

</div>

Hi Felix, that would be great.

Also have another question, I saw a similar post in the forum, but just want to make sure.

When we upload through transloadit, we can pass through the original file, as well as the encoded file on to cloudfiles, and we’re given the 2 urls to those files as well?

So user uploads uncompressed wav file. Transloadit sends that file to cloudfiles as well as an mp3 file.

Thanks Kele.

---

<div class="post-metadata">

**Author:** ![Kele\_Nakamura](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/kele_nakamura/32/1459_2.png) [@Kele\_Nakamura](https://community.transloadit.com/u/Kele_Nakamura)\
**Post date:** [November 14, 2010, 11:23pm UTC](https://community.transloadit.com/t/audio-file-encoding/17770/4 "2010-11-14T23:23:00Z")

</div>

Hi Felix,

Have you had any luck with getting audio conversion to work?

I’ve tried a couple times, but it doesn’t seem to do the conversion. The latest one i’ve tried is below. It seems to have no problem uploading the original file but no encoded file.

```auto
{
  "steps": {
    "encode": {
      "robot": "/video/encode",
      "ffmpeg": {
        "ab": "64k",
        "ar": "44100",
        "acodec": "mp3"
      }
    },
    "export": {
      "use": [
        ":original",
        "encode"
      ],
      "robot": "/cloudfiles/store",
      "container": "xxx",
      "user": "xxx",
      "key": "xxx"
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [November 15, 2010, 8:20pm UTC](https://community.transloadit.com/t/audio-file-encoding/17770/5 "2010-11-15T20:20:00Z")

</div>

About your first question: Yes you can upload your original files to cloudfiles as well by simply providing use: [‘:original’, …] in your export step (which I guess you have already figured out in the JSON you just posted).

About the audio encoding: I think our robot is still trying to apply video encoding parameters (ffmpeg augments our default options rather than replace them). I’ll try to find a good solution to this and will update the ticket here soon.

---

<div class="post-metadata">

**Author:** ![Kele\_Nakamura](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/kele_nakamura/32/1459_2.png) [@Kele\_Nakamura](https://community.transloadit.com/u/Kele_Nakamura)\
**Post date:** [November 17, 2010, 8:50pm UTC](https://community.transloadit.com/t/audio-file-encoding/17770/6 "2010-11-17T20:50:00Z")

</div>

Hi Felix,

Do you think audio encoding will be possible? If so, would it be within the next week? We’d love to use this service on a project and it would be great to be able handle video,images,audio all under one service.

Thanks,  
Kele.

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [November 17, 2010, 10:12pm UTC](https://community.transloadit.com/t/audio-file-encoding/17770/7 "2010-11-17T22:12:00Z")

</div>

Hey Kele,

yes - I think it should be possible to get this resolved in the next few days. In fact I might as well do this properly and add it as an `/audio/encode` robot. What presets would you need for that initially, or would you prefer raw ffmpeg access?

--fg

---

<div class="post-metadata">

**Author:** ![Eric\_Skiff](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/eric_skiff/32/1460_2.png) [@Eric\_Skiff](https://community.transloadit.com/u/Eric_Skiff)\
**Post date:** [November 17, 2010, 10:35pm UTC](https://community.transloadit.com/t/audio-file-encoding/17770/8 "2010-11-17T22:35:00Z")

</div>

An /audio/encode robot would be awesome!  
Personally, I’d want bitrate, format, start time and duration to be exposed to make it easy to create high and low quality mp3’s or ogg files as well as 30 second previews.

---

<div class="post-metadata">

**Author:** ![Kele\_Nakamura](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/kele_nakamura/32/1459_2.png) [@Kele\_Nakamura](https://community.transloadit.com/u/Kele_Nakamura)\
**Post date:** [November 17, 2010, 10:36pm UTC](https://community.transloadit.com/t/audio-file-encoding/17770/9 "2010-11-17T22:36:00Z")

</div>

Thanks Felix,

That’s great.

Mp3 would be the most likely preset. I think.

I suppose similar to the FLV preset.

Kele.

---

<div class="post-metadata">

**Author:** ![Nathan\_Leavitt](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@Nathan\_Leavitt](https://community.transloadit.com/u/Nathan_Leavitt)\
**Post date:** [November 18, 2010, 2:02am UTC](https://community.transloadit.com/t/audio-file-encoding/17770/10 "2010-11-18T02:02:00Z")

</div>

Also, am excited about an audio robot! In fact, I might jump ship from my other provider 😉

---

<div class="post-metadata">

**Author:** ![Kele\_Nakamura](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/kele_nakamura/32/1459_2.png) [@Kele\_Nakamura](https://community.transloadit.com/u/Kele_Nakamura)\
**Post date:** [November 24, 2010, 11:07pm UTC](https://community.transloadit.com/t/audio-file-encoding/17770/11 "2010-11-24T23:07:00Z")

</div>

Hi Alex,

Wondering if you’re getting closer to releasing the audio robot. We’d love to start testing it.

Thanks Kele.

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [November 29, 2010, 11:27am UTC](https://community.transloadit.com/t/audio-file-encoding/17770/12 "2010-11-29T11:27:00Z")

</div>

Hi Kele, sorry for the delay - there were a bunch of other support tickets coming in that we had to schedule ahead of this.

Now I’m free of those so hopefully I can get this hacked out tonight. Going to buy some club-mate for a late session if needed : ).

---

<div class="post-metadata">

**Author:** ![Kele\_Nakamura](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/kele_nakamura/32/1459_2.png) [@Kele\_Nakamura](https://community.transloadit.com/u/Kele_Nakamura)\
**Post date:** [November 29, 2010, 7:27pm UTC](https://community.transloadit.com/t/audio-file-encoding/17770/13 "2010-11-29T19:27:00Z")

</div>

Great news,

We’re set to go live this week, and really need to test this piece out.

Thanks Kele.

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [November 30, 2010, 12:11am UTC](https://community.transloadit.com/t/audio-file-encoding/17770/14 "2010-11-30T00:11:00Z")

</div>

Alright, I hacked up a very simplistic `/audio/encode` robot for now, but I hope it’s enough to get this going and figure out the right presets / options on the way.

At this point the robot simply takes 1 parameter, `ffmpeg` which works just like the one for the video encode robot and passes those settings on to ffmpeg.

For example, this is the most simple way to encode a given audio file to mp3:

```auto
{
  "steps": {
    "encode": {
      "robot": "/audio/encode",
      "ffmpeg": {
        "f": "mp3"
      },
      "result": true
    }
  }
}

```

Of course this is not the final robot (and the current one is free for now), but it should be enough to handle all the basic encoding.

The next step for me would be to add meta data support for audio files, as well as some presets.

Anyway, let me know what you think and what else you need right away in order to not be stuck.

--fg

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/04ee57da0cb7ac8728a9ac5965c288164f4ce280.svg) [@system](https://community.transloadit.com/u/system)\
**Post date:** [October 7, 2026, 6:23am UTC](https://community.transloadit.com/t/audio-file-encoding/17770/15 "2026-10-07T06:23:32Z")

</div>


