/audio/encode robot

Takes a single audio file and converts it to a given format.

Optional parameters

Name Type Default Description
use String or array The previous step Specifies which step to use as the input to this robot. The default is to use the previous step defined above the current one.
A special step name is ":original", which "uses" the originally uploaded files.

You can also add arrays here to "use" several steps:
"use": [":original", "encode2", "resizing3"]

See a demo for the "use" parameter here.
bitrate integer Bit rate of the input audio file Bit rate for the resulting audio file in bit/s.
preset string "" Converts using pre-configured settings. Please click here for a list of presets.
sample_rate integer Sample rate of the input audio file Sample rate for the resulting audio file in Hz.
ffmpeg object {} An object with parameters to pass to FFmpeg. Check the FFmpeg documentation for available options. If you are using a preset, the options given here will be merged on top.
force_accept boolean false Robots may accept only certain file types - all other possible input files are ignored.
This means the /video/encode robot for example will never touch an image while the /image/resize robot will never look at a video.
With the force_accept parameter you can force a robot to accept all files thrown at him, regardless if it would normally accept it.

Presets

Name Codec Bitrate Sample rate
"mp3" libmp3lame 128000 44100

Demos

Comments